From: David S. Miller Date: Tue, 9 Jun 2009 07:17:27 +0000 (-0700) Subject: netdevice.h: Use frag list abstraction interfaces. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a5bd8a13e9e0322c7f76b34790ba34e2e0ce2ac5;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git netdevice.h: Use frag list abstraction interfaces. Signed-off-by: David S. Miller --- diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 2a801380b502..9ea8d6dfe540 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -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)