mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
tg3: Fix TSO loopback test
Commit bb158d6964
, 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>
This commit is contained in:
parent
42b64a450b
commit
54e0a67f44
1 changed files with 1 additions and 1 deletions
|
@ -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) &&
|
} else if ((desc->type_flags & RXD_FLAG_TCPUDP_CSUM) &&
|
||||||
(desc->ip_tcp_csum & RXD_TCPCSUM_MASK)
|
(desc->ip_tcp_csum & RXD_TCPCSUM_MASK)
|
||||||
>> RXD_TCPCSUM_SHIFT == 0xffff) {
|
>> RXD_TCPCSUM_SHIFT != 0xffff) {
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue