Commit 1d62059
committed
bnxt_en: Fix DIM shutdown
JIRA: https://issues.redhat.com/browse/RHEL-72033
commit 4045296
Author: Michael Chan <michael.chan@broadcom.com>
Date: Fri Jan 3 20:38:48 2025 -0800
bnxt_en: Fix DIM shutdown
DIM work will call the firmware to adjust the coalescing parameters on
the RX rings. We should cancel DIM work before we call the firmware
to free the RX rings. Otherwise, FW will reject the call from DIM
work if the RX ring has been freed. This will generate an error
message like this:
bnxt_en 0000:21:00.1 ens2f1np1: hwrm req_type 0x53 seq id 0x6fca error 0x2
and cause unnecessary concern for the user. It is also possible to
modify the coalescing parameters of the wrong ring if the ring has
been re-allocated.
To prevent this, cancel DIM work right before freeing the RX rings.
We also have to add a check in NAPI poll to not schedule DIM if the
RX rings are shutting down. Check that the VNIC is active before we
schedule DIM. The VNIC is always disabled before we free the RX rings.
Fixes: 0bc0b97 ("bnxt_en: cleanup DIM work on device shutdown")
Reviewed-by: Hongguang Gao <hongguang.gao@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20250104043849.3482067-3-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Michal Schmidt <mschmidt@redhat.com>1 parent 0a9e17f commit 1d62059
1 file changed
+33
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2826 | 2826 | | |
2827 | 2827 | | |
2828 | 2828 | | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
2829 | 2836 | | |
2830 | 2837 | | |
2831 | 2838 | | |
| |||
3093 | 3100 | | |
3094 | 3101 | | |
3095 | 3102 | | |
3096 | | - | |
| 3103 | + | |
3097 | 3104 | | |
3098 | 3105 | | |
3099 | 3106 | | |
| |||
3224 | 3231 | | |
3225 | 3232 | | |
3226 | 3233 | | |
3227 | | - | |
| 3234 | + | |
3228 | 3235 | | |
3229 | 3236 | | |
3230 | 3237 | | |
| |||
7116 | 7123 | | |
7117 | 7124 | | |
7118 | 7125 | | |
| 7126 | + | |
| 7127 | + | |
| 7128 | + | |
| 7129 | + | |
| 7130 | + | |
| 7131 | + | |
| 7132 | + | |
| 7133 | + | |
| 7134 | + | |
| 7135 | + | |
| 7136 | + | |
| 7137 | + | |
| 7138 | + | |
| 7139 | + | |
| 7140 | + | |
| 7141 | + | |
| 7142 | + | |
| 7143 | + | |
| 7144 | + | |
| 7145 | + | |
7119 | 7146 | | |
7120 | 7147 | | |
7121 | 7148 | | |
| |||
7216 | 7243 | | |
7217 | 7244 | | |
7218 | 7245 | | |
| 7246 | + | |
7219 | 7247 | | |
7220 | 7248 | | |
7221 | 7249 | | |
| |||
11012 | 11040 | | |
11013 | 11041 | | |
11014 | 11042 | | |
11015 | | - | |
11016 | | - | |
11017 | 11043 | | |
11018 | 11044 | | |
11019 | 11045 | | |
| |||
15269 | 15295 | | |
15270 | 15296 | | |
15271 | 15297 | | |
15272 | | - | |
| 15298 | + | |
| 15299 | + | |
15273 | 15300 | | |
| 15301 | + | |
15274 | 15302 | | |
15275 | 15303 | | |
15276 | 15304 | | |
| |||
0 commit comments