diff options
author | David S. Miller <davem@davemloft.net> | 2010-08-23 03:13:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-23 03:13:46 -0400 |
commit | 21dc330157454046dd7c494961277d76e1c957fe (patch) | |
tree | 4f030efa8d82f7eb9676acd4cfc74921a6d29972 /include/linux/netdevice.h | |
parent | 2d4833aae65589ba4317dd325fe20c8b25c14173 (diff) |
net: Rename skb_has_frags to skb_has_frag_list
SKBs can be "fragmented" in two ways, via a page array (called
skb_shinfo(skb)->frags[]) and via a list of SKBs (called
skb_shinfo(skb)->frag_list).
Since skb_has_frags() tests the latter, it's name is confusing
since it sounds more like it's testing the former.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 46c36ffe20ee..ce2de8b64083 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -2191,7 +2191,7 @@ static inline int net_gso_ok(int features, int gso_type) | |||
2191 | static inline int skb_gso_ok(struct sk_buff *skb, int features) | 2191 | static inline int skb_gso_ok(struct sk_buff *skb, int features) |
2192 | { | 2192 | { |
2193 | return net_gso_ok(features, skb_shinfo(skb)->gso_type) && | 2193 | return net_gso_ok(features, skb_shinfo(skb)->gso_type) && |
2194 | (!skb_has_frags(skb) || (features & NETIF_F_FRAGLIST)); | 2194 | (!skb_has_frag_list(skb) || (features & NETIF_F_FRAGLIST)); |
2195 | } | 2195 | } |
2196 | 2196 | ||
2197 | static inline int netif_needs_gso(struct net_device *dev, struct sk_buff *skb) | 2197 | static inline int netif_needs_gso(struct net_device *dev, struct sk_buff *skb) |