Files
twx-linux/drivers
Davide Caratti 35d90144e2 net/mlx4_en: don't set CHECKSUM_COMPLETE on SCTP packets
[ Upstream commit e718fe450e ]

if the NIC fails to validate the checksum on TCP/UDP, and validation of IP
checksum is successful, the driver subtracts the pseudo-header checksum
from the value obtained by the hardware and sets CHECKSUM_COMPLETE. Don't
do that if protocol is IPPROTO_SCTP, otherwise CRC32c validation fails.

V2: don't test MLX4_CQE_STATUS_IPV6 if MLX4_CQE_STATUS_IPV4 is set

Reported-by: Shuang Li <shuali@redhat.com>
Fixes: f8c6455bb0 ("net/mlx4_en: Extend checksum offloading by CHECKSUM COMPLETE")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-12 19:31:22 -07:00
..
…
…
…
…
…
…
…
…
…
2017-08-06 18:59:49 -07:00
…
…
2017-08-06 18:59:42 -07:00
…
2017-02-23 17:44:36 +01:00
…
…
…
…
…
…
2017-04-21 09:31:24 +02:00
…
…
…
…
…
…
…
…
…