From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-BN3-obe.outbound.protection.outlook.com (mail-eopbgr680089.outbound.protection.outlook.com [40.107.68.89]) by dpdk.org (Postfix) with ESMTP id C4ACF1B1BB for ; Tue, 10 Jul 2018 12:51:03 +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=5UJkAuwNCE53fNg8lkJ1wz9YZyGp4XhzhmykGDeQAKw=; b=lOG9O3QScowdLTcYQen0gCQGK9SkcHmSGm6C2ijN3zWMDAmRg+RkdRrjBy7S/rtjE0mhSMw2GoQ1EgONPkfnxXzp1JJMSv5f2yPMUYoSCtcbxhqZal5UWLaU/A6SMZ1MIHh3z0MkGCHklia+/GxpYn7s+b4AUCCeLo9txkBTRxw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from [192.168.1.103] (183.82.131.183) by BN7PR07MB4899.namprd07.prod.outlook.com (2603:10b6:406:ef::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.21; Tue, 10 Jul 2018 10:50:57 +0000 To: "De Lara Guarch, Pablo" , "Doherty, Declan" Cc: Akhil Goyal , Ankur Dwivedi , Jerin Jacob , Narayana Prasad , "dev@dpdk.org" References: <1529389574-6643-1-git-send-email-anoob.joseph@caviumnetworks.com> <1530712550-18099-1-git-send-email-anoob.joseph@caviumnetworks.com> <1530712550-18099-2-git-send-email-anoob.joseph@caviumnetworks.com> From: Anoob Joseph Message-ID: Date: Tue, 10 Jul 2018 16:20:43 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [183.82.131.183] X-ClientProxiedBy: PN1PR01CA0081.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::21) To BN7PR07MB4899.namprd07.prod.outlook.com (2603:10b6:406:ef::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 22ddb30d-35bb-4bb7-da8b-08d5e65306b5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:BN7PR07MB4899; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4899; 3:sWRusJxLMtzrboSU12u3FcsTj4zzeTv/f+9hKfekj0BLD6SnDCAeLrM0PptB/08d1bHtRaX03kv8sr1iEfinRFNRwaQPjf1KVNH/T/N/gsRvhyleGxNNJbDZ+ZYJzc6IpCphN3GUp6ivNRM7K0oFvZW/NmLAtG9+T2WFpIccqFkbV4TEjbKCKB7TcIuJ2JRcM7SfX27sKCVw4xanQ5+INdiJsVCqDWl0cukMwfJV8xOe9zUjt7DZIkXhpqHRCdfB; 25:dUsNW41WqaMY1iutVvoDxbZID2xfarEMgREy3RnfUyGEjuB1g9sXyQ10LtZeDRex7JBXcxI2HjZSMDMwsn0tseXGO/Tqu5rLvUf0nhgH0bRxg/c6VGbdfsj68Ji7TGXI+DaibC3XAGXya/HfzWIR24mDCrtsB122YIMXuoQPGYwYnuF7rhzv8a2m3WIXaGwGSoQC85h5dHJKUyg0jy7Y7cTuUCRsBr7piXiZdJcwqkDSHGvsgm2mP+tqTQupxrSSeg29TQ7h5053QZMZMzvJgU7G1XgSEPDvmYwOhgCVOKzDmYvYnrzyC9wifyYcW2yUCSD1eV7WpdkgrXrBi+vLmg==; 31:Y51Mn5nDt3de2wuyAi+E0NfcXp1bQUcMn5yTVMiypLHGbAHmmttiawupKljWpSxHQkWZgFx4EzGMJCmuHLC20DFf4HRpgcVRvPANKUd8HpUxMaoUULa7YnwQAUg848/J1+SwIn9sSFxjZjVQeUrfxPRQQ9ossuizNP65wjG7gQ6COmJDnuNzd21slP9c0nt3aruxU208iMasDwESHXYeMd0r3uEdsb6SIkb7s3JLFxo= X-MS-TrafficTypeDiagnostic: BN7PR07MB4899: X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4899; 20:Kn5qX8yzzplwvniVoAlLP1cnjK1F9wnUer3hHMDiSaGL3UPgxEmlexxLLqCeNq/QZr1Cguwb25uEWLfC8GxBVKVgD0ANBLGq5Jknf6ZeBCr8BtIW9jLzie62jle32ZljcVkvr3WR27sBsR0XEty+b4zUWx8GlZHs3dl/8avOirD/yNcKmY0/wtlxIArQAHc/RTr+O8ggxt5qImobh9Rmn8F81iDCpPThG+RUV0I4dPQr03VEYlfNlKrJyo/M7qWX0DBMgKOCCStsJh30rKK+tCjud58KLEfnmH+K1jgGif7WO0BoOwkk3W4b5VGtd3gqiSXq+myrxck0yY+3NmdpKpa7wRVGAwk5nAtcBRmIqHvLpNxWj0HspJ34FyFQQWuwZ2Tfth9kXhqG3fX+gfNQnM/0Tf8tLmXrJjCMRjcrtVK21rt7NuyjUqKDsbtsf6MOzM9lRzX8CEhjmoMm/zklwml2E7rsCJVACM21BmoFF9AcgSnRsyp9B9sSOD8GPHsAWHWwIvBdLmXPpOFY/kQLg4fMilFC7U6prhizWt9eLb3aIAxf1Wayv+bEGQmAVXwy1dp9hhawJDAur5WITKrn4OpzgeA69I0xO0tbrmjC320= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(185117386973197)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(10201501046)(93006095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:BN7PR07MB4899; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4899; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4899; 4:elhS47rcVox20OdaLsNsAUPt7JJV6+1vrrjhxd9mSpUVuFZ+nP4M8kyYov24dQ1yWdKxsV37yAwQsPEsCTNhwCwMGJ/Fdm9Mbyx5cGY9+VQsrutTPOC3z9dplUImePDC55XJJNisz6ZPK69z9nYKN0yDmNeHsxT0ZCSZpY6F0J5+nONEafjzhhjYrwT6dOcVzJmFuOOUz5Kb7z0JojriDbug2Vr0Y2zxr1fdaG2WPnHYN4tU+1fvaLwa9YSx6lmWcAcNsg6vUZiuhFntGfERdbm/9ZmIUCVxTzG86DxlAsyLgg2+P2THsdMdftJtb11nTcqI4J2j3Vda/pF2eHD8kJi/vMslqQC6BackgWn6amFA7/6YACwmR0N0a2PlSnDy X-Forefront-PRVS: 0729050452 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(396003)(376002)(136003)(39850400004)(346002)(366004)(52164004)(13464003)(199004)(189003)(7736002)(54906003)(67846002)(110136005)(93886005)(50466002)(229853002)(44832011)(305945005)(956004)(11346002)(42882007)(316002)(446003)(81166006)(58126008)(8676002)(6486002)(81156014)(47776003)(65956001)(65806001)(66066001)(31686004)(6666003)(575784001)(25786009)(3260700006)(117156002)(64126003)(4326008)(26005)(77096007)(53936002)(14444005)(8936002)(97736004)(53546011)(386003)(6246003)(31696002)(186003)(16526019)(52116002)(72206003)(68736007)(2486003)(52146003)(23676004)(76176011)(106356001)(105586002)(478600001)(230700001)(2616005)(6116002)(16576012)(2906002)(476003)(486006)(65826007)(5660300001)(3846002)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4899; H:[192.168.1.103]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not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bKspPbfm3JFAP1XhW0hDi9Khn00o8IXani/dmb+bUBajfC3e+iCNVT8N6nxPnXUovj5B/F6yI/DXeApGB8qKcm2blAEecf29EHfgBG1IZWvw/V15+tjiQAmrR06B7eWSdeVxKKgD+viJIpYVdBzOfSZyLQH5bXZtuRQ+ykl0o/Qz9kDH0xUvVoLN1sPf4CLKyN0UfUDY0OdJVrfiYBFBRZt3tl68StEW30UQewxU93UX6s+yHZFZDhYdbiUf94696hx5GmSLdD/rmjB9y13Dwfn0x1RUOSdLFz/M3d4kAQ5jVQuLByjCwEKEpslZQKgyJiVR48ZVL3LyECvBNnjCqS6TEJ02hu6OEtTPPuaIQYjjScvJOtaeWL7AzigFJONqg==; 5:h0DFuFNOkkA+TPUyQLiDekON1Mo1A9oE2POSxRTkoh9jkwa8jL0TvIReKePcLbAbn2srhtTOTFeeKUshF+xcB0jP6iITqfLQc/Qpn1CnXSa8kDV3vfRv+4/5/AG1q6+l+f3HvaERYIfCOqBVkC9JEggCCPWgPIKJlUZwtunoer4=; 24:IzqQROlaf4J9qlBFEO6Hk2Pa6vpNlfzt3MmrAbBDIvBgpkVNwR1hwiVD7jgnzmDRIGVNPGbNvlSDMYnXZAUE3VM6kyArV3Gwflgcs4oOPXw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4899; 7:DJpBeOMSN6T0VuLXVNI4NvmDDtofMsNlQZ1cg5Eyqmtuhw9E6LmrdXlA00ZopxUPJR8MmTFcibRFp/mg2HO1K5Cq0wDrx60o/RxIuhHncRU3Y77YOtUKopCgI4ldRstOPHJJRYMcMLWDQjoC25v8DCXb2qVAAHTjRByQ9TiCI8NZ8FiDiL7Gwo9C4YNcOjdL/AvkGc/8oqTstdkDecvOgfwvk2jvzMOty6K9YxK60K+gOCBhkmP+Co9ie3rjWdT3 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2018 10:50:57.8184 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 22ddb30d-35bb-4bb7-da8b-08d5e65306b5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4899 Subject: Re: [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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 10:51:04 -0000 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 ; De Lara Guarch, Pablo >> >> Cc: Anoob Joseph ; Akhil Goyal >> ; Ankur Dwivedi >> ; Jerin Jacob >> ; Narayana Prasad >> ; 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 >> --- >> 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 >