aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2022-09-21 09:53:53 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2022-09-21 16:19:28 +0000
commit8d42019058ac96dbd8955ac28bb3dbc722587226 (patch)
tree48295730a1e2e78a3de312e1b40b6fc650fea4b5
parent24e1824e4646237c5ab8e63f59fa38e076f18ba7 (diff)
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
-rw-r--r--sys/dev/cxgbe/t4_main.c12
1 files 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,