Skip to contentSkip to conversation

net/bnxt: fix promiscuous mode set

PATCH New Manish Kurup 1 participant 1 message Oct 5 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/bnxt: fix promiscuous mode set

From: Kishore Padmanabha <[email protected]>

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")
---
 drivers/net/bnxt/tf_ulp/ulp_def_rules.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/bnxt/tf_ulp/ulp_def_rules.c +4 -0
index 8ff3c24993..e37ba29488 100644
@@ -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];
 
Signature · 1 line
2.31.1