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 A6785A0C45; Wed, 6 Oct 2021 09:16:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B72D41103; Wed, 6 Oct 2021 09:16:38 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 395AB410FA for ; Wed, 6 Oct 2021 09:16:37 +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 195MBCxe012327; Wed, 6 Oct 2021 00:16:35 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=epUB8hfUdy439ynDQsDXlea+x3a2/ojHFBUgB5P2uTw=; b=PQiEOBnTDIWLYnN2SENdwy0OSCZBmMd+I7QhQoQxPnWZ/b6RFrvcuDpMSq+nxPxdlESE TgcCsvqY7gMc3km7oO0GC9zTQCfCowITAiTE7tgyChlNwgCKsk3FoZS2GQALFi8D8fmd ip1tlFkOkt4bLmlh8E24zpDusyDUh1Vqu+zmCYeH3eaiXyU1rlxfjIbUgzubPdglFz+j KnQ3V8cEPSz7RCbmrD/AL07he1VAqVkt953gC/exedmb3Di9i4ptiR2fNglZI/zKTINg 1WvBG99bEPnW4CQo/NDW23sn93jgj7EcbnYcdn0nElV671OPfSLwrJLFIl+ukM97jFCS Bg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 3bgy9d1q0t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 06 Oct 2021 00:16:35 -0700 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.18; Wed, 6 Oct 2021 00:16:34 -0700 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.18 via Frontend Transport; Wed, 6 Oct 2021 00:16:33 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 1E3CF3F704C; Wed, 6 Oct 2021 00:16:31 -0700 (PDT) From: Nithin Dabilpuram To: Radu Nicolau , Akhil Goyal CC: , , , "Nithin Dabilpuram" Date: Wed, 6 Oct 2021 12:46:09 +0530 Message-ID: <20211006071609.7695-1-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: 7ReazC3uDRLAcpimFh2tj6XaxUHbpwfl X-Proofpoint-ORIG-GUID: 7ReazC3uDRLAcpimFh2tj6XaxUHbpwfl 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] 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 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 --- 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, -- 2.8.4