ixgbe: Change if condition for RSS and rxcsum

This patch fixes TCP connection hangs for 1 rxq and 1 txq without rxcsum
enabled. Documentation for 10G cards and other drivers suggest enabling
rxcsum for RSS and disabling otherwise. When PCSD bit is not set then
fragment checksum and IP identification are reported in the rx
descriptor. When PCSD bit is set then RSS hash value is reported in the
rx descriptor. RSS and RX IPP checksum are mutually exclusive.

Signed-off-by: Eric Joyner <erj@FreeBSD.org>

PR:		268910
Reviewed by:	erj@
Tested by:	jeffrey.e.pieper@intel.com
MFC after:	1 week
Sponsored by:	Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D38621
This commit is contained in:
Przemyslaw Lewandowski 2023-05-24 16:24:54 -07:00 committed by Eric Joyner
parent ba244e2a98
commit 156424fce9
No known key found for this signature in database
GPG key ID: 96F0C6FD61E05DE3

View file

@ -754,7 +754,7 @@ ixgbe_initialize_receive_units(if_ctx_t ctx)
ixgbe_initialize_rss_mapping(sc);
if (sc->num_rx_queues > 1) {
if (sc->feat_en & IXGBE_FEATURE_RSS) {
/* RSS and RX IPP Checksum are mutually exclusive */
rxcsum |= IXGBE_RXCSUM_PCSD;
}