From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id F14C137B0 for ; Thu, 4 Apr 2019 15:28:21 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Apr 2019 06:28:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,308,1549958400"; d="scan'208";a="161351699" Received: from sivswdev08.ir.intel.com (HELO localhost.localdomain) ([10.237.217.47]) by fmsmga001.fm.intel.com with ESMTP; 04 Apr 2019 06:28:20 -0700 From: Bernard Iremonger To: dev@dpdk.org, konstantin.ananyev@intel.com, akhil.goyal@nxp.com Cc: Bernard Iremonger Date: Thu, 4 Apr 2019 14:28:13 +0100 Message-Id: <1554384495-7936-1-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1551970666-23557-1-git-send-email-bernard.iremonger@intel.com> References: <1551970666-23557-1-git-send-email-bernard.iremonger@intel.com> Subject: [dpdk-dev] [PATCH v3 0/2] examples/ipsec-secgw: fix 1st pkt dropped X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Apr 2019 13:28:22 -0000 This patchset fixes the issue of the first inbound packet being dropped for inline crypto. Changes in v3: -------------- The previous refactoring of the create_session() function has been dropped. The create_session() function is now called from sa_init() at startup. The following functions have been added: crypto_devid_fill() in ipsec-secgw.c check_cryptodev_capability() in ipsec.c check_cryptodev_aead_capability() in ipsec.c create_sec_session() and create_crypto_session() in ipsec.c The create_session() function has been refactored to call the create_sec_session() and create_crypto_session() functions. Changes in v2: -------------- The first three patches of the v1 have been squashed. The commit message for the squashed patch has been updated. Patches 4,5 and 6 of the v1 have been dropped from this patchset. A patch to fix the test scripts has been added. Bernard Iremonger (2): examples/ipsec-secgw: fix 1st packet dropped for inline crypto examples/ipsec-secgw/test: fix inline test scripts examples/ipsec-secgw/ipsec-secgw.c | 271 +++++++------ examples/ipsec-secgw/ipsec.c | 569 ++++++++++++++------------- examples/ipsec-secgw/ipsec.h | 10 +- examples/ipsec-secgw/ipsec_process.c | 38 +- examples/ipsec-secgw/sa.c | 42 +- examples/ipsec-secgw/test/trs_aesgcm_defs.sh | 10 - examples/ipsec-secgw/test/tun_aesgcm_defs.sh | 10 - 7 files changed, 495 insertions(+), 455 deletions(-) -- 2.7.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id D9891A0679 for ; Thu, 4 Apr 2019 15:28:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BC75C5B2E; Thu, 4 Apr 2019 15:28:23 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id F14C137B0 for ; Thu, 4 Apr 2019 15:28:21 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Apr 2019 06:28:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,308,1549958400"; d="scan'208";a="161351699" Received: from sivswdev08.ir.intel.com (HELO localhost.localdomain) ([10.237.217.47]) by fmsmga001.fm.intel.com with ESMTP; 04 Apr 2019 06:28:20 -0700 From: Bernard Iremonger To: dev@dpdk.org, konstantin.ananyev@intel.com, akhil.goyal@nxp.com Cc: Bernard Iremonger Date: Thu, 4 Apr 2019 14:28:13 +0100 Message-Id: <1554384495-7936-1-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1551970666-23557-1-git-send-email-bernard.iremonger@intel.com> References: <1551970666-23557-1-git-send-email-bernard.iremonger@intel.com> Subject: [dpdk-dev] [PATCH v3 0/2] examples/ipsec-secgw: fix 1st pkt dropped X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190404132813.wGMiMOwB1sEqxTkCg085SPFipav1IBUfI5P5Bsko6PM@z> This patchset fixes the issue of the first inbound packet being dropped for inline crypto. Changes in v3: -------------- The previous refactoring of the create_session() function has been dropped. The create_session() function is now called from sa_init() at startup. The following functions have been added: crypto_devid_fill() in ipsec-secgw.c check_cryptodev_capability() in ipsec.c check_cryptodev_aead_capability() in ipsec.c create_sec_session() and create_crypto_session() in ipsec.c The create_session() function has been refactored to call the create_sec_session() and create_crypto_session() functions. Changes in v2: -------------- The first three patches of the v1 have been squashed. The commit message for the squashed patch has been updated. Patches 4,5 and 6 of the v1 have been dropped from this patchset. A patch to fix the test scripts has been added. Bernard Iremonger (2): examples/ipsec-secgw: fix 1st packet dropped for inline crypto examples/ipsec-secgw/test: fix inline test scripts examples/ipsec-secgw/ipsec-secgw.c | 271 +++++++------ examples/ipsec-secgw/ipsec.c | 569 ++++++++++++++------------- examples/ipsec-secgw/ipsec.h | 10 +- examples/ipsec-secgw/ipsec_process.c | 38 +- examples/ipsec-secgw/sa.c | 42 +- examples/ipsec-secgw/test/trs_aesgcm_defs.sh | 10 - examples/ipsec-secgw/test/tun_aesgcm_defs.sh | 10 - 7 files changed, 495 insertions(+), 455 deletions(-) -- 2.7.4