From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0073.outbound.protection.outlook.com [104.47.2.73]) by dpdk.org (Postfix) with ESMTP id 2C67C1BB5A for ; Thu, 21 Jun 2018 16:24:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t7De27N4Gl8OgDQ+0dPsIQlGrAr0C/kvfTn496Qs9ms=; b=Cnv6/l9FVEFfUqtMmfJG5A1NavHHjViR3Seb3reOv1DimfV1C4OBCoT+r3Ms0ZJbmRiR+1BdfKDH7Ai9jc5BXopCAHRppraajaHvk3VZW9KF0dUWsD78CNW+sEdIPvVqgQ61bi5k8jdqRxADw6r0meOicGU+FA9BvqWc6H78Vvc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; Received: from [10.232.134.144] (14.142.187.166) by AM3PR04MB1378.eurprd04.prod.outlook.com (2a01:111:e400:536a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.20; Thu, 21 Jun 2018 14:24:44 +0000 To: Anoob Joseph , Declan Doherty , Pablo de Lara Cc: Ankur Dwivedi , Jerin Jacob , Narayana Prasad , dev@dpdk.org References: <1529389574-6643-1-git-send-email-anoob.joseph@caviumnetworks.com> <1529389574-6643-2-git-send-email-anoob.joseph@caviumnetworks.com> From: Akhil Goyal Message-ID: <7fa289f6-49a7-e3fe-39d6-e37aba7aa0e9@nxp.com> Date: Thu, 21 Jun 2018 19:54:31 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1529389574-6643-2-git-send-email-anoob.joseph@caviumnetworks.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0061.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::23) To AM3PR04MB1378.eurprd04.prod.outlook.com (2a01:111:e400:536a::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 76112c89-cc75-4050-ccd9-08d5d782bcd0 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM3PR04MB1378; X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB1378; 3:deKvJxSpKcI2RAAYOXuNgm3rbbHxNmeOycoVw70++CQUQJSlxpkQNPuZ8ubkPN2VVGOMGqJSr2xrQLiIVTbKmFtIQzVBzSSmcyz/phvTw59G2x36yTz3bSx19UD/4QDVSBdBMmFeUUFWfhlIIYMWkvwbHLnc24uJhC7OxmpWhSsMY/pcVC3xmZEZGRzbM7OA/a1dfFp4mGcNZNjQD/cx6Xs/AdmRJdOIaATlQ3GRK++pJ4xjjZ2DO6Ldwoz01oX7; 25:keA34Rr2m7G1T/Bpp5M2/1xGaTlKKh4fQdgEEj/ZC/5c8WiT+A2+RKag80gcbinOmnVcfMkL6Xk6N/hSHbnDh6+dcCVfg+RPc4BWAQKe9Ra5ltHWk7jzfuFdSeBeLrcczuU18zhRhGtkBvxyhBJjdosqaF8LNkEDS52GpZjxJiv+chGKRLwaZNcckPXmc8GxbtHdReSFIQyjfdWg+JSXI+XxO3AZgZZpYfuMUsxSimN4AUPsBuGrnYegCn8tZ285VqD0aCCnOynkCtp2jAYmItzztxc6CCrxNivg/JKZijRJSAL6RYOlKA419DQnKjdtejhz0JbIduJh2sW4prt5cw==; 31:Lnx8GhkaiJ5H8cSdIJwmII+Pi+3P0uly+EUnbvksaWXnDDqs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lnQwuBx7crsuU X-Microsoft-Antispam-PRVS: 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)(3231254)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:AM3PR04MB1378; BCL:0; PCL:0; RULEID:; SRVR:AM3PR04MB1378; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(6049001)(396003)(366004)(39380400002)(39860400002)(376002)(346002)(189003)(199004)(3260700006)(2486003)(305945005)(31686004)(52146003)(23676004)(7736002)(97736004)(25786009)(86362001)(52116002)(68736007)(76176011)(31696002)(478600001)(6666003)(105586002)(106356001)(5660300001)(4326008)(47776003)(65956001)(66066001)(65826007)(65806001)(11346002)(16526019)(5009440100003)(229853002)(2616005)(956004)(77096007)(476003)(26005)(186003)(230700001)(446003)(64126003)(6486002)(8936002)(67846002)(36756003)(110136005)(53546011)(386003)(54906003)(50466002)(55236004)(6116002)(3846002)(44832011)(316002)(2906002)(6246003)(58126008)(486006)(16576012)(81166006)(8676002)(53936002)(81156014)(110426005)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM3PR04MB1378; H:[10.232.134.144]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTNQUjA0TUIxMzc4OzIzOk5aZzk5UzJSY0xSd1FHUXEyczNUWHYweGNV?= =?utf-8?B?Zk03YWhsaUQyQWRNK1dGclFhcVRQWU14bEp4cmM0SGlWMX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XaF+h9Tt/kqWaq/qBJ+yHWS/e3RifNE2uNz1KbXtl/JNCaDsMfd+BvF/GDJLDFaw2BbX5QR7CA008bR8oIHz2zNWasDvSkfmR/Z2t9V3l/D6Cn8OJyf0igBoRdiE/5fB4SPXBfMxh4ZRjHNz22dvkySzL4FZQaZYQfvyjYRLzIStgq1gOVIe0X30sRRr/pMvEsThxyH3OVAQdynGyj3zLXVAqhtaCi+gjIeZOmOP7pCwQmrjnXlDSxX6eJdFCp8u8fNnxjjfiIdHRcNEBXTpN0Y5hExfd1FZPpzA==; 5:kuSHNry52L8dlVXKxxR5LC+WTcr24aY9fb+COdKb8xaEKfdv5Hmx4l/xwbKhO7WUgoPpIQFB/uN4F+v3Nldj4kXz064rI+F9PJQm44fq4pIzDrGn399plg94FXfXzHN5/XcoEMoFL8iUxdKgY/v4Hycy9xvTiR+lmZFWb2VzERY=; 24:Mogh+87ku5F6EIhBFT7MV3kgtMwYyP96TZImF1j6ElML6RMrQZxiHhTx2n35LqP9w4vZsWAq6o8L8/m1xbCYEEeFRIs3271nqOjKkjPQGog= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB1378; 7:E3UpKaIX5Myu1nhLLWfRhNhDtJSJrQYz+y/e7OqVXv6h9qi5XwSboIGQYb+OxUwnsSb869fmsaaPLqxLeHCCCONG3rmpeqwiZGDYsMdy7E9AhVyZe6CA4qdmIoQFVZynex4qUmv8ra1lKhnk6sT9szKpOpQPyC+RsvKLVlS0qZty4/lNYoUoc7ULwGoMgtr9wV6AH85W5K3GKaalT6E5BDyyAR/IAr3yrAlVoKZfCIutKyGduZzRZeO/4MYuYOQ3 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 14:24:44.1782 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 76112c89-cc75-4050-ccd9-08d5d782bcd0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR04MB1378 Subject: Re: [dpdk-dev] [PATCH 1/2] 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2018 14:24:47 -0000 On 6/19/2018 11:56 AM, Anoob Joseph wrote: > 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 > --- > doc/guides/rel_notes/deprecation.rst | 4 ++++ > lib/librte_cryptodev/rte_cryptodev.h | 6 ++++++ > 2 files changed, 10 insertions(+) > > diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst > index 1ce692e..a547289 100644 > --- a/doc/guides/rel_notes/deprecation.rst > +++ b/doc/guides/rel_notes/deprecation.rst > @@ -122,3 +122,7 @@ Deprecation Notices > - Function ``rte_cryptodev_get_private_session_size()`` will be deprecated > in 18.05, and it gets replaced with ``rte_cryptodev_sym_get_private_session_size()``. > It will be removed in 18.08. > + - New field, ``min_headroom_req``, added in ``rte_cryptodev_info`` structure. It will be > + added in 18.11. > + - New field, ``min_tailroom_req``, added in ``rte_cryptodev_info`` structure. It will be > + added in 18.11. Is this targeted for 18.08 or 18.11? > diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h > index 92ce6d4..fa944b8 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. */ > > + uint32_t min_headroom_req; > + /**< Minimum mbuf headroom required by device */ > + > + uint32_t min_tailroom_req; > + /**< Minimum mbuf tailroom required by device */ > + > struct { > unsigned max_nb_sessions; > /**< Maximum number of sessions supported by device. */