Commit b4fc8fa
bnxt_en: Fix stats context reservation logic
The HW resource reservation logic allows the L2 driver to use the
RoCE resources if the RoCE driver is not registered. When calculating
the stats contexts available for L2, we should not blindly subtract
the stats contexts reserved for RoCE unless the RoCE driver is
registered. This bug may cause the L2 rings to be less than the
number requested when we are close to running out of stats contexts.
Fixes: 2e4592d ("bnxt_en: Change MSIX/NQs allocation policy")
Reviewed-by: Kalesh AP <[email protected]>
Reviewed-by: Somnath Kotur <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 1ee581c commit b4fc8fa
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8016 | 8016 | | |
8017 | 8017 | | |
8018 | 8018 | | |
8019 | | - | |
| 8019 | + | |
| 8020 | + | |
8020 | 8021 | | |
8021 | 8022 | | |
8022 | 8023 | | |
| |||
0 commit comments