]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: Add new UDP encapsulation offload type for VXLAN-GPE
authorAlexander Duyck <aduyck@mirantis.com>
Thu, 16 Jun 2016 19:23:19 +0000 (12:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jun 2016 03:23:32 +0000 (20:23 -0700)
commit81dbbad17c90e525ca90300d30f0b9d3e1c5f10f
treec2ac679016a2ed23c2b9bd9790eb8bd9d7e6ac3b
parent757129de2dd346f2f406fecbcfa7eaf300de9121
vxlan: Add new UDP encapsulation offload type for VXLAN-GPE

The fact is VXLAN with Generic Protocol Extensions cannot be supported by
the same hardware parsers that support VXLAN.  The protocol extensions
allow for things like a Next Protocol field which in turn allows for things
other than Ethernet to be passed over the tunnel.  Most existing parsers
will not know how to interpret this.

To resolve this I am giving VXLAN-GPE its own UDP encapsulation offload
type.  This way hardware that does support GPE can simply add this type to
the switch statement for VXLAN, and if they don't support it then this will
fix any issues where headers might be interpreted incorrectly.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/udp_tunnel.h