Subject: [PATCH 2/6] bnx2: Fix rx checksum

From: "Michael Chan" <[email-masked]>
Date: Mon, 23 May 2005 17:26:23 -0700

Fix bug in rx checksum by indicating CHECKSUM_UNNECESSARY only when the
hw calculated checksum is 0xffff.

Spotted by Jeff Garzik.

Signed-off-by: Michael Chan <[email-masked]>

diff -Nru 11/drivers/net/bnx2.c 12/drivers/net/bnx2.c
--- 11/drivers/net/bnx2.c	2005-05-23 10:20:20.000000000 -0700
+++ 12/drivers/net/bnx2.c	2005-05-23 10:29:02.000000000 -0700
@@ -1470,9 +1470,8 @@
 
 			u16 cksum = rx_hdr->l2_fhdr_tcp_udp_xsum;
 
-			if ((cksum == 0xffff) || (cksum == 0)) {
+			if (cksum == 0xffff)
 				skb->ip_summed = CHECKSUM_UNNECESSARY;
-			}
 		}
 
 #ifdef BCM_VLAN