net/bnxt: fix promiscuous mode set
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")
Signed-off-by Kishore Padmanabha <[email protected]>
Signed-off-by Manish Kurup <[email protected]>
--- 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
@@ -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