Commit d38c19b
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 <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20230817231911.165035-4-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 578fcfd commit d38c19b
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9393 | 9393 | | |
9394 | 9394 | | |
9395 | 9395 | | |
9396 | | - | |
| 9396 | + | |
| 9397 | + | |
9397 | 9398 | | |
9398 | | - | |
9399 | | - | |
| 9399 | + | |
| 9400 | + | |
| 9401 | + | |
| 9402 | + | |
| 9403 | + | |
9400 | 9404 | | |
9401 | 9405 | | |
9402 | 9406 | | |
| |||
9413 | 9417 | | |
9414 | 9418 | | |
9415 | 9419 | | |
9416 | | - | |
9417 | | - | |
9418 | 9420 | | |
9419 | 9421 | | |
9420 | 9422 | | |
| |||
0 commit comments