qlnx: Move all references to total_rx_count under #ifdef QLNX_SOFT_LRO.

This commit is contained in:
John Baldwin 2022-04-07 17:01:27 -07:00
parent 91aa93eb67
commit 3415775dfa

View File

@ -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);