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 F11FBA0C4E; Thu, 12 Aug 2021 14:33:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E9094014D; Thu, 12 Aug 2021 14:33:09 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id C6CA940042 for ; Thu, 12 Aug 2021 14:33:08 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17CCVVZs028549; Thu, 12 Aug 2021 05:33:06 -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=eB+2ddygG41p7cVloqp6NpRiaqjc3rWoH8p2dtCMSNo=; b=CkCZwlVraj1MSEufIx/vFe50Li7B7ilITFDz2UWg0cqkVze+Z5Q4tse7hYh60comf14d xUnGIQ3O7DUGL1JeDOOgJBOeybc0hjBp6GYdcAu9Q5vWfJRDDWZMtUkViaMeIgqISkDS be+z/y+RVkIJDtlb36umWkJxkG6KRKt1EfwDkNp3TxZ35yeLctyRd5z7mZzjbV4cl78z cZyXbFLGKKslc/kuJEDIaiTtybPUeU8EHBmubEuWiLUHikO+C48NUjy/VUG8sRKOWjdf QZCrXPcYPcKT0sIPnkZKwXiLczNCRwMmW0TLHIiD5lqTuYJ6Z3pj3qWZarWa/SYsZvMG Bw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 3acrnp1yk7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 12 Aug 2021 05:33:06 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 12 Aug 2021 05:33:05 -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; Thu, 12 Aug 2021 05:33:04 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 1FBF53F7040; Thu, 12 Aug 2021 05:33:00 -0700 (PDT) From: Nithin Dabilpuram To: CC: , , , , , , , , , , , , Nithin Dabilpuram Date: Thu, 12 Aug 2021 18:02:53 +0530 Message-ID: <20210812123257.19595-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 Content-Type: text/plain X-Proofpoint-GUID: Z1u5nMs---IiUQX3Xwto0nGF6oSu0Qvy X-Proofpoint-ORIG-GUID: Z1u5nMs---IiUQX3Xwto0nGF6oSu0Qvy X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-12_04:2021-08-12, 2021-08-12 signatures=0 Subject: [dpdk-dev] [PATCH v4 0/4] 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 (4): security: enforce semantics for Tx inline processing security: add option for faster udata or mdata access examples/ipsec-secgw: update event mode inline path doc: remove deprecation notice for security fast path change v4: - Removed entry from deprecation notice. - Fixed issue with rte_security_set_pkt_metadata() to pass instance instead of device ptr to non-inline C function. v3: - Rebased and fixed compilation issue with rte_security_get_userdata() on 32-bit platform - Updated l2_len on patch 3/3 only for outbound. 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 ++ doc/guides/rel_notes/deprecation.rst | 4 --- examples/ipsec-secgw/ipsec-secgw.c | 2 ++ examples/ipsec-secgw/ipsec_worker.c | 41 +++++++++++++++++++----------- lib/mbuf/rte_mbuf_core.h | 2 ++ lib/security/rte_security.c | 8 +++--- lib/security/rte_security.h | 48 +++++++++++++++++++++++++++++++++--- lib/security/version.map | 2 ++ 8 files changed, 83 insertions(+), 26 deletions(-) -- 2.8.4