From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konstantin Ananyev Subject: [PATCH v4 0/9] Few small improvements for ipsec library Date: Fri, 29 Mar 2019 10:27:17 +0000 Message-ID: <20190329102726.27716-1-konstantin.ananyev@intel.com> References: <20190326154320.29913-1-konstantin.ananyev@intel.com> Cc: akhil.goyal@nxp.com, olivier.matz@6wind.com, Konstantin Ananyev To: dev@dpdk.org Return-path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 0E4A32C28 for ; Fri, 29 Mar 2019 11:27:40 +0100 (CET) In-Reply-To: <20190326154320.29913-1-konstantin.ananyev@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 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 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 | 79 +- 11 files changed, 1365 insertions(+), 1055 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