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 780F941C5D for ; Fri, 10 Feb 2023 09:26:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 68CE542D29; Fri, 10 Feb 2023 09:26:38 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 28AB242C4D; Fri, 10 Feb 2023 09:26:35 +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 31A80SNX029250; Fri, 10 Feb 2023 00:26:34 -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=Lqlkte8o/ysDD0XJjfsnX1cgmhz6TPI2erI+Fuihoq8=; b=ggPLHEKcM9TKJYGSA8PsZ2TimBjgLYZSMDDyDFQucgYbv0nbTcaXpuFKkDHxWwpa2Hot txPX8DeA9KyT7GoZu8i/EchZGKqLewzJ3bmmcBvltBWEf3ACpibRCU0Wj4fuzGa2qmB3 2Mtf3rAtkUklgl/Uqk3IT09KYFDtEwKbyHaEQaA4kA0z963pU0MmDkHb7rrs9qdtPOZN eRwER+mixHNdWn/tUeqhUVuQXqmTNgzp2phBBcfsuwhIUvp8GLsJ5D8NJZxTgTr2qJo7 LMEdkNvd6wyMS1Ypl1UN6ak+Auvnef5hVxOGJYNHtWWsP50vUh3tPSkvIdbwUTMrI7pt 0g== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3nn71ckc66-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 10 Feb 2023 00:26:34 -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; Fri, 10 Feb 2023 00:26:32 -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; Fri, 10 Feb 2023 00:26:32 -0800 Received: from satheeshpaullabpc.. (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id 17A785B6939; Fri, 10 Feb 2023 00:26:29 -0800 (PST) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Satheesh Paul , Subject: [dpdk-dev] [PATCH v2 3/3] common/cnxk: fix inline IPsec rule creation Date: Fri, 10 Feb 2023 13:56:16 +0530 Message-ID: <20230210082616.3075424-3-psatheesh@marvell.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230210082616.3075424-1-psatheesh@marvell.com> References: <20230210042121.3013558-1-psatheesh@marvell.com> <20230210082616.3075424-1-psatheesh@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: Tw0NTRjXoJo9Rzpm9NB8vGJOQMcOu6G6 X-Proofpoint-GUID: Tw0NTRjXoJo9Rzpm9NB8vGJOQMcOu6G6 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_03,2023-02-09_03,2023-02-09_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 Use inline IPsec device to create IPsec rules irrespective of RTE_ETH_RX_OFFLOAD_SECURITY offload flag. Fixes: 1aa86a170e27 ("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