projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ee303d
)
[NET]: Fix logical error in skb_gso_ok
author
Herbert Xu
<
[email protected]
>
Thu, 29 Jun 2006 19:25:53 +0000
(12:25 -0700)
committer
David S. Miller
<
[email protected]
>
Thu, 29 Jun 2006 23:58:04 +0000
(16:58 -0700)
The test in skb_gso_ok is backwards. Noticed by Michael Chan
<
[email protected]
>.
Signed-off-by: Herbert Xu <
[email protected]
>
Acked-by: Michael Chan <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
include/linux/netdevice.h
patch
|
blob
|
history
diff --git
a/include/linux/netdevice.h
b/include/linux/netdevice.h
index 84b0f0d16fcbd0166b92c7088a7d7c135ea82ed7..efd1e2af0bf32ce4d09bcb28f64b4a4621edd172 100644
(file)
--- 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)
{
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__ */