bnxt_en: Explicitly specify P5 completion rings to reserve
authorMichael Chan <michael.chan@broadcom.com>
Tue, 20 Feb 2024 23:03:09 +0000 (15:03 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 22 Feb 2024 14:31:22 +0000 (15:31 +0100)
commitae8186b2d4064699e182682cff2ddc1c9486be38
tree486fb10d7fb7a998baa1df2b429505dd45b36211
parent257bbf45af81bac9b0e38be530a554e2cff92700
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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h