diff options
| author | Michael Chan <[email protected]> | 2023-08-17 23:19:08 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-08-19 02:13:58 +0000 |
| commit | d38c19b13b1087890973ac24ae2798797b8a411b (patch) | |
| tree | e3c89846de86a76aa81661980ad2ddfbd2daee01 /net/ipv4/tcp_output.c | |
| parent | bnxt_en: Let the page pool manage the DMA mapping (diff) | |
| download | kernel-d38c19b13b1087890973ac24ae2798797b8a411b.tar.gz kernel-d38c19b13b1087890973ac24ae2798797b8a411b.zip | |
bnxt_en: Increment rx_resets counter in bnxt_disable_napi()
If we are doing a complete reset with irq_re_init set to true in
bnxt_close_nic(), all the ring structures will be freed. New
structures will be allocated in bnxt_open_nic(). The current code
increments rx_resets counter in bnxt_enable_napi() if bnapi->in_reset
is true. In a complete reset, bnapi->in_reset will never be true
since the structure is just allocated.
Increment the rx_resets counter in bnxt_disable_napi() instead. This
will allow us to save all the ring error counters including the
rx_resets counters in the next patch.
Signed-off-by: Michael Chan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
