From patchwork Thu Jul 15 06:09:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 95873 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 D7B85A0C4F; Thu, 15 Jul 2021 08:10:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4CE1A40143; Thu, 15 Jul 2021 08:10:05 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 9F30B40140 for ; Thu, 15 Jul 2021 08:10:03 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16F6609U011778; Wed, 14 Jul 2021 23:10:02 -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=SW55+mkz/WGI0qXJzr/855Crq/JJ/AE9d+oo9/nxQNw=; b=joKqufRYgAcWydLSa9IXXUAoUuVKYIwf8+Mu0KZe/a4m2EQUsLkAJ1nh9RaE9+LOv5M0 QGqcez5mU7PRRcNuymFdcBMBubRUgz2RwtHsgv7SUDJWCh8H2cPIHkTI2waH1ND34d+N F89Wq8hlOnx1dorNdOGiAnkgF7MjIT6kSxn3vMofXBIyWV16P8nYFud+XMDx0EchnJfZ lzmJrGpQeemMTFmfI3XpGuQ7GTQXBr0R1Y1jyXgE8Cf+WunhPMyrXfnBvkOuo5ZhWAv6 4v8Yszv4RdJI8/SYjK13uE8jHYs/RYHRw0oGkL1rQVrcjfZAxMYvQPX21XCQVQ5A1VWS SA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 39t95sh5q5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 14 Jul 2021 23:10:02 -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, 14 Jul 2021 23:09:59 -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, 14 Jul 2021 23:09:59 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 084C53F7067; Wed, 14 Jul 2021 23:09:55 -0700 (PDT) From: Nithin Dabilpuram To: CC: , , , , , , , , , , , , Nithin Dabilpuram Date: Thu, 15 Jul 2021 11:39:44 +0530 Message-ID: <20210715060947.20186-1-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20210624102848.3878788-1-gakhil@marvell.com> References: <20210624102848.3878788-1-gakhil@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: 0mybjYDFmfbZWOWDmoiY7Dsl1KaEnBLO X-Proofpoint-ORIG-GUID: 0mybjYDFmfbZWOWDmoiY7Dsl1KaEnBLO X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-15_02:2021-07-14, 2021-07-15 signatures=0 Subject: [dpdk-dev] [PATCH v2 0/3] security: Improve inline fast path routines 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" Improvements to Inline inbound and outbound processing fast path routines rte_security_set_pkt_metadata() and rte_security_get_userdata() to make them inline functions and also provide mechanism for drivers to support fast userdata and metadata access instead of driver specific per-pkt function callbacks. This series updates requirements of mbuf fields to be updated for outbound inline processing. Nithin Dabilpuram (3): security: enforce semantics for Tx inline processing security: add option for faster udata or mdata access examples/ipsec-secgw: update L2 length for Tx v2: - Remove restrictions on rte_security_set_pkt_metadata() w.r.t pkt content - Add inline functions for rte_security_set_pkt_metadata() and rte_security_get_userdata() and also faster mdata, udata access via patch 2/3 doc/guides/nics/features.rst | 2 ++ examples/ipsec-secgw/ipsec-secgw.c | 2 ++ examples/ipsec-secgw/ipsec_worker.c | 42 ++++++++++++++++++++----------- lib/mbuf/rte_mbuf_core.h | 2 ++ lib/security/rte_security.c | 8 +++--- lib/security/rte_security.h | 49 ++++++++++++++++++++++++++++++++++--- lib/security/version.map | 2 ++ 7 files changed, 85 insertions(+), 22 deletions(-)