diff options
-rw-r--r-- | net/core/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 1f38401fc028..4913089c91dc 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1820,7 +1820,7 @@ int dev_queue_xmit(struct sk_buff *skb) | |||
1820 | if (netif_needs_gso(dev, skb)) | 1820 | if (netif_needs_gso(dev, skb)) |
1821 | goto gso; | 1821 | goto gso; |
1822 | 1822 | ||
1823 | if (skb_shinfo(skb)->frag_list && | 1823 | if (skb_has_frags(skb) && |
1824 | !(dev->features & NETIF_F_FRAGLIST) && | 1824 | !(dev->features & NETIF_F_FRAGLIST) && |
1825 | __skb_linearize(skb)) | 1825 | __skb_linearize(skb)) |
1826 | goto out_kfree_skb; | 1826 | goto out_kfree_skb; |
@@ -2407,7 +2407,7 @@ int dev_gro_receive(struct napi_struct *napi, struct sk_buff *skb) | |||
2407 | if (!(skb->dev->features & NETIF_F_GRO)) | 2407 | if (!(skb->dev->features & NETIF_F_GRO)) |
2408 | goto normal; | 2408 | goto normal; |
2409 | 2409 | ||
2410 | if (skb_is_gso(skb) || skb_shinfo(skb)->frag_list) | 2410 | if (skb_is_gso(skb) || skb_has_frags(skb)) |
2411 | goto normal; | 2411 | goto normal; |
2412 | 2412 | ||
2413 | rcu_read_lock(); | 2413 | rcu_read_lock(); |