]> git.baikalelectronics.ru Git - kernel.git/commit
gre: receive also TEB packets for lwtunnels
authorJiri Benc <jbenc@redhat.com>
Tue, 3 May 2016 15:10:08 +0000 (17:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 18:11:32 +0000 (14:11 -0400)
commit7fc5b704b81754352a5584b461b8e5f3b3387767
tree539fdeba92e58818cb10849a19122679357181a1
parent51ca0feff5db0367fa39748ae31a9e4b3f23d882
gre: receive also TEB packets for lwtunnels

For ipgre interfaces in collect metadata mode, receive also traffic with
encapsulated Ethernet headers. The lwtunnel users are supposed to sort this
out correctly. This allows to have mixed Ethernet + L3-only traffic on the
same lwtunnel interface. This is the same way as VXLAN-GPE behaves.

To keep backwards compatibility and prevent any surprises, gretap interfaces
have priority in receiving packets with Ethernet headers.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_tunnels.h
net/ipv4/ip_gre.c