From: Matt Carlson Date: Thu, 19 May 2011 12:12:50 +0000 (+0000) Subject: tg3: Fix TSO loopback test X-Git-Tag: v3.0~749^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54e0a67f446fae290f99781691eba46c5cda66e7;p=platform%2Fkernel%2Flinux-amlogic.git 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 Reviewed-by: Michael Chan Signed-off-by: David S. Miller --- diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 7675231..d05c6a0 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) } } else if ((desc->type_flags & RXD_FLAG_TCPUDP_CSUM) && (desc->ip_tcp_csum & RXD_TCPCSUM_MASK) - >> RXD_TCPCSUM_SHIFT == 0xffff) { + >> RXD_TCPCSUM_SHIFT != 0xffff) { goto out; }