mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 15:10:38 +00:00
netdevice.h: Use frag list abstraction interfaces.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ee03987170
commit
a5bd8a13e9
@ -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)
|
static inline int skb_gso_ok(struct sk_buff *skb, int features)
|
||||||
{
|
{
|
||||||
return net_gso_ok(features, skb_shinfo(skb)->gso_type) &&
|
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)
|
static inline int netif_needs_gso(struct net_device *dev, struct sk_buff *skb)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user