vxlan: clear IFF_TX_SKB_SHARING
authorJiri Benc <jbenc@redhat.com>
Tue, 16 Feb 2016 21:16:53 +0000 (22:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Feb 2016 19:43:47 +0000 (14:43 -0500)
ether_setup sets IFF_TX_SKB_SHARING but this is not supported by vxlan
as it modifies the skb on xmit.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c

index a31cd954b308fcf9792df88ec4d1d06842a3b1a1..db96f3a16f6c3e53d4c284a80e1bd658b3a7e301 100644 (file)
@@ -2537,6 +2537,7 @@ static void vxlan_setup(struct net_device *dev)
        dev->hw_features |= NETIF_F_GSO_SOFTWARE;
        dev->hw_features |= NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_STAG_TX;
        netif_keep_dst(dev);
+       dev->priv_flags &= ~IFF_TX_SKB_SHARING;
        dev->priv_flags |= IFF_LIVE_ADDR_CHANGE | IFF_NO_QUEUE;
 
        INIT_LIST_HEAD(&vxlan->next);