aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:27 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:27 +0000
commit3415775dfa428da1fe63bffce0c26cfaa92076b8 (patch)
tree443b0cf36f3a26ff5227213eb74d7cbdb071da27 /sys
parent91aa93eb675aa916df6b5fd1166ee0bce1cef9dd (diff)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/qlnx/qlnxe/qlnx_os.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/qlnx/qlnxe/qlnx_os.c b/sys/dev/qlnx/qlnxe/qlnx_os.c
index 3278cf3a4333..4c1a55064a68 100644
--- a/sys/dev/qlnx/qlnxe/qlnx_os.c
+++ b/sys/dev/qlnx/qlnxe/qlnx_os.c
@@ -4872,7 +4872,10 @@ qlnx_fp_isr(void *arg)
if (fp == NULL) {
ha->err_fp_null++;
} else {
- int rx_int = 0, total_rx_count = 0;
+ int rx_int = 0;
+#ifdef QLNX_SOFT_LRO
+ int total_rx_count = 0;
+#endif
int lro_enable, tc;
struct qlnx_tx_queue *txq;
uint16_t elem_left;
@@ -4918,7 +4921,9 @@ qlnx_fp_isr(void *arg)
if (rx_int) {
fp->rx_pkts += rx_int;
+#ifdef QLNX_SOFT_LRO
total_rx_count += rx_int;
+#endif
}
} while (rx_int);