diff options
author | Michael Chan <michael.chan@broadcom.com> | 2024-02-21 00:03:09 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-02-22 15:31:22 +0100 |
commit | ae8186b2d4064699e182682cff2ddc1c9486be38 (patch) | |
tree | 486fb10d7fb7a998baa1df2b429505dd45b36211 /drivers/net/ethernet/broadcom/bnxt/bnxt.h | |
parent | bnxt_en: Refactor ring reservation functions (diff) | |
download | linux-ae8186b2d4064699e182682cff2ddc1c9486be38.tar.xz linux-ae8186b2d4064699e182682cff2ddc1c9486be38.zip |
bnxt_en: Explicitly specify P5 completion rings to reserve
The current code assumes that every RX ring group and every TX ring
requires a completion ring on P5_PLUS chips. Now that we have the
bnxt_hw_rings structure, add the cp_p5 field so that it can
be explicitly specified. This makes the logic more clear.
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h index bb3b31f8d02f..681a579afcc2 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h @@ -1259,6 +1259,7 @@ struct bnxt_hw_rings { int rx; int grp; int cp; + int cp_p5; int stat; int vnic; }; |