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 9C452A0032 for ; Fri, 18 Feb 2022 04:56:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FB6E40150; Fri, 18 Feb 2022 04:56:39 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id CB67C40150 for ; Fri, 18 Feb 2022 04:56:37 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21I0bVkf014544 for ; Thu, 17 Feb 2022 19:56:35 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=uImBkuhEjTzc36rKqwonXEZQtqej7TmfLIMqOheIDWA=; b=aAr+M8sY07L529AqkAXtU6rFY7z8+wDoa0HhDw2Yg+aA8v1TwPr9VpzTc72rAtbg3hzH 0o6xO3wjDqB9Juo4ANcMfwSQEwlrZUxGSYh4YwWR/fnydH2dUYnIXG9nL8PoUkAikMkQ iKOzstGy7kAGLfycyD62A80lM8XjQ0gvh9Unz3DBR2jMtSebXjGF1x62iMRLmdmn6rnW 2pL1Ha1K3HinZ32SigRZXWl5mXqjuKmp1Egvvz2ATD1X5sDrmhHjf64DKPgomhASdYy7 iiJ1uSGSq+Z5xOSOvq197X/m8tBs29FIxyNqqclv2tDlyHWRfS9A86xh3paJOp51xczy YA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3e9sqrjp5m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 17 Feb 2022 19:56:35 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 17 Feb 2022 19:56:33 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 17 Feb 2022 19:56:33 -0800 Received: from localhost.localdomain (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id 2BCA33F7059; Thu, 17 Feb 2022 19:56:31 -0800 (PST) From: To: Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K CC: , Satheesh Paul Subject: [PATCH 20.11] net/octeontx2:: fix base rule merge Date: Fri, 18 Feb 2022 09:26:22 +0530 Message-ID: <20220218035622.1583143-1-psatheesh@marvell.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: hDKdAJJ6b_4dFy-DaS6Wc1Qd2WaLyC2r X-Proofpoint-GUID: hDKdAJJ6b_4dFy-DaS6Wc1Qd2WaLyC2r X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-18_01,2022-02-17_01,2021-12-02_01 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 From: Satheesh Paul 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 Reviewed-by: Kiran Kumar Kokkilagadda --- 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