bnxt_en: Improve RSS context reservation infrastructure
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Tue, 20 Feb 2024 23:03:10 +0000 (15:03 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 22 Feb 2024 14:31:22 +0000 (15:31 +0100)
commit438ba39b25fe71fc9cd862f30d25e54ed8f00603
tree624a85dee742febd3a21153df1e561c3ad326d62
parentae8186b2d4064699e182682cff2ddc1c9486be38
bnxt_en: Improve RSS context reservation infrastructure

Add RSS context fields to struct bnxt_hw_rings and struct bnxt_hw_resc.
With these, we can now specific the exact number of RSS contexts to
reserve and store the reserved value.  The original code relies on
other resources to infer the number of RSS contexts to reserve and the
reserved value is not stored.  This improved infrastructure will make
the RSS context accounting more complete and is needed by later
patches.

Signed-off-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