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 A9E2DA0C55; Mon, 6 Sep 2021 20:59:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9B222410F0; Mon, 6 Sep 2021 20:59:23 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 75242410EF for ; Mon, 6 Sep 2021 20:59:22 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 186If9sL003934; Mon, 6 Sep 2021 11:59:20 -0700 Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2174.outbound.protection.outlook.com [104.47.56.174]) by mx0a-0016f401.pphosted.com with ESMTP id 3awrfur14g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Sep 2021 11:59:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l3xjmQewXpgPvR0E8db8aWKufa3jKF0brig0g7uIHe4kzc8TJhRhEdgVA8R/TfOhcTfEgLiUgQ8pGvSbPwRFOiVGiwY6zxe8DJlgn0WOs2OM6CdYmoMfXT3WSlZC7yEIj46hD8GIymBmYIL3PYAjeFqbFvBjj1TE4hGNXV4UToOR2v7JyBwat8yJcwRZ93EhWgl2JRZAx9T0J6s00WHFX4cZ2TO7eW1FpozqgNsqDx2SPySBJlHWSunPAX5TZWTF8n40Ul8Pxytl8rRcA3LkVmK07F7XHsbdJrVCLdFINLuz99iyoKPd+zbrR20EZ8wxd4j04c7fTs20f6GERJaT9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VNBHHhDkqQQzyPYwBBsY/Yk8lkpV3uWg6mevhy6tpfc=; b=cCFLRDEfwuC7QQ2dhGNfgkjGDwYKv+4RD9ldb5jUMZQoZzz767UBLNGqN1J8uAjd3JDywcKUxRn56ZTecDBohlcdTcyCdgbmi4pZ6M0380Kzqpl9vWTYZ88/iAe8HMyBpHD7fwqzGVQYolMrNfwAF1rCbbYpO1SRdW2PrZhh2P4emP6sB8Ij+I617nwoXnJS/OcjdUAG5cRJkG3n06u9P+HxP7g0TPQbOI5m/V1MT8API48Kezf9IlvAKT8njcJCnhD4ZFpmKekZ+Z8o1C5gqBzEHprCDzWQ1FHFZHQ1S021T9VT+a1zsZsd1oRU3fGHrQyyY4TZ2FA/vJWMJookug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VNBHHhDkqQQzyPYwBBsY/Yk8lkpV3uWg6mevhy6tpfc=; b=kUFj0BlZiCIRodx1xQ5GtuO9NP0reszpYuH4L6x1KyzWP/Ky8KHjhUkVDtiXmoEGCOrjk8RZ6gN5PWpFhEj+a1sfCXnxXCsIJjPDNrMlk2er8O+4Da1k95cTyiYR0uP1Krp7hQ2K6hcLq6crBQi5wHoiM+mRIkTkb1VZP5kg3aA= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO6PR18MB4465.namprd18.prod.outlook.com (2603:10b6:303:13b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.22; Mon, 6 Sep 2021 18:59:18 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::411f:5b87:321e:de29]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::411f:5b87:321e:de29%3]) with mapi id 15.20.4478.025; Mon, 6 Sep 2021 18:59:18 +0000 From: Akhil Goyal To: Nithin Kumar Dabilpuram , "dev@dpdk.org" CC: Jerin Jacob Kollanukkaran , "hemant.agrawal@nxp.com" , "thomas@monjalon.net" , "g.singh@nxp.com" , "ferruh.yigit@intel.com" , "roy.fan.zhang@intel.com" , "olivier.matz@6wind.com" , "declan.doherty@intel.com" , "radu.nicolau@intel.com" , "jiawenwu@trustnetic.com" , "konstantin.ananyev@intel.com" , Nithin Kumar Dabilpuram Thread-Topic: [PATCH v4 2/4] security: add option for faster udata or mdata access Thread-Index: AQHXj3Y6X41Ewqj280my9WjkPtqvDKuXg4aw Date: Mon, 6 Sep 2021 18:59:18 +0000 Message-ID: References: <20210624102848.3878788-1-gakhil@marvell.com> <20210812123257.19595-1-ndabilpuram@marvell.com> <20210812123257.19595-3-ndabilpuram@marvell.com> In-Reply-To: <20210812123257.19595-3-ndabilpuram@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0e208557-8d8d-47d2-2d2c-08d971686e05 x-ms-traffictypediagnostic: CO6PR18MB4465: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qN0I5TAsKFk+F6IGdKai11jwqhYMkdb0oNeZWMZEk+QTh9bcoiXFpjSpc9IVhFb30/X93FDBEyIXX5kksf3Mm38Sj6/GepsYAO0QDZCNLGPqNAlx1g1GXobFqgMU3VBW6JqtVKuY3Xt2O7x8Yy7QF2fjMVXqjNr2UIyVJ//6FB+LAkvORxiUn4njYWvaH5V7/PI03YFLhSMW40G0uRDiVKWUjgWWrU2Vy5AgsJ7LrYy1RENa/tNBwPyHaHKa2x8ppWrPKTFE72jVXz1CaXCwVC7EOSFxjP3/8lyhDBwPQA4dX9AFoyTE0baPowwJAMennGrblUnpL3WC48vZYg7NWVb63d7J+moiIwWz1iZZppMhoZwPXrXCEgsPBTt9d0qqs77k1hEq6zpCO39tReN0aiBdnadbEt8+iBMxVICvAFqGslEwEvDKCd3o1GNC4mfRVyk3A5TR7SwI4tmCENBY1stT4ZM1bDcdU/wysGTSIspFd2oZ+jiTxV+HKl4QxkTMmEDHkmmBDsKBq9lJwJZC1XoiSwqBfEgms3TUCPUQlsQwqFgvtj8oLuOnyeWzYlXZ9euqylhBeCeC8EOAa59o83btFRW4Nq+ziywrjpLF3A16oKX0Kor9bnlJdUHW5UqGDfW8/6g8NUVitEaWqoo9hqYAn8Nr/tEm9iWXLSOfgc5RS841f8kth9tx1KSYjkBHORG39p0LWLAKUg5jn6nTIA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(9686003)(64756008)(66446008)(33656002)(38100700002)(4326008)(186003)(66946007)(66556008)(508600001)(38070700005)(55016002)(26005)(5660300002)(107886003)(316002)(52536014)(66476007)(8676002)(4744005)(83380400001)(86362001)(7696005)(15650500001)(6506007)(110136005)(55236004)(54906003)(76116006)(71200400001)(122000001)(2906002)(8936002)(7416002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?3Bv9BknZosFxNU2Asdd43uNUGv2bI4A0fqGo9fHe/sjurQGm/dctWtdZnjyY?= =?us-ascii?Q?7r5Xt1f8gMNL5lFKfZuod75JDhI07uAqiaFTmjnaHJaVcdCc14LhbA98Mhid?= =?us-ascii?Q?MHQo7qhRMNDDwdjrKQluC0Ns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q?2FjZdLd4IiVXsFHad4k3dI9HSumYabK77FlUF7dh5XB2N3MwliQVGIwtRE08?= =?us-ascii?Q?NTDjoQ4IMmhMy3EFHOGJkYyDhMeIDkA81IdbNHUOlHc5SUNqsPo16TV+Ko33?= =?us-ascii?Q?QLZJZ65pD2mau/RItDxAAYCu7O6eb5sxsAKu+hoOy7ICuMffduO5Q33gjSfB?= =?us-ascii?Q?Vx3Bl/SE14KZviPahTuj4Pcsz+bzh5hciu+/5K+eWlPX7OCK3ovV4DlSAUrf?= =?us-ascii?Q?gOe0sOzOVsm8F4I/qR6oEx9/U6THeNWcNJLdLHWqGEaJVdQqj8laNXeq2W4q?= =?us-ascii?Q?9OeOHdcA8vu3U0wJDVYtuAmt?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e208557-8d8d-47d2-2d2c-08d971686e05 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Sep 2021 18:59:18.4353 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: v4kkeABpb2t/B+jaelZg0wnAYuO8to6QAslYOKDP5XUrVPk4H58KkuxEZ/sSh6Cbs6ExJWAzqPhzE8nMda8UBg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR18MB4465 X-Proofpoint-GUID: B-BemWT7X62oddry_DV21iVnDQ7I37uO X-Proofpoint-ORIG-GUID: B-BemWT7X62oddry_DV21iVnDQ7I37uO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-06_08,2021-09-03_01,2020-04-07_01 Subject: Re: [dpdk-dev] [PATCH v4 2/4] security: add option for faster udata or mdata access 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" > Currently rte_security_set_pkt_metadata() and rte_security_get_userdata() > methods to set pkt metadata on Inline outbound and get userdata > after Inline inbound processing is always driver specific callbacks. >=20 > For drivers that do not have much to do in the callbacks but just > to update metadata in rte_security dynamic field and get userdata > from rte_security dynamic field, having to just to PMD specific > callback is costly per packet operation. This patch provides > a mechanism to do the same in inline function and avoid function > pointer jump if a driver supports the same. >=20 > Signed-off-by: Nithin Dabilpuram > --- Acked-by: Akhil Goyal