Skip to content

Commit

Permalink
net/core/dev.c: Use frag list abstraction interfaces.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jun 9, 2009
1 parent 5b1a002 commit 4cf704f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1820,7 +1820,7 @@ int dev_queue_xmit(struct sk_buff *skb)
if (netif_needs_gso(dev, skb))
goto gso;

if (skb_shinfo(skb)->frag_list &&
if (skb_has_frags(skb) &&
!(dev->features & NETIF_F_FRAGLIST) &&
__skb_linearize(skb))
goto out_kfree_skb;
Expand Down Expand Up @@ -2407,7 +2407,7 @@ int dev_gro_receive(struct napi_struct *napi, struct sk_buff *skb)
if (!(skb->dev->features & NETIF_F_GRO))
goto normal;

if (skb_is_gso(skb) || skb_shinfo(skb)->frag_list)
if (skb_is_gso(skb) || skb_has_frags(skb))
goto normal;

rcu_read_lock();
Expand Down

0 comments on commit 4cf704f

Please sign in to comment.