bnxt_en: Reserve 1 stat_ctx for RDMA driver.
bnxt_en requires same number of stat_ctxs as CP rings but RDMA requires only 1 stat_ctx. Also add a new parameter resv_stat_ctxs to better keep track of stat_ctxs reserved including resources used by RDMA. Add a stat_ctxs parameter to all the relevant resource reservation functions so we can reserve the correct number of stat_ctxs. Prior to this patch, we were not reserving the extra stat_ctx for RDMA and RDMA would not work on the new 57500 chips. Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
f4e896142d
commit
780baad44f
@@ -927,6 +927,7 @@ struct bnxt_hw_resc {
|
||||
u16 resv_vnics;
|
||||
u16 min_stat_ctxs;
|
||||
u16 max_stat_ctxs;
|
||||
u16 resv_stat_ctxs;
|
||||
u16 max_nqs;
|
||||
u16 max_irqs;
|
||||
u16 resv_irqs;
|
||||
|
Reference in New Issue
Block a user