[PATCH 2/4] net/bnxt: fix QP resource count in backing store config
Kishore Padmanabha
kishore.padmanabha at broadcom.com
Thu Jun 4 19:41:28 CEST 2026
On Wed, Jun 3, 2026 at 1:49 PM Mohammad Shuab Siddique <
mohammad-shuab.siddique at broadcom.com> wrote:
> From: Ajit Khaparde <ajit.khaparde at broadcom.com>
>
> The driver is not passing the QP1 count while
> configuring backing store for QP type.
> This can result in a smaller set of entries allocated by the
> driver with the firmware.
>
> The number of entries is provided by the firmware as a
> part of backing store qcaps v2 HWRM command.
>
> Fixes: 5b5d398434f9 ("net/bnxt: add support for backing store v2")
> Cc: stable at dpdk.org
> Signed-off-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
> Signed-off-by: Mohammad Shuab Siddique <
> mohammad-shuab.siddique at broadcom.com>
>
Acked-by: Kishore Padmanabha <kishore.padmanabha at broadcom.com>
> ---
> drivers/net/bnxt/bnxt_ethdev.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/bnxt/bnxt_ethdev.c
> b/drivers/net/bnxt/bnxt_ethdev.c
> index b677f9491d..7d70d0f3ec 100644
> --- a/drivers/net/bnxt/bnxt_ethdev.c
> +++ b/drivers/net/bnxt/bnxt_ethdev.c
> @@ -5404,11 +5404,11 @@ int bnxt_alloc_ctx_pg_tbls(struct bnxt *bp)
> if (ctxm->type ==
> HWRM_FUNC_BACKING_STORE_CFG_V2_INPUT_TYPE_CQ)
> entries = ctxm->cq_l2_entries;
> else if (ctxm->type ==
> HWRM_FUNC_BACKING_STORE_CFG_V2_INPUT_TYPE_QP)
> - entries = ctxm->qp_l2_entries;
> + entries = ctxm->qp_l2_entries +
> ctxm->qp_qp1_entries;
> else if (ctxm->type ==
> HWRM_FUNC_BACKING_STORE_CFG_V2_INPUT_TYPE_MRAV)
> entries = ctxm->mrav_av_entries;
> else if (ctxm->type ==
> HWRM_FUNC_BACKING_STORE_CFG_V2_INPUT_TYPE_TIM)
> - entries = ctx2->qp_l2_entries;
> + entries = ctx2->qp_l2_entries +
> ctx2->qp_qp1_entries;
> entries = clamp_t(uint32_t, entries,
> ctxm->min_entries,
> ctxm->max_entries);
> ctx_pg[i].entries = entries;
> --
> 2.47.3
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20260604/9881c637/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5493 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mails.dpdk.org/archives/dev/attachments/20260604/9881c637/attachment-0001.bin>
More information about the dev
mailing list