diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2011-05-19 08:12:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-19 18:00:00 -0400 |
commit | 54e0a67f446fae290f99781691eba46c5cda66e7 (patch) | |
tree | e994651f9f4324c106b7bc71154db91c398b3cc9 /drivers/net | |
parent | 42b64a450b81ec9e8cdd5b3fb13613ab9bb25048 (diff) |
tg3: Fix TSO loopback test
Commit bb158d696489244f79fd4c3abd47968a06b48c79, entitled
"tg3: Add TSO loopback test", mistakenly inverted the checksum field
test from the receive BD. This patch corrects the problem.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/tg3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 7675231d9a9d..d05c6a06da44 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -11195,7 +11195,7 @@ static int tg3_run_loopback(struct tg3 *tp, u32 pktsz, int loopback_mode) | |||
11195 | } | 11195 | } |
11196 | } else if ((desc->type_flags & RXD_FLAG_TCPUDP_CSUM) && | 11196 | } else if ((desc->type_flags & RXD_FLAG_TCPUDP_CSUM) && |
11197 | (desc->ip_tcp_csum & RXD_TCPCSUM_MASK) | 11197 | (desc->ip_tcp_csum & RXD_TCPCSUM_MASK) |
11198 | >> RXD_TCPCSUM_SHIFT == 0xffff) { | 11198 | >> RXD_TCPCSUM_SHIFT != 0xffff) { |
11199 | goto out; | 11199 | goto out; |
11200 | } | 11200 | } |
11201 | 11201 | ||