[ovs-dev] [PATCH v3 0/2] nsh: rework NSH netlink keys and actions
Yi Yang
yi.y.yang at intel.com
Tue Aug 22 00:14:59 UTC 2017
v2->v3
- Fix several comments Jan Scheurich
v1->v2
- Rework per kernel datapath review comments
- Add new NSH key ttl
- Add many helpers in nsh.h and replace much code
with these helpers
- nsh.h includes the lasted NSH spec
- bits of flags and mdtype have a change
This patch seires reworks NSH netlink keys and actions
per kernel datapath requirments. OVS_KEY_ATTR_NSH is
changed as a nested key, encap_nsh and decap_nsh are
renamed as push_nsh and pop_nsh. PUSH_NSH used nested
OVS_KEY_ATTR_NSH keys to transfer NSH header data.
It also adds new NSH key 'ttl' to follow the lasted
IETF NSH draft:
https://datatracker.ietf.org/doc/draft-ietf-sfc-nsh/
I have double confirmed from one of its authors, this
is a final version which will be approved as IETF RFC,
the NSH header format won't be change anymore.
Yi Yang (2):
nsh: rework NSH netlink keys and actions
nsh: add new flow key 'ttl'
datapath/linux/compat/include/linux/openvswitch.h | 57 +-
include/openvswitch/flow.h | 6 +-
include/openvswitch/meta-flow.h | 31 +-
include/openvswitch/nsh.h | 320 ++++++++-
include/openvswitch/packets.h | 9 +-
lib/dpif-netdev.c | 4 +-
lib/dpif.c | 4 +-
lib/flow.c | 76 +--
lib/flow.h | 2 +-
lib/match.c | 24 +-
lib/meta-flow.c | 69 +-
lib/meta-flow.xml | 6 +-
lib/nx-match.c | 20 +-
lib/odp-execute.c | 84 ++-
lib/odp-util.c | 764 +++++++++++++++++-----
lib/odp-util.h | 4 +
lib/packets.c | 24 +-
lib/packets.h | 5 +-
ofproto/ofproto-dpif-ipfix.c | 4 +-
ofproto/ofproto-dpif-sflow.c | 4 +-
ofproto/ofproto-dpif-xlate.c | 31 +-
tests/nsh.at | 54 +-
22 files changed, 1189 insertions(+), 413 deletions(-)
--
2.1.0
More information about the dev
mailing list