Skip to content
Commit 23e62de3 authored by Joe Stringer's avatar Joe Stringer Committed by David S. Miller
Browse files

net: Add vxlan_gso_check() helper

Most NICs that report NETIF_F_GSO_UDP_TUNNEL support VXLAN, and not
other UDP-based encapsulation protocols where the format and size of the
header differs. This patch implements a generic ndo_gso_check() for
VXLAN which will only advertise GSO support when the skb looks like it
contains VXLAN (or no UDP tunnelling at all).

Implementation shamelessly stolen from Tom Herbert:
http://thread.gmane.org/gmane.linux.network/332428/focus=333111



Signed-off-by: default avatarJoe Stringer <joestringer@nicira.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8a5809e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment