Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31332
b: refs/heads/master
c: d6b4991
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jun 29, 2006
1 parent be4b9cf commit 6fd8283
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ee303dfeac6451b402e3d8512723d3a0f861857
refs/heads/master: d6b4991ad5d1a9840e12db507be1a6593def01fe
4 changes: 2 additions & 2 deletions trunk/include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -994,12 +994,12 @@ static inline int skb_gso_ok(struct sk_buff *skb, int features)
{
int feature = skb_shinfo(skb)->gso_size ?
skb_shinfo(skb)->gso_type << NETIF_F_GSO_SHIFT : 0;
return (features & feature) != feature;
return (features & feature) == feature;
}

static inline int netif_needs_gso(struct net_device *dev, struct sk_buff *skb)
{
return skb_gso_ok(skb, dev->features);
return !skb_gso_ok(skb, dev->features);
}

#endif /* __KERNEL__ */
Expand Down

0 comments on commit 6fd8283

Please sign in to comment.