]> 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)
commitf2f18060d6990eada81ee7ddc7472545edf2300d
treec6ee0dc60ac962cc0ff0c4d518b5be8815535e6e
parent46ad8a66d9e382ee0b15503044f88836c85983a2
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