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 401D741C5A; Fri, 10 Feb 2023 05:21:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4FF2042C76; Fri, 10 Feb 2023 05:21:40 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 2DF0342D13; Fri, 10 Feb 2023 05:21:39 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31A34i3B010487; Thu, 9 Feb 2023 20:21:38 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=oKg/5bjkAUVLaIfS6dxcJ1coy+p806t6CuDfT9fEq2A=; b=JFsrma7oIq87ZPyk/SbSvWJv2nF7+e/olijKNxrR7S21j10wBcV3VT7r6fDS9wJhdlvB e50mlalJlR7WMjjQmJJbA1uXeBmYk0N1YKMVrIo8rhvwcVdG9fuWJsleYagOBQ/5mFiR HC4/JKiOQPmnh5jvzPFAF0Qw+zZHCzMotuqF6V64kkez+2+bAdUW0H/VKHHiXrw54dRC +anzUFHlSCTAEs0Ua/OEp3gM2LOyTi9ajUEnjfBRbZ3at1brv3QB/1uOA6a/z0DYbInu GkCxbuNt2/vMA6vFwo/+IbjfX/AZw6uF3nYenZZ1d67jP6UKZcBARI3WhCWbq/HbMcGO 5Q== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3nn71cjehh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 09 Feb 2023 20:21:38 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 9 Feb 2023 20:21:36 -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.42 via Frontend Transport; Thu, 9 Feb 2023 20:21:36 -0800 Received: from satheeshpaullabpc.. (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id D1FE05B693B; Thu, 9 Feb 2023 20:21:33 -0800 (PST) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Satheesh Paul , Subject: [dpdk-dev] [PATCH 3/3] common/cnxk: fix inline IPsec rule creation Date: Fri, 10 Feb 2023 09:51:21 +0530 Message-ID: <20230210042121.3013558-3-psatheesh@marvell.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230210042121.3013558-1-psatheesh@marvell.com> References: <20230210042121.3013558-1-psatheesh@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: bosUOn8TiYLTrGHXqRD6Ko_gMsb409qx X-Proofpoint-GUID: bosUOn8TiYLTrGHXqRD6Ko_gMsb409qx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-10_01,2023-02-09_03,2023-02-09_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Satheesh Paul Use inline IPsec device to create IPsec rules irrespective of RTE_ETH_RX_OFFLOAD_SECURITY offload flag. Fixes: 1aa86a170e ("drivers: support IPsec rule reservation scheme") Cc: stable@dpdk.org Signed-off-by: Satheesh Paul Reviewed-by: Nithin Dabilpuram Reviewed-by: Kiran Kumar K --- drivers/common/cnxk/roc_npc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_npc.c b/drivers/common/cnxk/roc_npc.c index 579b3dce9a..d3efebe663 100644 --- a/drivers/common/cnxk/roc_npc.c +++ b/drivers/common/cnxk/roc_npc.c @@ -562,8 +562,10 @@ npc_parse_actions(struct roc_npc *roc_npc, const struct roc_npc_attr *attr, } rq = inl_rq->qid; pf_func = nix_inl_dev_pffunc_get(); - flow->is_inline_dev = 1; } + + if (roc_nix_inl_dev_is_probed()) + flow->is_inline_dev = 1; sec_action = actions; break; case ROC_NPC_ACTION_TYPE_VLAN_STRIP: -- 2.35.3