From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AE388A0032 for ; Fri, 18 Feb 2022 13:53:16 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8CE7240141; Fri, 18 Feb 2022 13:53:16 +0100 (CET) Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) by mails.dpdk.org (Postfix) with ESMTP id 7F78740141 for ; Fri, 18 Feb 2022 13:53:14 +0100 (CET) Received: by mail-ed1-f42.google.com with SMTP id c6so12583792edk.12 for ; Fri, 18 Feb 2022 04:53:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=AK5ZUmGrsxOZcqiiBg9hSM9O79jFD9NY0Zn0UcNhF3U=; b=TBUeADmxxdxynAgvHHkU3goYtZw61gZE6z/PJvDEzypQCexm1uG3hi0Pujj+jIXybn m2gB4GmJ4C1+YfeLWrCZG2OffkRZ6twPy0JRz+t8AAWjpLerXqyL0lN6MNcbF1JwaNrg w9+GTKL7i7PJy3UzbQBGPbGU2SLHxKMwbUxwp7cAIsPX2VlFjD/zuv7K2y2s8JyCGRPR t7b4bNod1s+n9PNK4ZydABSGrbsW2ShLNWGtyrPn2wz1S3YubLpKT0093ZwNhLZknz2J E56LNr2OK1i9Zg4J5kHv/g0PfTBpLWDeLrumiLbRrBCmRKBoauu1KQaj7Sx2oSr8Lcsu wbvw== X-Gm-Message-State: AOAM533wvHH6FAbUxgAQEXXvJjZhwm9sEc3GrS5PjA5E7MlhTYZbLiWb RG5M5EZO+0kg5wjAren0Jyw= X-Google-Smtp-Source: ABdhPJyBea6trLCKDBzKsibEnxNpUh/GlFNg41ET535Ns4htxVOhz/Rjd1nO7cNFKQY0XOSfzQSGiw== X-Received: by 2002:aa7:c7c4:0:b0:407:52cc:3b32 with SMTP id o4-20020aa7c7c4000000b0040752cc3b32mr7955236eds.397.1645188794182; Fri, 18 Feb 2022 04:53:14 -0800 (PST) Received: from localhost ([2a01:4b00:f41a:3600:360b:9754:2e3a:c344]) by smtp.gmail.com with ESMTPSA id p12sm1747050edc.49.2022.02.18.04.53.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 04:53:13 -0800 (PST) Message-ID: <3527973b6e40215d6de1e06839f5308a2a7e8725.camel@debian.org> Subject: Re: [PATCH 20.11] net/octeontx2:: fix base rule merge From: Luca Boccassi To: psatheesh@marvell.com, Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K Cc: stable@dpdk.org Date: Fri, 18 Feb 2022 12:53:13 +0000 In-Reply-To: <20220218035622.1583143-1-psatheesh@marvell.com> References: <20220218035622.1583143-1-psatheesh@marvell.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.38.3-1+plugin MIME-Version: 1.0 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Fri, 2022-02-18 at 09:26 +0530, psatheesh@marvell.com wrote: > From: Satheesh Paul >=20 > 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. >=20 > Fixes: ce3a1c3164 ("net/octeontx2: support VF base steering rule") >=20 > Signed-off-by: Satheesh Paul > Reviewed-by: Kiran Kumar Kokkilagadda > --- > =C2=A0drivers/net/octeontx2/otx2_flow_utils.c | 2 +- > =C2=A01 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/octeontx2/otx2_flow_utils.c b/drivers/net/octeon= tx2/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, > =C2=A0 return NPC_MCAM_ALLOC_FAILED; > =C2=A0 } > =C2=A0 >=20 > - if (pst->is_vf) { > + if (pst->is_vf && flow->nix_intf =3D=3D OTX2_INTF_RX) { > =C2=A0 (void)otx2_mbox_alloc_msg_npc_read_base_steer_rule(mbox); > =C2=A0 rc =3D otx2_mbox_process_msg(mbox, (void *)&base_rule_rsp); > =C2=A0 if (rc) { Thanks, applied and pushed. --=20 Kind regards, Luca Boccassi