]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1dc9786754e01d769ce9dead1ed92ffc646e7973
treec6ee0dc60ac962cc0ff0c4d518b5be8815535e6e
parent32805766c1a5849e74982f5d7ef6481ab0401163
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