From patchwork Wed Oct 6 07:20:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 100577 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CF108A0C45; Wed, 6 Oct 2021 09:20:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87AEB41139; Wed, 6 Oct 2021 09:20:32 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id F27CD41103 for ; Wed, 6 Oct 2021 09:20:30 +0200 (CEST) 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 SMTP id 195MBX4A012824; Wed, 6 Oct 2021 00:20:30 -0700 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-type; s=pfpt0220; bh=YIyPLIfNcZbG3Y/jS+bf6GQeehVUH1KtZfHXUm12w2g=; b=W8+2rD5cHW/c8doQ99kyI/EeSWkVW5Zv5HqHF5AZS85vh8QA6XAC0RWwYr8UU5j60z2F 8Zf3G3yNS+2CcGGN/YH1t6VLqIvSxlBlmwBSC5CRp2jHLhsiQWhkZHtSWAMAxa93lmNn i7Yg8hbVde3LOHTidvPOWt8v6YGm4vKPGKUVMIE69OgX/yJKhNjumF1/OAZmtnHX2dQ9 AZ2H0z1yHv1vk5jMw8t6jyc/8oKlR4RY+p+xOfcSUuAHX72OJmZu+zihTcBrRXdoecDp xX1VclE2+VqrRSKmUAQKxwq02eABGhioNdLuA+wsntIkV2d6BePY/MRSfYA66xoJOhyw Cg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com with ESMTP id 3bgy9d1qgh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 06 Oct 2021 00:20:30 -0700 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.18; Wed, 6 Oct 2021 00:20:28 -0700 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; Wed, 6 Oct 2021 00:20:28 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id F31EF3F7054; Wed, 6 Oct 2021 00:20:21 -0700 (PDT) From: Nithin Dabilpuram To: Radu Nicolau , Akhil Goyal CC: , , , "Nithin Dabilpuram" Date: Wed, 6 Oct 2021 12:50:16 +0530 Message-ID: <20211006072016.8465-1-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20211006071609.7695-1-ndabilpuram@marvell.com> References: <20211006071609.7695-1-ndabilpuram@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: dsfrNQOrKM_ct_ogHRyPIPsl7UEZMQfE X-Proofpoint-ORIG-GUID: dsfrNQOrKM_ct_ogHRyPIPsl7UEZMQfE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-10-05_06,2021-10-04_01,2020-04-07_01 Subject: [dpdk-dev] [PATCH v2] examples/ipsec-secgw: accept inline proto pkts in single sa 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 Sender: "dev" In inline protocol inbound SA's, plain ipv4 and ipv6 packets are delivered to application unlike inline crypto or lookaside. Hence fix the application to not drop them when working in single SA mode. Signed-off-by: Nithin Dabilpuram Acked-by: Akhil Goyal --- v2: - Fixed commit message. examples/ipsec-secgw/ipsec-secgw.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index 7ad94cb..96fbae2 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -848,16 +848,6 @@ process_pkts_inbound_nosp(struct ipsec_ctx *ipsec_ctx, struct rte_mbuf *m; uint32_t nb_pkts_in, i, idx; - /* Drop any IPv4 traffic from unprotected ports */ - free_pkts(traffic->ip4.pkts, traffic->ip4.num); - - traffic->ip4.num = 0; - - /* Drop any IPv6 traffic from unprotected ports */ - free_pkts(traffic->ip6.pkts, traffic->ip6.num); - - traffic->ip6.num = 0; - if (app_sa_prm.enable == 0) { nb_pkts_in = ipsec_inbound(ipsec_ctx, traffic->ipsec.pkts,