Skip to content

Commit d402786

Browse files
Eric Dumazetdavem330
authored andcommitted
net: fix can_checksum_protocol() arguments swap
commit 0363466 (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]>
1 parent b8f3ab4 commit d402786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ static bool can_checksum_protocol(unsigned long features, __be16 protocol)
20012001

20022002
static int harmonize_features(struct sk_buff *skb, __be16 protocol, int features)
20032003
{
2004-
if (!can_checksum_protocol(protocol, features)) {
2004+
if (!can_checksum_protocol(features, protocol)) {
20052005
features &= ~NETIF_F_ALL_CSUM;
20062006
features &= ~NETIF_F_SG;
20072007
} else if (illegal_highdma(skb->dev, skb)) {

0 commit comments

Comments
 (0)