[PATCH 20.11] net/octeontx2:: fix base rule merge
psatheesh at marvell.com
psatheesh at marvell.com
Fri Feb 18 04:56:22 CET 2022
From: Satheesh Paul <psatheesh at marvell.com>
Egress rules do not have a base steering rule and the
current base steering rule is applicable only for ingress
rules. Hence, when creating a flow rule, merge base steering
rule only for ingress rules.
Fixes: ce3a1c3164 ("net/octeontx2: support VF base steering rule")
Signed-off-by: Satheesh Paul <psatheesh at marvell.com>
Reviewed-by: Kiran Kumar Kokkilagadda <kirankumark at marvell.com>
---
drivers/net/octeontx2/otx2_flow_utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/octeontx2/otx2_flow_utils.c b/drivers/net/octeontx2/otx2_flow_utils.c
index 7ed86ba742..31277adcb4 100644
--- a/drivers/net/octeontx2/otx2_flow_utils.c
+++ b/drivers/net/octeontx2/otx2_flow_utils.c
@@ -909,7 +909,7 @@ otx2_flow_mcam_alloc_and_write(struct rte_flow *flow, struct otx2_mbox *mbox,
return NPC_MCAM_ALLOC_FAILED;
}
- if (pst->is_vf) {
+ if (pst->is_vf && flow->nix_intf == OTX2_INTF_RX) {
(void)otx2_mbox_alloc_msg_npc_read_base_steer_rule(mbox);
rc = otx2_mbox_process_msg(mbox, (void *)&base_rule_rsp);
if (rc) {
--
2.25.4
More information about the stable
mailing list