Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cf704fb authored by David S. Miller's avatar David S. Miller
Browse files

net/core/dev.c: Use frag list abstraction interfaces.

parent 5b1a002a
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1820,7 +1820,7 @@ int dev_queue_xmit(struct sk_buff *skb)
	if (netif_needs_gso(dev, skb))
	if (netif_needs_gso(dev, skb))
		goto gso;
		goto gso;


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


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


	rcu_read_lock();
	rcu_read_lock();