git: 9d364b9c8bdd - stable/15 - cxgbe(4): Fix compile warning for !RSS kernels
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 29 Oct 2026 06:35:18 UTC
The branch stable/15 has been updated by kbowling:
URL: https://cgit.FreeBSD.org/src/commit/?id=9d364b9c8bdde505624e824be22915188c792548
commit 9d364b9c8bdde505624e824be22915188c792548
Author: Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2025-11-24 21:00:47 +0000
Commit: Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-10-29 06:26:40 +0000
cxgbe(4): Fix compile warning for !RSS kernels
.../sys/dev/cxgbe/t4_main.c:7197:1: warning: unused function 'hashen_to_hashconfig' [-Wunused-function]
7197 | hashen_to_hashconfig(int hashen)
| ^~~~~~~~~~~~~~~~~~~~
1 warning generated.
Reported by: bz
Fixes: d381a6b4a552 cxgbe: use newly exposed RSS hash key API rather than ad-hoc hashing
(cherry picked from commit a303b1455fb5f76b193e10b0a96fabe4e93e9f40)
---
sys/dev/cxgbe/t4_main.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c
index ae0dbc731207..e4029ef13160 100644
--- a/sys/dev/cxgbe/t4_main.c
+++ b/sys/dev/cxgbe/t4_main.c
@@ -7176,11 +7176,10 @@ vi_full_init(struct vi_info *vi)
{
struct adapter *sc = vi->adapter;
struct sge_rxq *rxq;
- int rc, i, j;
+ int rc, i, j, extra;
int hashconfig = rss_gethashconfig();
#ifdef RSS
int nbuckets = rss_getnumbuckets();
- int extra;
#endif
ASSERT_SYNCHRONIZED_OP(sc);
@@ -7237,7 +7236,6 @@ vi_full_init(struct vi_info *vi)
vi->hashen = hashconfig_to_hashen(hashconfig);
-#ifdef RSS
/*
* We may have had to enable some hashes even though the global config
* wants them disabled. This is a potential problem that must be
@@ -7271,7 +7269,7 @@ vi_full_init(struct vi_info *vi)
CH_ALERT(vi, "UDP/IPv4 4-tuple hashing forced on.\n");
if (extra & RSS_HASHTYPE_RSS_UDP_IPV6)
CH_ALERT(vi, "UDP/IPv6 4-tuple hashing forced on.\n");
-#endif
+
rc = -t4_config_vi_rss(sc, sc->mbox, vi->viid, vi->hashen, vi->rss[0],
0, 0);
if (rc != 0) {