Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Sep 2022 16:21:46 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8d42019058ac - main - cxgbe: fix kernel build without TCP_OFFLOAD or RATELIMIT
Message-ID:  <202209211621.28LGLkkR074962@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=8d42019058ac96dbd8955ac28bb3dbc722587226

commit 8d42019058ac96dbd8955ac28bb3dbc722587226
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-09-21 09:53:53 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-09-21 16:19:28 +0000

    cxgbe: fix kernel build without TCP_OFFLOAD or RATELIMIT
    
    Reviewed by:    np
    Fixes:  e398922eaf6
    Sponsored by:   Nvidia networking
    Differential revision:  https://reviews.freebsd.org/D36648
---
 sys/dev/cxgbe/t4_main.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c
index fd3079b700b5..6547d199ca02 100644
--- a/sys/dev/cxgbe/t4_main.c
+++ b/sys/dev/cxgbe/t4_main.c
@@ -314,12 +314,6 @@ static int t4_rsrv_noflowq = 0;
 SYSCTL_INT(_hw_cxgbe, OID_AUTO, rsrv_noflowq, CTLFLAG_RDTUN, &t4_rsrv_noflowq,
     0, "Reserve TX queue 0 of each VI for non-flowid packets");
 
-#if defined(TCP_OFFLOAD) || defined(RATELIMIT)
-#define NOFLDTXQ 8
-static int t4_nofldtxq = -NOFLDTXQ;
-SYSCTL_INT(_hw_cxgbe, OID_AUTO, nofldtxq, CTLFLAG_RDTUN, &t4_nofldtxq, 0,
-    "Number of offload TX queues per port");
-
 static int t4_clocksync_fast = 1;
 SYSCTL_INT(_hw_cxgbe, OID_AUTO, csfast, CTLFLAG_RW | CTLFLAG_MPSAFE, &t4_clocksync_fast, 0,
     "During initial clock sync how fast do we update in seconds");
@@ -332,6 +326,12 @@ static int t4_fast_2_normal = 30;
 SYSCTL_INT(_hw_cxgbe, OID_AUTO, cscount, CTLFLAG_RW | CTLFLAG_MPSAFE, &t4_fast_2_normal, 0,
     "How many clock syncs do we need to do to transition to slow");
 
+#if defined(TCP_OFFLOAD) || defined(RATELIMIT)
+#define NOFLDTXQ 8
+static int t4_nofldtxq = -NOFLDTXQ;
+SYSCTL_INT(_hw_cxgbe, OID_AUTO, nofldtxq, CTLFLAG_RDTUN, &t4_nofldtxq, 0,
+    "Number of offload TX queues per port");
+
 #define NOFLDRXQ 2
 static int t4_nofldrxq = -NOFLDRXQ;
 SYSCTL_INT(_hw_cxgbe, OID_AUTO, nofldrxq, CTLFLAG_RDTUN, &t4_nofldrxq, 0,



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