diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netdevice.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 84b0f0d16fcb..efd1e2af0bf3 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -994,12 +994,12 @@ static inline int skb_gso_ok(struct sk_buff *skb, int features) | |||
994 | { | 994 | { |
995 | int feature = skb_shinfo(skb)->gso_size ? | 995 | int feature = skb_shinfo(skb)->gso_size ? |
996 | skb_shinfo(skb)->gso_type << NETIF_F_GSO_SHIFT : 0; | 996 | skb_shinfo(skb)->gso_type << NETIF_F_GSO_SHIFT : 0; |
997 | return (features & feature) != feature; | 997 | return (features & feature) == feature; |
998 | } | 998 | } |
999 | 999 | ||
1000 | static inline int netif_needs_gso(struct net_device *dev, struct sk_buff *skb) | 1000 | static inline int netif_needs_gso(struct net_device *dev, struct sk_buff *skb) |
1001 | { | 1001 | { |
1002 | return skb_gso_ok(skb, dev->features); | 1002 | return !skb_gso_ok(skb, dev->features); |
1003 | } | 1003 | } |
1004 | 1004 | ||
1005 | #endif /* __KERNEL__ */ | 1005 | #endif /* __KERNEL__ */ |