* [PATCH net] gre: clear IFF_TX_SKB_SHARING
@ 2016-02-17 14:32 Jiri Benc
2016-02-18 19:56 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Jiri Benc @ 2016-02-17 14:32 UTC (permalink / raw)
To: netdev; +Cc: Jesse Gross
ether_setup sets IFF_TX_SKB_SHARING but this is not supported by gre as it
modifies the skb on xmit.
Also, clean up whitespace in ipgre_tap_setup when we're already touching it.
Signed-off-by: Jiri Benc <jbenc@redhat.com>
---
net/ipv4/ip_gre.c | 5 +++--
net/ipv6/ip6_gre.c | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c
index 56fdf4e0dce4..41ba68de46d8 100644
--- a/net/ipv4/ip_gre.c
+++ b/net/ipv4/ip_gre.c
@@ -1054,8 +1054,9 @@ static const struct net_device_ops gre_tap_netdev_ops = {
static void ipgre_tap_setup(struct net_device *dev)
{
ether_setup(dev);
- dev->netdev_ops = &gre_tap_netdev_ops;
- dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
+ dev->netdev_ops = &gre_tap_netdev_ops;
+ dev->priv_flags &= ~IFF_TX_SKB_SHARING;
+ dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
ip_tunnel_setup(dev, gre_tap_net_id);
}
diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c
index f37f18b6b40c..a69aad1e29d1 100644
--- a/net/ipv6/ip6_gre.c
+++ b/net/ipv6/ip6_gre.c
@@ -1512,6 +1512,7 @@ static void ip6gre_tap_setup(struct net_device *dev)
dev->destructor = ip6gre_dev_free;
dev->features |= NETIF_F_NETNS_LOCAL;
+ dev->priv_flags &= ~IFF_TX_SKB_SHARING;
}
static int ip6gre_newlink(struct net *src_net, struct net_device *dev,
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] gre: clear IFF_TX_SKB_SHARING
2016-02-17 14:32 [PATCH net] gre: clear IFF_TX_SKB_SHARING Jiri Benc
@ 2016-02-18 19:56 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-02-18 19:56 UTC (permalink / raw)
To: jbenc; +Cc: netdev, jesse
From: Jiri Benc <jbenc@redhat.com>
Date: Wed, 17 Feb 2016 15:32:53 +0100
> ether_setup sets IFF_TX_SKB_SHARING but this is not supported by gre as it
> modifies the skb on xmit.
>
> Also, clean up whitespace in ipgre_tap_setup when we're already touching it.
>
> Signed-off-by: Jiri Benc <jbenc@redhat.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-18 19:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-17 14:32 [PATCH net] gre: clear IFF_TX_SKB_SHARING Jiri Benc
2016-02-18 19:56 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).