提交 a5bd8a13 编写于 作者: D David S. Miller

netdevice.h: Use frag list abstraction interfaces.

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ee039871
......@@ -1904,7 +1904,7 @@ static inline int net_gso_ok(int features, int gso_type)
static inline int skb_gso_ok(struct sk_buff *skb, int features)
{
return net_gso_ok(features, skb_shinfo(skb)->gso_type) &&
(!skb_shinfo(skb)->frag_list || (features & NETIF_F_FRAGLIST));
(!skb_has_frags(skb) || (features & NETIF_F_FRAGLIST));
}
static inline int netif_needs_gso(struct net_device *dev, struct sk_buff *skb)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册