From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0052.outbound.protection.outlook.com [104.47.36.52]) by dpdk.org (Postfix) with ESMTP id 65EF71BB20 for ; Fri, 22 Jun 2018 08:50:56 +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=xXDQoaidytG5B0M9/T1r3ix9fSuD5kN4ntlzCMs0BvY=; b=O889ZrW9GjBPD9TKYberQ8nnL7gDHPTU47dy2XjhHQwms+OSzhSxckujGTLtcCpK9RMR10eU8hrlnr2K6vnHaOJa8eOBtkIWJTez9En0+XGzb2dki2wyNC50NgjnpzhqmRzLYWxh2vI8GKfIs57XdRy/5on5dQJVMBUPCob5iVs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from [10.88.100.222] (115.113.156.2) by BN7PR07MB4898.namprd07.prod.outlook.com (2603:10b6:406:ef::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Fri, 22 Jun 2018 06:50:52 +0000 To: Akhil Goyal , 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> <7fa289f6-49a7-e3fe-39d6-e37aba7aa0e9@nxp.com> From: "Joseph, Anoob" Message-ID: <407729fb-469d-e731-329e-868573392a39@caviumnetworks.com> Date: Fri, 22 Jun 2018 12:22:18 +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: <7fa289f6-49a7-e3fe-39d6-e37aba7aa0e9@nxp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: PN1PR01CA0113.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00::29) To BN7PR07MB4898.namprd07.prod.outlook.com (2603:10b6:406:ef::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 24579f02-01ef-4a05-b2f7-08d5d80c806e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:BN7PR07MB4898; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 3:U+Km8rrCojASaOtq7fRHlCsEJQuVsnImX2WtUT5k1yGbJXir0SqxmC/nXatKfQYROi9N9P/lzDuYdAzY8ak8Uicgb3JPa7A2smgaeF01gAM9yV/GKHzMEI4DKuCYC4AZ5mTjWnbos0Mudce7YTZZOtHeCbLAmbVnFo/qm79M0x0RTUxeml4eLocIc76Rk3tFhg9o93f0yi5qhU1Yodh3Ylz0umSANJ4kiBZHaVeirkScWPc9ejJNArTkFRXRxwr3; 25:/U8mV+HzmGtqkHrwRAdyjnArzO/gNf1kNSipZjvncBOc/AMxnxISojaq1Qee4WIsjuPL2n9UPZz21/0zplmDw3klohU64pmidRsF4R4Qpohx2icYSJe/S0PsgfqBhWcH52GjkM/pi1jaFxR2wDMkT28tVA4GlIt3K/ZqMqhl/8JNKcAOriDu3mdWOftRTJIMeMTobzUoqqZjaq4n2f6AQ+dCKb2HgRHT7yZ+B0+QrWwCqF0kmwsfk2VCE4t6/GVIvKkIP+V4p1MpSYPFZlV+hrcfoHDQbH0VTWXeEmwz2qp3jw/lARquHBruhCXPxPa+0MLIRABOMLPNs2sZ9qWvLA==; 31:oDaRCEzSkuTvLfVRqaSZaiGyC1pg176wjvF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cM59gHwF0lb30QM6u8EM6wZjvBBq/Ep43LXHjMlW0XDSNQBV/XyZNx9Ada9ENYX/qZFFF0avtVdXybg4RyuD/D9twzXa9N4Wpkel4VU+pG2xAhQLmFMJXVbLzWbv9yR/WOQafp68+Q1BBMu 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)(5005006)(8121501046)(93006095)(3231254)(944501410)(52105095)(3002001)(10201501046)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:BN7PR07MB4898; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4898; X-Forefront-PRVS: 071156160B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(366004)(39380400002)(39860400002)(396003)(346002)(376002)(52164004)(189003)(199004)(16576012)(97736004)(2906002)(53546011)(4326008)(8656006)(67846002)(6246003)(316002)(110136005)(106356001)(68736007)(31686004)(53936002)(229853002)(58126008)(105586002)(31696002)(72206003)(478600001)(386003)(65956001)(65806001)(54906003)(66066001)(52116002)(47776003)(6486002)(55236004)(76176011)(52146003)(6666003)(23676004)(305945005)(486006)(8676002)(3260700006)(26005)(81166006)(81156014)(65826007)(25786009)(6116002)(50466002)(2486003)(3846002)(8936002)(956004)(16526019)(2616005)(476003)(11346002)(446003)(36756003)(64126003)(5660300001)(186003)(42882007)(2870700001)(77096007)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4898; H:[10.88.100.222]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjdQUjA3TUI0ODk4OzIzOisvZ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ZIYYeUcSlHvRNJlhxFEk0ALZPXjATY5tfmxsRB7xTuUh7vYc974d8oC9GNcOy+/iwoemnRn3jUwEkaRfYRbTRH66d/18c3FfjPexkLgJ75FICHLf3YqqYfoFsW866srMdQk5v8Kiy1YzfcdB1sh85XohKcEw6JusI3gs8NdUx4BB1sanK1s3C7WkVOzpUaDZd36ur/8jPBX5fTj1w==; 5:vzH1SHuP9aQ62ERwSpLhOxcPknXPznUz+CMSneKhbfIWyGfLoA8c/k1QZnLLjD1+OAYS0gSkcEkFNYuXRB29Om5lMV6Uc4mHSJ6/BC40ktdD/NeBNjaBD1cPkQg7r5e4zRv6Ei2isa9DCgCdEkEUAxF/ejvsRmJdKPR1n8ocrHw=; 24:OKph/Zg6l1pM5LnSbvTFMlqQUUqYtcZlxKQ1jlYhxJ+vA3yb6RinJuP6orYUr/jKBNv/VFragZ8gJVwOgc0zSaRQDldV0Ohk9vn3QKYCeE0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 7:NkTcCPbGnJgvzXl/gbpGD62+tIOZxxRtij3a6XLfzMySdAq+qUq4jlfeX6itjZaNFEd4uzeXbJHqYB6kQO5gZt3jt1JWFYaqpzR7bIjAANfOuAziDWjBTam/O3UXQK+q+NrhQHJLf2CFaOkcM/eS3Du+X8Sn32HWP1PokY2Yn41LaBdNmN69WmLnY7Uh/Cjt3rmgSZQUG60jUueJwscJO7U78ZIyImqHs+VMVqFEEB4mcl9o1AWYTs0Bfa3ZbRwa X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2018 06:50:52.3811 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 24579f02-01ef-4a05-b2f7-08d5d80c806e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4898 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: Fri, 22 Jun 2018 06:50:56 -0000 Hi Akhil, The change adds couple of entries in cryptodev_info structure. I was under the impression this will be an ABI change and would need one release cycle. If we can get this through in 18.08, it would be great. Do you want me to revise the patch stating it that way? Thanks, Anoob On 21-06-2018 19:54, Akhil Goyal wrote: > > 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. */ >