diff options
author | Tom Herbert <therbert@google.com> | 2014-09-29 20:22:33 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-01 21:35:52 -0400 |
commit | 996c9fd167c99b382bcb9c1eb833b5b4711140ab (patch) | |
tree | aacc22b440766d6bdbda7b035962a7dcc590263c /drivers/net/vxlan.c | |
parent | 54bc9bac307861aea5abb747cb58bf0275f2175f (diff) | |
download | talos-op-linux-996c9fd167c99b382bcb9c1eb833b5b4711140ab.tar.gz talos-op-linux-996c9fd167c99b382bcb9c1eb833b5b4711140ab.zip |
vxlan: Set inner protocol before transmit
Call skb_set_inner_protocol to set inner Ethernet protocol to
ETH_P_TEB before transmit. This is needed for GSO with UDP tunnels.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r-- | drivers/net/vxlan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 34e102ec95c2..2af795d6ba05 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -1610,6 +1610,8 @@ static int vxlan6_xmit_skb(struct vxlan_sock *vs, vxh->vx_flags = htonl(VXLAN_FLAGS); vxh->vx_vni = vni; + skb_set_inner_protocol(skb, htons(ETH_P_TEB)); + udp_tunnel6_xmit_skb(vs->sock, dst, skb, dev, saddr, daddr, prio, ttl, src_port, dst_port); return 0; @@ -1652,6 +1654,8 @@ int vxlan_xmit_skb(struct vxlan_sock *vs, vxh->vx_flags = htonl(VXLAN_FLAGS); vxh->vx_vni = vni; + skb_set_inner_protocol(skb, htons(ETH_P_TEB)); + return udp_tunnel_xmit_skb(vs->sock, rt, skb, src, dst, tos, ttl, df, src_port, dst_port, xnet); } |