summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt.h
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2024-02-21 00:03:09 +0100
committerPaolo Abeni <pabeni@redhat.com>2024-02-22 15:31:22 +0100
commitae8186b2d4064699e182682cff2ddc1c9486be38 (patch)
tree486fb10d7fb7a998baa1df2b429505dd45b36211 /drivers/net/ethernet/broadcom/bnxt/bnxt.h
parentbnxt_en: Refactor ring reservation functions (diff)
downloadlinux-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.h1
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;
};