]> git.baikalelectronics.ru Git - kernel.git/commit
seg6: fix SRv6 L2 tunnels to use IANA-assigned protocol number
authorPaolo Lungaroni <paolo.lungaroni@cnit.it>
Wed, 11 Mar 2020 16:54:06 +0000 (17:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 06:49:30 +0000 (23:49 -0700)
commitabcc0870d6f3ee01f7a5b6a7c01d0a01cbca4656
treeee9a85e98a754c5acbbea6fcfc89e2b5ab90724f
parent13d1c252508aa082d65494fb2893c5a4eb0c945b
seg6: fix SRv6 L2 tunnels to use IANA-assigned protocol number

The Internet Assigned Numbers Authority (IANA) has recently assigned
a protocol number value of 143 for Ethernet [1].

Before this assignment, encapsulation mechanisms such as Segment Routing
used the IPv6-NoNxt protocol number (59) to indicate that the encapsulated
payload is an Ethernet frame.

In this patch, we add the definition of the Ethernet protocol number to the
kernel headers and update the SRv6 L2 tunnels to use it.

[1] https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml

Signed-off-by: Paolo Lungaroni <paolo.lungaroni@cnit.it>
Reviewed-by: Andrea Mayer <andrea.mayer@uniroma2.it>
Acked-by: Ahmed Abdelsalam <ahmed.abdelsalam@gssi.it>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/in.h
net/ipv6/seg6_iptunnel.c
net/ipv6/seg6_local.c