From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 17AAF2B99 for ; Tue, 2 Apr 2019 10:34:56 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Apr 2019 01:34:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,300,1549958400"; d="scan'208";a="332938651" Received: from sivswdev08.ir.intel.com ([10.237.217.47]) by fmsmga006.fm.intel.com with ESMTP; 02 Apr 2019 01:34:54 -0700 From: Konstantin Ananyev To: dev@dpdk.org Cc: akhil.goyal@nxp.com, olivier.matz@6wind.com, Konstantin Ananyev Date: Tue, 2 Apr 2019 09:34:35 +0100 Message-Id: <20190402083444.24755-1-konstantin.ananyev@intel.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190401125656.7636-1-konstantin.ananyev@intel.com> References: <20190401125656.7636-1-konstantin.ananyev@intel.com> Subject: [dpdk-dev] [PATCH v6 0/9] Few small improvements for ipsec library 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: Tue, 02 Apr 2019 08:34:57 -0000 v6 -> v5 Fix endianness issue spotted by Olivier Added UT test-case for rte_mbuf_tx_offload() v5 -> v4 Few cosmetic changes in mbuf tx_offload patch requested by Olivier v4 -> v3 Address Akhil comments: - function/paramers names - add ipsec lib into shared libraries list v3 -> v2 Address comments: - make rte_mbuf_tx_offload() always inline - rename OL[2,3]_LEN to OUTL[2,3]_LEN for better naming Add 'unused' parameter into rte_mbuf_tx_offload() for consistency Some code de-duplication Rebase against the latest next-crypto v1 -> v2 Add patch to improve a bit esp inbound pkt_process code The first patch in this series introduces new enum for rte_mbuf tx_offload layout and new function to set raw value for rte_mbuf tx_offload. Remaining ones are cleanups and small performance improvements (on IA ~3-6% depending on the test-case) for ipsec library. Konstantin Ananyev (9): mbuf: new function to generate raw Tx offload value ipsec: add Tx offload template into SA ipsec: change the order in filling crypto op ipsec: change the way unprocessed mbufs are accounted ipsec: move inbound and outbound code into different files ipsec: reorder packet check for esp inbound ipsec: reorder packet process for esp inbound ipsec: de-duplicate crypto op prepare code-path doc: add ipsec lib into shared libraries list app/test/test_mbuf.c | 101 ++- doc/guides/rel_notes/release_19_05.rst | 1 + lib/librte_ipsec/Makefile | 2 + lib/librte_ipsec/crypto.h | 17 + lib/librte_ipsec/esp_inb.c | 547 ++++++++++++ lib/librte_ipsec/esp_outb.c | 580 +++++++++++++ lib/librte_ipsec/ipsec_sqn.h | 34 - lib/librte_ipsec/meson.build | 2 +- lib/librte_ipsec/misc.h | 41 + lib/librte_ipsec/sa.c | 1072 ++---------------------- lib/librte_ipsec/sa.h | 45 + lib/librte_mbuf/rte_mbuf.h | 101 ++- 12 files changed, 1487 insertions(+), 1056 deletions(-) create mode 100644 lib/librte_ipsec/esp_inb.c create mode 100644 lib/librte_ipsec/esp_outb.c create mode 100644 lib/librte_ipsec/misc.h -- 2.17.1 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 5EBBFA0679 for ; Tue, 2 Apr 2019 10:35:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4DAE9316B; Tue, 2 Apr 2019 10:34:59 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 17AAF2B99 for ; Tue, 2 Apr 2019 10:34:56 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Apr 2019 01:34:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,300,1549958400"; d="scan'208";a="332938651" Received: from sivswdev08.ir.intel.com ([10.237.217.47]) by fmsmga006.fm.intel.com with ESMTP; 02 Apr 2019 01:34:54 -0700 From: Konstantin Ananyev To: dev@dpdk.org Cc: akhil.goyal@nxp.com, olivier.matz@6wind.com, Konstantin Ananyev Date: Tue, 2 Apr 2019 09:34:35 +0100 Message-Id: <20190402083444.24755-1-konstantin.ananyev@intel.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190401125656.7636-1-konstantin.ananyev@intel.com> References: <20190401125656.7636-1-konstantin.ananyev@intel.com> Subject: [dpdk-dev] [PATCH v6 0/9] Few small improvements for ipsec library 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: <20190402083435.zmKVMEKBfxD6suY5j_JWBWo8VSsD8hVjQB5vyQvpX0s@z> v6 -> v5 Fix endianness issue spotted by Olivier Added UT test-case for rte_mbuf_tx_offload() v5 -> v4 Few cosmetic changes in mbuf tx_offload patch requested by Olivier v4 -> v3 Address Akhil comments: - function/paramers names - add ipsec lib into shared libraries list v3 -> v2 Address comments: - make rte_mbuf_tx_offload() always inline - rename OL[2,3]_LEN to OUTL[2,3]_LEN for better naming Add 'unused' parameter into rte_mbuf_tx_offload() for consistency Some code de-duplication Rebase against the latest next-crypto v1 -> v2 Add patch to improve a bit esp inbound pkt_process code The first patch in this series introduces new enum for rte_mbuf tx_offload layout and new function to set raw value for rte_mbuf tx_offload. Remaining ones are cleanups and small performance improvements (on IA ~3-6% depending on the test-case) for ipsec library. Konstantin Ananyev (9): mbuf: new function to generate raw Tx offload value ipsec: add Tx offload template into SA ipsec: change the order in filling crypto op ipsec: change the way unprocessed mbufs are accounted ipsec: move inbound and outbound code into different files ipsec: reorder packet check for esp inbound ipsec: reorder packet process for esp inbound ipsec: de-duplicate crypto op prepare code-path doc: add ipsec lib into shared libraries list app/test/test_mbuf.c | 101 ++- doc/guides/rel_notes/release_19_05.rst | 1 + lib/librte_ipsec/Makefile | 2 + lib/librte_ipsec/crypto.h | 17 + lib/librte_ipsec/esp_inb.c | 547 ++++++++++++ lib/librte_ipsec/esp_outb.c | 580 +++++++++++++ lib/librte_ipsec/ipsec_sqn.h | 34 - lib/librte_ipsec/meson.build | 2 +- lib/librte_ipsec/misc.h | 41 + lib/librte_ipsec/sa.c | 1072 ++---------------------- lib/librte_ipsec/sa.h | 45 + lib/librte_mbuf/rte_mbuf.h | 101 ++- 12 files changed, 1487 insertions(+), 1056 deletions(-) create mode 100644 lib/librte_ipsec/esp_inb.c create mode 100644 lib/librte_ipsec/esp_outb.c create mode 100644 lib/librte_ipsec/misc.h -- 2.17.1