git: 3415775dfa42 - main - qlnx: Move all references to total_rx_count under #ifdef QLNX_SOFT_LRO.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Apr 2022 00:03:30 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3415775dfa428da1fe63bffce0c26cfaa92076b8 commit 3415775dfa428da1fe63bffce0c26cfaa92076b8 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-08 00:01:27 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-08 00:01:27 +0000 qlnx: Move all references to total_rx_count under #ifdef QLNX_SOFT_LRO. --- sys/dev/qlnx/qlnxe/qlnx_os.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);