Message ID | 1530712550-18099-2-git-send-email-anoob.joseph@caviumnetworks.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Pablo de Lara Guarch |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C7C051BF31; Wed, 4 Jul 2018 15:56:28 +0200 (CEST) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0080.outbound.protection.outlook.com [104.47.33.80]) by dpdk.org (Postfix) with ESMTP id BD7BE1BE9C for <dev@dpdk.org>; Wed, 4 Jul 2018 15:56:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o9yCA+yGXgmN1vPpp/ymokItSAVQ37d6jZ+lNN03Scw=; b=GSAnNj9GFkEIFl8uqP35tMquBNfv80QLG/tTaRekzSGy4Hs/GHbiSNfnwzUhrd9DaZq+mxGM191OP8V3TE1lJZhVDdf0sK3zsVCAvdWZjL+4sAiWqbC80c8ovnP09r+gkvScwokGLnRR6mTz2Ewtn8HSw74TJ17p7JJ6FMTW/bg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.caveonetworks.com (115.113.156.2) by BN7PR07MB4897.namprd07.prod.outlook.com (2603:10b6:406:ef::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.26; Wed, 4 Jul 2018 13:56:21 +0000 From: Anoob Joseph <anoob.joseph@caviumnetworks.com> To: Declan Doherty <declan.doherty@intel.com>, Pablo de Lara <pablo.de.lara.guarch@intel.com> Cc: Anoob Joseph <anoob.joseph@caviumnetworks.com>, Akhil Goyal <akhil.goyal@nxp.com>, Ankur Dwivedi <ankur.dwivedi@caviumnetworks.com>, Jerin Jacob <jerin.jacob@caviumnetworks.com>, Narayana Prasad <narayanaprasad.athreya@caviumnetworks.com>, dev@dpdk.org Date: Wed, 4 Jul 2018 19:25:48 +0530 Message-Id: <1530712550-18099-2-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530712550-18099-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1529389574-6643-1-git-send-email-anoob.joseph@caviumnetworks.com> <1530712550-18099-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BM1PR0101CA0041.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::27) To BN7PR07MB4897.namprd07.prod.outlook.com (2603:10b6:406:ef::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7c884b48-3239-4b7f-04df-08d5e1b5ee03 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:BN7PR07MB4897; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4897; 3:rlYhoT19MYFbMG3BiGZhw3JWkurf7W2xuuvFr1nNcoixxKS4zOcIZ2mlODsvbdtTbjtVBZFNZMH/ZesDPmz/MboJJrcnarRUXDclp4KI+bw5f/JP128HdT8PPI9hsZ4BRHNe2oRPmdQoiO2+EgfMXcdsFM2ut6+kyJ8HpJ251/x6iuN5ymdN92bryo4l0NCQvncbTtjEk5+N0ZDt36whabYDGm1kIRzEfHZolljkHtQdYaTnGyV6sLS//jCE5WuD; 25:rXw/pGDazn2fzaICsaC+ugxbuGwDhYjLQTvxYaSvLtro89/EaW15jrz2J0iSGGIZJEZ7Un4Z+roFVJwasqO/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T8sVS2nMJbM10Yp0ecqXT/JTme60hu6ON2aIVxTwRIETixNUtnYvbveJ4h5Tm5w0HtqIYkdbmDY2usOo6jTSb+TkLEHM3qYKjUoIkfLkRO66MWXzc=; 4:1v6ssCb6YUcI5RRwnFd6gWrEFimW+roJgC0O3Yu30fmX2D1koZ68wQSMoJe61vfEmKtcKIjC9tM3/KBN8m04SIvTXXUn0ceba08aS+F0oBKmTESxu5ouUUXpFtRJfLbxmWeZuDhY5SkCgu54cuCuoisfEdeUeq+aQhoxHNOg0Tpa4ynWaETjLk9MJSgcoByGO1lEhCAoo8lcPvK9GlLh1lJLQ0nbaXIMwALzb3OoZ5Nz1UYwSEjF14tAAAbP3kj4wq8kNCtbSnvp5JJIzufqXNMmYLAnDmKdtT5cHLZOY8oFK7vYPqp3EdFw45kxdN9S X-Microsoft-Antispam-PRVS: <BN7PR07MB4897F82E79EAB04C8AFDB321F8410@BN7PR07MB4897.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:BN7PR07MB4897; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4897; X-Forefront-PRVS: 0723A02764 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(346002)(396003)(39850400004)(366004)(136003)(199004)(189003)(316002)(6512007)(11346002)(110136005)(16526019)(54906003)(478600001)(6116002)(2616005)(4326008)(956004)(53936002)(72206003)(186003)(3846002)(486006)(47776003)(25786009)(446003)(26005)(66066001)(16586007)(105586002)(44832011)(476003)(106356001)(2906002)(50226002)(55236004)(42882007)(8936002)(52116002)(51416003)(6486002)(575784001)(76176011)(97736004)(48376002)(50466002)(68736007)(5660300001)(7736002)(386003)(8676002)(6666003)(81156014)(81166006)(6506007)(36756003)(14444005)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4897; H:ajoseph83.caveonetworks.com.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN7PR07MB4897; 23:6EDPnyJITgxt6WO2nQN+q77gwNrlN9WkHbMIqUvxj?= b0+heG8o2Tzd9SIvfomAyMhqxpVumaWL/qwikeqFGI/160gfVQF3+8PsbdRjPHPx7j0X5g2YdS//rcY9rfRBqaRl6gxY4AXi5VbLHv/2cmtCmxwWltL2ttwPSrF451/0jAJOvDBT82WTBKAniEzZ0uYTv1UPehBRuzc7rY0RdF9g1tSBiwN8obTvl9ZDGMAYZe7qJSTxUQwsvmbPmcyJUb3phhHBBZDPC//pGPdg4fIH55tWVINN102sEJ0ABR4oKwDF6pGGxB9haPIkKAzkoFFHmXDWcAohXfDm5bajsgtbj+YMVNFvD24FqdqP2ofEzCZsBdiK86OqTtLmy1sN9xo5QQGNKxzEjJ6XfMt/5JTTPpKIVOz0LU+PER9uo3gitMAENzPuz2gXLRIBDeFDbhPDFR9P6JHNqZ2aZM2iwPnhNP3jeqA/bwjrzpUoI81nP/6si6FrZKi/jzIO5BTN5cKOC3GcByJZdM2B+2If7ogqfDl85IdLY1Eg6fXLaEBPn4wqArnkuPiDXBBFedVUMrOgXUzOGXwCCJz0qe1/ufpn8TaGCmlR7pePAGeXIWgxRBMWFpe93cpe8xbkEpBWm1w5Aq9lnZwdUoEpJik7xiF/b1QV6X2nTaeHtFjkB7O60+bnjAkOyhb+9ndN7yuP2+VYMj99UAt3mqltZGA70AAVMPlwEXThhUTGP1M9QhX8A6OxSoTjfMI6DCzf7gLjsYNyqiE/xAsCE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CIJbQnPHlEiTzKNJW2GK1yPgBuEcu13VvQCuHL6p+zmpMLv8hgRF7QpIJYvYCszlrv84+g06hkRraEHheP/tgXcvwnleWzWxaEBDQ8tkkhRK+63DRs1c8CAEbF3+gffZ2Bc/c2KH4lBVCilLPk0+bzXxilAB5ordzyrOzWn2XCeWA3nDJFx56PNznopfWqBiXzxyLt32TlWrVZ/Adt5AZjUvRgTAB2GeU8RnyP7t/sarfMso4Y6zyrOlXKwnvNgyt+AeAU8V2lRpqgvI8W7vVEGj89ZEWQJAHXKU51jCIORsQFiT7JfIDxHeNTyRxd4Ij6S3HlBUwH2W9Q4WZJM08AgeIodndVb12jVtadEA==; 5:ZEE5DfJwk8/wMA266CU1jouEgYhW07nkg9hdmxEYeGaJKBvJV8dCHtLMoTqrvEC3lxV6gRwe/1EIqS8RiIArIZ0arSVNHfEEA1P8mvEL5wmu7N4Co+hywKWXh2T3WDeGHlqNi87yaykpbOcaGQJvZo78vZJmEQPGG4dbGcWb22s=; 24:L2qrI1p8eqr5c3rjHTTTM3aqNQyH4/M9omBryIuhptCSOXgvPzU4Gtxtf3+rP/w9HjRE8kMc59u6NM8mKzFHVm5i/9PEUXgfqxrew6Md7ow= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4897; 7:EvCKQ2g5MFanCwE6N4MqcyfZ7jS8afB+Hbr90vx2YSeJ/sPSPdFQVXYBddcnO3yBP/OlDzl+9RjKlWO55lYshovLOi82Wm7ZwWK431Dj/pvHIbGlevgVa1rfPryuOQVrH1tgCde8giYK7SrVJfJHYaO4KBzQosUl2nHpMZ5hOs+uTz0QAnttm4MQ7mtVESvArQOJ+QDueFLREctoBy/D7Yk4t/hCpNmPuBV0gyJIufTczF5/24GMZE7KAPmrF/v5 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2018 13:56:21.9903 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c884b48-3239-4b7f-04df-08d5e1b5ee03 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4897 Subject: [dpdk-dev] [PATCH v1 1/3] cryptodev: add min headroom and tailroom requirement X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
add head/tailroom requirement for crypto PMDs
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
ci/Intel-compilation | success | Compilation OK |
Commit Message
Anoob Joseph
July 4, 2018, 1:55 p.m. UTC
Enabling crypto devs to specify the minimum headroom and tailroom it
expects in the mbuf. For net PMDs, standard headroom has to be honoured
by applications, which is not strictly followed for crypto devs. This
prevents crypto devs from using free space in mbuf (available as
head/tailroom) for internal requirements in crypto operations. Addition
of head/tailroom requirement will help PMDs to communicate such
requirements to the application.
The availability and use of head/tailroom is an optimization if the
hardware supports use of head/tailroom for crypto-op info. For devices
that do not support using the head/tailroom, they can continue to operate
without any performance-drop.
Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
---
v1:
* Removed deprecation notice
* Updated release note
* Renamed new fields to have 'mbuf' in the name
* Changed the type of new fields to uint16_t (instead of uint32_t)
doc/guides/rel_notes/release_18_08.rst | 6 ++++++
lib/librte_cryptodev/rte_cryptodev.h | 6 ++++++
2 files changed, 12 insertions(+)
Comments
Hi Anoob, > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Anoob Joseph > Sent: Wednesday, July 4, 2018 2:56 PM > To: Doherty, Declan <declan.doherty@intel.com>; De Lara Guarch, Pablo > <pablo.de.lara.guarch@intel.com> > Cc: Anoob Joseph <anoob.joseph@caviumnetworks.com>; Akhil Goyal > <akhil.goyal@nxp.com>; Ankur Dwivedi > <ankur.dwivedi@caviumnetworks.com>; Jerin Jacob > <jerin.jacob@caviumnetworks.com>; Narayana Prasad > <narayanaprasad.athreya@caviumnetworks.com>; dev@dpdk.org > Subject: [dpdk-dev] [PATCH v1 1/3] cryptodev: add min headroom and tailroom > requirement > > Enabling crypto devs to specify the minimum headroom and tailroom it expects > in the mbuf. For net PMDs, standard headroom has to be honoured by > applications, which is not strictly followed for crypto devs. This prevents crypto > devs from using free space in mbuf (available as > head/tailroom) for internal requirements in crypto operations. Addition of > head/tailroom requirement will help PMDs to communicate such requirements > to the application. > > The availability and use of head/tailroom is an optimization if the hardware > supports use of head/tailroom for crypto-op info. For devices that do not > support using the head/tailroom, they can continue to operate without any > performance-drop. > > Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com> > --- > v1: > * Removed deprecation notice > * Updated release note > * Renamed new fields to have 'mbuf' in the name > * Changed the type of new fields to uint16_t (instead of uint32_t) > > doc/guides/rel_notes/release_18_08.rst | 6 ++++++ > lib/librte_cryptodev/rte_cryptodev.h | 6 ++++++ > 2 files changed, 12 insertions(+) > > diff --git a/doc/guides/rel_notes/release_18_08.rst > b/doc/guides/rel_notes/release_18_08.rst > index 5bc23c5..fae0d26 100644 > --- a/doc/guides/rel_notes/release_18_08.rst > +++ b/doc/guides/rel_notes/release_18_08.rst > @@ -70,6 +70,12 @@ ABI Changes > Also, make sure to start the actual text at the margin. > ========================================================= > > +* cryptodev: Additional fields in rte_cryptodev_info. > + > + Two new fields of type ``uint16_t`` added in ``rte_cryptodev_info`` > + structure: ``min_mbuf_headroom_req`` and ``min_mbuf_tailroom_req``. > + These parameters specify the recommended headroom and tailroom for > + mbufs to be processed by the PMD. I think the "cryptodev scheduler PMD" needs changes to take these new parameters into consideration. Scheduler_pmd_info_get should return the maximum number of these two fields on all the slaves (like what's done with max number of sessions). We need to close the subtree today, with all API changes done. Will you have time to make this change today? Thanks! Pablo
Hi Pablo, I'll look into this and will give you an updated patch. Thanks, Anoob On 10-07-2018 15:56, De Lara Guarch, Pablo wrote: > External Email > > Hi Anoob, > >> -----Original Message----- >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Anoob Joseph >> Sent: Wednesday, July 4, 2018 2:56 PM >> To: Doherty, Declan <declan.doherty@intel.com>; De Lara Guarch, Pablo >> <pablo.de.lara.guarch@intel.com> >> Cc: Anoob Joseph <anoob.joseph@caviumnetworks.com>; Akhil Goyal >> <akhil.goyal@nxp.com>; Ankur Dwivedi >> <ankur.dwivedi@caviumnetworks.com>; Jerin Jacob >> <jerin.jacob@caviumnetworks.com>; Narayana Prasad >> <narayanaprasad.athreya@caviumnetworks.com>; dev@dpdk.org >> Subject: [dpdk-dev] [PATCH v1 1/3] cryptodev: add min headroom and tailroom >> requirement >> >> Enabling crypto devs to specify the minimum headroom and tailroom it expects >> in the mbuf. For net PMDs, standard headroom has to be honoured by >> applications, which is not strictly followed for crypto devs. This prevents crypto >> devs from using free space in mbuf (available as >> head/tailroom) for internal requirements in crypto operations. Addition of >> head/tailroom requirement will help PMDs to communicate such requirements >> to the application. >> >> The availability and use of head/tailroom is an optimization if the hardware >> supports use of head/tailroom for crypto-op info. For devices that do not >> support using the head/tailroom, they can continue to operate without any >> performance-drop. >> >> Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com> >> --- >> v1: >> * Removed deprecation notice >> * Updated release note >> * Renamed new fields to have 'mbuf' in the name >> * Changed the type of new fields to uint16_t (instead of uint32_t) >> >> doc/guides/rel_notes/release_18_08.rst | 6 ++++++ >> lib/librte_cryptodev/rte_cryptodev.h | 6 ++++++ >> 2 files changed, 12 insertions(+) >> >> diff --git a/doc/guides/rel_notes/release_18_08.rst >> b/doc/guides/rel_notes/release_18_08.rst >> index 5bc23c5..fae0d26 100644 >> --- a/doc/guides/rel_notes/release_18_08.rst >> +++ b/doc/guides/rel_notes/release_18_08.rst >> @@ -70,6 +70,12 @@ ABI Changes >> Also, make sure to start the actual text at the margin. >> ========================================================= >> >> +* cryptodev: Additional fields in rte_cryptodev_info. >> + >> + Two new fields of type ``uint16_t`` added in ``rte_cryptodev_info`` >> + structure: ``min_mbuf_headroom_req`` and ``min_mbuf_tailroom_req``. >> + These parameters specify the recommended headroom and tailroom for >> + mbufs to be processed by the PMD. > I think the "cryptodev scheduler PMD" needs changes to take these new parameters into consideration. > Scheduler_pmd_info_get should return the maximum number of these two fields on all the slaves > (like what's done with max number of sessions). > > We need to close the subtree today, with all API changes done. Will you have time to make this change today? > > Thanks! > Pablo >
diff --git a/doc/guides/rel_notes/release_18_08.rst b/doc/guides/rel_notes/release_18_08.rst index 5bc23c5..fae0d26 100644 --- a/doc/guides/rel_notes/release_18_08.rst +++ b/doc/guides/rel_notes/release_18_08.rst @@ -70,6 +70,12 @@ ABI Changes Also, make sure to start the actual text at the margin. ========================================================= +* cryptodev: Additional fields in rte_cryptodev_info. + + Two new fields of type ``uint16_t`` added in ``rte_cryptodev_info`` + structure: ``min_mbuf_headroom_req`` and ``min_mbuf_tailroom_req``. These + parameters specify the recommended headroom and tailroom for mbufs to be + processed by the PMD. Removed Items ------------- diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 92ce6d4..4e5b5b4 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -382,6 +382,12 @@ struct rte_cryptodev_info { unsigned max_nb_queue_pairs; /**< Maximum number of queues pairs supported by device. */ + uint16_t min_mbuf_headroom_req; + /**< Minimum mbuf headroom required by device */ + + uint16_t min_mbuf_tailroom_req; + /**< Minimum mbuf tailroom required by device */ + struct { unsigned max_nb_sessions; /**< Maximum number of sessions supported by device. */