Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 May 2023 23:36:40 GMT
From:      Eric Joyner <erj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 156424fce98a - main - ixgbe: Change if condition for RSS and rxcsum
Message-ID:  <202305242336.34ONaeUF094636@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by erj:

URL: https://cgit.FreeBSD.org/src/commit/?id=156424fce98a0240c702da0a918b027d1979bfdb

commit 156424fce98a0240c702da0a918b027d1979bfdb
Author:     Przemyslaw Lewandowski <przemyslawx.lewandowski@intel.com>
AuthorDate: 2023-05-24 23:24:54 +0000
Commit:     Eric Joyner <erj@FreeBSD.org>
CommitDate: 2023-05-24 23:29:40 +0000

    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
---
 sys/dev/ixgbe/if_ix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c
index 8df0e59a8346..0179c6456de8 100644
--- a/sys/dev/ixgbe/if_ix.c
+++ b/sys/dev/ixgbe/if_ix.c
@@ -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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305242336.34ONaeUF094636>