[PATCH 20.11] net/octeontx2:: fix base rule merge
Luca Boccassi
bluca at debian.org
Fri Feb 18 13:53:13 CET 2022
On Fri, 2022-02-18 at 09:26 +0530, psatheesh at marvell.com wrote:
> 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) {
Thanks, applied and pushed.
--
Kind regards,
Luca Boccassi
More information about the stable
mailing list