From: Manish Kurup <manish.kurup@broadcom.com>
To: dev@dpdk.org
Cc: kishore.padmanabha@broadcom.com, stable@dpdk.org
Subject: [PATCH] net/bnxt: fix promiscuous mode set
Date: Mon, 5 Oct 2026 18:51:01 -0500 [thread overview]
Message-ID: <20261005235101.27226-1-manish.kurup@broadcom.com> (raw)
From: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Promiscuous mode set is only supported on Thor and Thor2 platforms,
not on Whitney. Skip the operation on unsupported platforms instead
of proceeding.
Fixes: c9a3c921d0c3 ("net/bnxt/tf_ulp: support unicast-only feature")
Cc: stable@dpdk.org
Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Signed-off-by: Manish Kurup <manish.kurup@broadcom.com>
---
drivers/net/bnxt/tf_ulp/ulp_def_rules.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/bnxt/tf_ulp/ulp_def_rules.c b/drivers/net/bnxt/tf_ulp/ulp_def_rules.c
index 8ff3c24993..e37ba29488 100644
--- a/drivers/net/bnxt/tf_ulp/ulp_def_rules.c
+++ b/drivers/net/bnxt/tf_ulp/ulp_def_rules.c
@@ -829,6 +829,10 @@ bnxt_ulp_promisc_mode_set(struct bnxt *bp, uint8_t enable)
!bp->ulp_ctx)
return rc;
+ /* This mode set is supported only on thor and thor2 */
+ if (!BNXT_CHIP_P5_P7(bp))
+ return rc;
+
port_id = bp->eth_dev->data->port_id;
info = &bp->ulp_ctx->cfg_data->df_rule_info[port_id];
--
2.31.1
reply other threads:[~2026-10-05 23:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261005235101.27226-1-manish.kurup@broadcom.com \
--to=manish.kurup@broadcom.com \
--cc=dev@dpdk.org \
--cc=kishore.padmanabha@broadcom.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox