OSDN Git Service

vxlan: factor out VXLAN-GPE next protocol
authorJiri Benc <jbenc@redhat.com>
Mon, 28 Aug 2017 19:43:22 +0000 (21:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Aug 2017 22:16:52 +0000 (15:16 -0700)
commitfa20e0e32cb3dfc1760b6254b64977f2fb5bd851
treec6ee0dc60ac962cc0ff0c4d518b5be8815535e6e
parent155e6f649757c902901e599c268f8b575ddac1f8
vxlan: factor out VXLAN-GPE next protocol

The values are shared between VXLAN-GPE and NSH. Originally probably by
coincidence but I notified both working groups about this last year and they
seem to keep the values in sync since then.

Hopefully they'll get a single IANA registry for the values, too. (I asked
them for that.)

Factor out the code to be shared by the NSH implementation.

NSH and MPLS values are added in this patch, too. For MPLS, the drafts
incorrectly assign only a single value, while we have two MPLS ethertypes.
I raised the problem with both groups. For now, I assume the value is for
unicast.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/tun_proto.h [new file with mode: 0644]
include/net/vxlan.h