common/cnxk: fix base rule merge
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: f9af90807466 ("common/cnxk: add mcam utility API") Cc: stable@dpdk.org Signed-off-by: Satheesh Paul <psatheesh@marvell.com> Reviewed-by: Kiran Kumar K <kirankumark@marvell.com>
This commit is contained in:
parent
542e27e99b
commit
0fb2b46be7
@ -752,7 +752,7 @@ npc_program_mcam(struct npc *npc, struct npc_parse_state *pst, bool mcam_alloc)
|
||||
if (pst->set_ipv6ext_ltype_mask)
|
||||
npc_set_ipv6ext_ltype_mask(pst);
|
||||
|
||||
if (pst->is_vf) {
|
||||
if (pst->is_vf && pst->flow->nix_intf == NIX_INTF_RX) {
|
||||
(void)mbox_alloc_msg_npc_read_base_steer_rule(npc->mbox);
|
||||
rc = mbox_process_msg(npc->mbox, (void *)&base_rule_rsp);
|
||||
if (rc) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user