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 26824A04A9 for ; Tue, 25 Jan 2022 05:18:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 189DE42828; Tue, 25 Jan 2022 05:18:09 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 3C7B54013F; Tue, 25 Jan 2022 05:18:07 +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 20P3LC79012250; Mon, 24 Jan 2022 20:18:06 -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=SgJSUpMMSD6D5qTZ++5XeuBsRibc4WiAhpnm1XpCols=; b=ROp6Bg0of6BkV2iVUcAWL1dLPWDQyQJUoGs2QG1h2Wx4cZYdHONW6z3Yvq8SDmSeXGdF YHn9Xl1cXEeUzYNmS3f9RbroD4F2lXwmnpkTuY3OyaljBoDV5Oe+qqRTJzox6sHpAqFG tgIheDAk53WNsbtrGPowGidWCpugDW6fRqKAIfpnp/fKRQmGzwVNDGXwEpwm5a7mw5KD 4kTtYluQ4Olve19X31xGgR9GWl0/PgdAtFbIXN1867KZvHPoEyLzNxG39QOwMQ7YxE0U udynL25bcpzE4gCGi3Tkk/47McoUV9DIWum10So0GsuURqqf+dYsh511wQI1V+UqmQSn AA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3dt97n04dw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 24 Jan 2022 20:18:06 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 24 Jan 2022 20:18:04 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Mon, 24 Jan 2022 20:18:04 -0800 Received: from localhost.localdomain (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id 7C8DD5E6867; Mon, 24 Jan 2022 20:18:02 -0800 (PST) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Satheesh Paul , Subject: [dpdk-dev] [PATCH] common/cnxk: fix base rule merging only for ingress Date: Tue, 25 Jan 2022 09:47:59 +0530 Message-ID: <20220125041759.905955-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: vLejlOpbYIeWY_oPul5eXls-rBttmL_j X-Proofpoint-GUID: vLejlOpbYIeWY_oPul5eXls-rBttmL_j 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-01-25_01,2022-01-24_02,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 When creating flow rule, merge base steering rule only for ingress rules. Fixes: f9af9080746 ("common/cnxk: add mcam utility API") Cc: stable@dpdk.org Signed-off-by: Satheesh Paul Reviewed-by: Kiran Kumar Kokkilagadda --- drivers/common/cnxk/roc_npc_mcam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_npc_mcam.c b/drivers/common/cnxk/roc_npc_mcam.c index b251f643bc..7a3a8944f5 100644 --- a/drivers/common/cnxk/roc_npc_mcam.c +++ b/drivers/common/cnxk/roc_npc_mcam.c @@ -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) { -- 2.25.4