OSDN Git Service

net: add NSH header structures and helpers
authorYi Yang <yi.y.yang@intel.com>
Mon, 28 Aug 2017 19:43:23 +0000 (21:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Aug 2017 22:16:52 +0000 (15:16 -0700)
commit1f0b7744c50573df464ca33d8e5275be509f852b
tree8927f991dd7cfb7c4477f8ec664a102127a5f37a
parentfa20e0e32cb3dfc1760b6254b64977f2fb5bd851
net: add NSH header structures and helpers

NSH (Network Service Header)[1] is a new protocol for service
function chaining, it can be handled as a L3 protocol like
IPv4 and IPv6, Eth + NSH + Inner packet or VxLAN-gpe + NSH +
Inner packet are two typical use cases.

This patch adds NSH header structures and helpers for NSH GSO
support and Open vSwitch NSH support.

[1] https://datatracker.ietf.org/doc/draft-ietf-sfc-nsh/

[Jiri: added nsh_hdr() helper and renamed the header struct to "struct
nshhdr" to match the usual pattern. Removed packet type defines, these are
now shared with VXLAN-GPE.]

Signed-off-by: Yi Yang <yi.y.yang@intel.com>
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/nsh.h [new file with mode: 0644]