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:
b8f3ab4
)
net: fix can_checksum_protocol() arguments swap
author
Eric Dumazet
<
[email protected]
>
Wed, 19 Jan 2011 00:51:36 +0000
(
00:51
+0000)
committer
David S. Miller
<
[email protected]
>
Wed, 19 Jan 2011 22:15:21 +0000
(14:15 -0800)
commit
0363466866d901fbc
(net offloading: Convert checksums to use
centrally computed features.) mistakenly swapped can_checksum_protocol()
arguments.
This broke IPv6 on bnx2 for instance, on NIC without TCPv6 checksum
offloads.
Reported-by: Hans de Bruin <
[email protected]
>
Signed-off-by: Eric Dumazet <
[email protected]
>
Acked-by: Jesse Gross <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/core/dev.c
patch
|
blob
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index 4c58d11d3b68b79f1d981473d31bb474b43b290e..8393ec408cd4d9adea5314e69cf391561c30570a 100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-2001,7
+2001,7
@@
static bool can_checksum_protocol(unsigned long features, __be16 protocol)
static int harmonize_features(struct sk_buff *skb, __be16 protocol, int features)
{
- if (!can_checksum_protocol(
protocol, features
)) {
+ if (!can_checksum_protocol(
features, protocol
)) {
features &= ~NETIF_F_ALL_CSUM;
features &= ~NETIF_F_SG;
} else if (illegal_highdma(skb->dev, skb)) {