From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0078.outbound.protection.outlook.com [104.47.40.78]) by dpdk.org (Postfix) with ESMTP id F32891B01E for ; Wed, 13 Dec 2017 15:30:01 +0100 (CET) Received: from BN6PR03CA0010.namprd03.prod.outlook.com (10.168.230.148) by CY1PR03MB2362.namprd03.prod.outlook.com (10.166.207.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Wed, 13 Dec 2017 14:30:00 +0000 Received: from BN1BFFO11FD006.protection.gbl (2a01:111:f400:7c10::1:127) by BN6PR03CA0010.outlook.office365.com (2603:10b6:404:23::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend Transport; Wed, 13 Dec 2017 14:30:00 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; cavium.com; dkim=none (message not signed) header.d=none;cavium.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD006.mail.protection.outlook.com (10.58.144.69) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.282.5 via Frontend Transport; Wed, 13 Dec 2017 14:29:52 +0000 Received: from [10.232.134.49] ([10.232.134.49]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vBDETsUr018780; Wed, 13 Dec 2017 07:29:55 -0700 To: Nithin Dabilpuram , Jerin Jacob , "Doherty, Declan" CC: Abhinandan Gujjar , , , Nikhil Rao , Gage Eads , , , References: <1510210453-61428-1-git-send-email-abhinandan.gujjar@intel.com> <20171129114153.GA16467@jerin> <20171213112606.GA5166@jerin> <780d2af1-88e7-196c-eec8-bb10b74d1563@cavium.com> From: Akhil Goyal Message-ID: <0aa05077-496c-a35b-4f01-7dc80cf318a1@nxp.com> Date: Wed, 13 Dec 2017 19:59:54 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <780d2af1-88e7-196c-eec8-bb10b74d1563@cavium.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131576489932243489; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(336005)(7966004)(39860400002)(39380400002)(346002)(376002)(2980300002)(1110001)(1109001)(339900001)(13464003)(199004)(189003)(24454002)(316002)(58126008)(93886005)(59450400001)(2870700001)(4326008)(64126003)(50466002)(85426001)(2950100002)(498600001)(36756003)(53936002)(97736004)(77096006)(5890100001)(23676004)(83506002)(54906003)(53546011)(76176011)(2906002)(2486003)(8656006)(67846002)(6246003)(105606002)(31696002)(86362001)(31686004)(229853002)(106466001)(110136005)(47776003)(65826007)(104016004)(7416002)(68736007)(81166006)(81156014)(356003)(305945005)(65806001)(65956001)(8936002)(5660300001)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2362; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD006; 1:nGUqPHBz364fR5kdCgVEn6ozMfyTLHqQC4vTuXnUuI6RUiRsGV7WkRPcKB8slkdlbmxnWbM81Yarv/WuaU5Ht0vvswAq8WDDx8+G0DGquD8UFfdYWHpEGggOR3cfi7zM X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 47e82e2c-88e7-4a59-4221-08d54235f9ab X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:CY1PR03MB2362; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2362; 3:m+NwVCiZOgHsI7HUF5kkBJF1Aeh0JxyByWPGYU6jWMBaiLDRvKTKxhsSEFoOKxkomxpuXkNXkWsJjtgTPGqnLcwZ0KPA2CI54YgK5IsuaPUGgWRIjtbRjG1BEvfw4NU/EIoa6GJk4dN9DhNAffHmo7zj16K/oe7URQjypS3KiQQ6yfrJDGMEJdVBO+r3W34/X9xjfrE+B1JbN9HxM6/HMH5ToeAX7pl4/6+dMFQK8T0tTNxI5YZy2vcW5vhTSvDlndjArugM1tBO8bYSmYqS+01E5tZw25Mlr2XSHRUIlffdx+XgZF9so/0yVcdCP7oAsGJNXJFSJ6rA4NyT8IXIcOTcRQqMASAm8bqka6n7L3M=; 25:VHleJsZN0eVGuhGYhGsuSRwnzKdLPQQZ48gMtTEdjn1dChZcg3NXZfYC+1zJ6G3PUklYEqSPm72d9ph6n3RJhlL6fyQoAyaeHrikmspFpiKfQINYscYOv4fhaeNMCWON0T69w1BIVy3om28UUY9gkWs78X1wI39RWRWOmblgVS+HqaX89MykafIJFoCzcHLi/Yuhu2uk29Z+z76hSCjMu1BQKEdjRESie1EHAzVxL5HGzI1Jf5yhBGEGMTZAuIPxnBHoyfbVjpsJhUwfAPyMU/Dp0NtIjOQoy+RVuX359BfkyRZimsMDitVbePDFeyUgv9qqvlT0YZpmbc2dJh2zww== X-MS-TrafficTypeDiagnostic: CY1PR03MB2362: X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2362; 31:0TT98etnSeNZd+sZDp1pGiSFE2VPCEhetlovsyEHfYKfylUl1dgnXvP2OKLFMHYmX59nRDbg3beSEewpfYRfbSWoraUIHif3qZbfZBUs8ocLPonXkJNfOEYn+HrwuP0PYs3FE3wxMkeO2e8tSpNr9mICd40BfJqD/PHaIgSUQ54VfgPPwzJPmmv3hwj2mc/81gQhGf9z6VKPAZwFBuNoQjyhhWgDuCaf0ZYSc7U9oUA=; 4:+3syBRKC2DtKZj1mxhWbsiec1Ki9uatPARk3L5oUi7snJg1Aimy7kgIBYMUG4IRRf1V8QM12xozyEz+4p9Q+wPDI4CslUKqoQmPIAArSIKloL+d/O9ZAvQQwWIItDgvxS/7hcMMs0o8lICiKWCLVArVti4SPfHaI2yUztue9gjWRqLiP/CGYmlHeakBWFgCFA6xRBs8v2Egiie1bxt/UtQTTYi7OxeplnniVrmGwRkGFZLA9EbJaQRi/izRciLwm/V9pvcXD7Z9EHBQKYMlGXOINS/xU0ou7srBGQ2+Qbr4jkK3e9/xWSYbLmzKRHSxy0mln4QAY/hw2hq41MuQpTqi8kNm9sy6bBa13NoQOXHW+1E4s1Q8YFsGPZUu6LbDd X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3231023)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123556025)(20161123561025)(20161123559100)(20161123565025)(20161123563025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(201708071742011); SRVR:CY1PR03MB2362; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CY1PR03MB2362; X-Forefront-PRVS: 052017CAF1 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjAzTUIyMzYyOzIzOjN3QXV1UWdyMkQvdTgrc1g4R0ZKUTAwcHBD?= =?utf-8?B?cndvMkRUdFZDSGNESjd2aTR5c3ZWK3NKc3RUMmJEbDM3T3lBaEZkZEZLNjd6?= =?utf-8?B?TE1OK21iYkhnRXowZmR3QXk2b0Q5TnoyaFU2YmJsY0xuWnUvV1dodSt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oft-Exchange-Diagnostics: 1; CY1PR03MB2362; 6:WdFEyqlgIcWV+C5C3Gf+619BHPmnImLvQEGarVOUH/tDtuIFiwjaf1ASUfpuYslEiAiHBMkv7rTq6QAaR05l88oiHAbUDm9Z8g6U89QLMyFO6apMRyF8flhYlGn8LsvY20/S/tHbBFOI1UnH1hrI4rtThAmuGlrL/LIxpOr51xetDOo2o4QVGVzrTqRABhujfLb5ciWTVMIRM2QXCdhmB7O5u9/4uKhaa0fcqMGmAI7aBQaZaEiv3U/GQoUAfUlz7h8OQ9N64K5JJtfqPrYXJpLgS/s4ESdAfDy8YFR5ioGcDu0VYTYXHrWdyaMwbhe3R0fxUz/N4QQa5bHqxz7WNpJ7oWe+1t6522LmQe/jy0g=; 5:KDlaVRjyclP86gx2Q2lI9ZKPdHdkUR+W3BptimfPhtEqZbX00EapgHjdwj67lCMtQbrlZBacHX6TePZOlJhqybWhJDaRH9+L6QgqHquI2KGDZYnoBDOsqafl0A7z9VqWYQyaDey595sQmhy4rUJPZk/Alit82sQdCM1xb1B7KT0=; 24:TVnmihmzTbYzuXLMpRcK4q5bN039x+ihoNvKiFUSMLLe6pCYD+Btnox3meSJ1zFP1ef9GnS6Vb10Ul0DonNKCHqRgdLjekzPZ/aA7THYtaE=; 7:JBe9yz0Dv6v/lXztsEnUyNbjZDjPUXSUO/wBjMDJBQ1ykuqi0iiUyo0eew61yXrSKJyuPk41NQDEXHaju1l5/uVbv9Gw7WD4rtIqPOLe1dKx9zMcTeI4+kkY2P+LnCbvElbSZbqsRE40oQ8MaJZ144K0xe0nDCkeenkY4EZmaSQjPzWM2m5IoHMizp657r7vS5nJihz/DlKZe/s4T8yMvd+0bZ5a60Ny1lZcTqoUpSOpaEYT4RsIWb6wi5NEdrCP SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2017 14:29:52.9123 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 47e82e2c-88e7-4a59-4221-08d54235f9ab X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2362 Subject: Re: [dpdk-dev] [RFC] eventdev: add crypto adapter API header 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: Wed, 13 Dec 2017 14:30:02 -0000 Hi Nithin, On 12/13/2017 5:58 PM, Nithin Dabilpuram wrote: > Hi Jerin, Declan, > > On Wednesday 13 December 2017 04:56 PM, Jerin Jacob wrote: >> -----Original Message----- >>> Date: Wed, 13 Dec 2017 11:03:06 +0000 >>> From: "Doherty, Declan" >>> To: Jerin Jacob , Abhinandan Gujjar >>>   >>> CC: dev@dpdk.org, narender.vangati@intel.com, Nikhil Rao >>>   , Gage Eads , >>>   hemant.agrawal@nxp.com, nidadavolu.murthy@cavium.com, >>>   nithin.dabilpuram@cavium.com, narayanaprasad.athreya@cavium.com >>> Subject: Re: [RFC] eventdev: add crypto adapter API header >>> User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 >>>   Thunderbird/52.5.0 >>> >>> On 29/11/2017 11:41 AM, Jerin Jacob wrote: >>>> -----Original Message----- >>> ... >>> >>>> Adding Declan and Hemant. >>>>> IMO, RTE_EVENT_CRYPTO_ENQ_MULTI_EVENTQ may not be very useful >>>> from application perceptive as the scope is very limited. >>>> In real world use cases, we will be attaching destination event >>>> queue information >>>> to the session, not to the queue pair. >>>> >>>> >>>> IMO, RTE_EVENT_CRYPTO_ENQ_MBUF_MULTI_EVENTQ scheme may not very >>>> convenient for application writers as >>>> # it relies on mbuf private area memory. So it has additional memory >>>> alloc/free >>>> requirements. >>>> # additional overhead for application/PMD to write/read the event >>>> queue metadata >>>> information per packet. >>>> >>>> Since we already have meta data structure in the crypto >>>> area, How about adding the destination event queue attributes >>>> in the PMD crypto session area and for, _session less_, we can add it >>>> in rte_crypto_op stricture? This will help in: >>>> >>>> # Offloading HW specific meta data generation for event queue >>>> attributes >>>> to slow path. >>>> # From the application perspective, most likely the event queue >>>> parameters >>>> will be different for each session not per packet nor per event queue >>>> pair. >>>> >>> Hey Jerin, >> Hey Declan, >> >>> given my limited experience with eventdev, your proposed approach in >>> general >>> makes sense to me, in that a packet flow having crypto processing >>> done will >>> always be forwarded the same next stage event queue. So storing this >>> state >>> in the crypto session, or crypto op in the case of sessionless ops, >>> seems >>> sensible. >>> >>>> Something like below to share my view. Exact details may be we can >>>> work it out. >>>> >>> I terms of your proposed changes below, my main concern would be >>> introducing >>> dependencies on the eventdev library into cryptodev, as with this new >>> crypto >>> adpater you will have a dependency on cryptodev in eventdev. >> I agree with your dependency concern. >> >>> I think the best approach would be to support opaque metadata in both >>> the >>> crypto op and crypto session structures, as this would allow other uses >>> cases to be supported which aren't specific to eventdev to also store >>> metadata across cryptodev processing. >> Make sense. Just to add, adding a pointer would be overhead. I think, we >> can reserve a few bytes as byte array and then later typecast with >> eventdev api in eventdev library. >> >> uint8_t eventdev_metadata[SOMEBYTES]; >> >> Thoughts? > Can we have this info in structure rte_crypto_sym_xform instead of > rte_crypto_op > so that for session less or session full we have just one api say as below > to update the event information. > > rte_cryptodev_sym_xform_event_init(struct rte_crypto_sym_xform *xforms, >                                                             struct > rte_event ev) > > IMO, this is better because for both session_less or session_full modes, > app has to > prepare sym_xform structure and in case of session_less make the struct > rte_crypto_op > point to sym_xform and in session_full pass it to > rte_cryptodev_sym_session_create(). > > The same can be followed for asym/security sessions in future if needed. > IMO, the metadata that we are talking here is per packet and not per session. So moving it to xform will not serve the purpose as it is raw information which fills the session parameters of the driver. And yes security sessions will surely support eventdev crypto adapter APIs. >>>> ➜ [master][dpdk.org] $ git diff >>>> diff --git a/lib/librte_cryptodev/rte_crypto.h >>>> b/lib/librte_cryptodev/rte_crypto.h >>>> index 3d672fe7d..b44ef673b 100644 >>>> --- a/lib/librte_cryptodev/rte_crypto.h >>>> +++ b/lib/librte_cryptodev/rte_crypto.h >>>> @@ -115,6 +115,9 @@ struct rte_crypto_op { >>>>           uint8_t reserved[5]; >>>>           /**< Reserved bytes to fill 64 bits for future additions */ >>>> >>>> +#if 0 >>>> + Crypto completion event attribute. For _session less_ crypto >>>> enqueue operation, >>>> + The will field shall be used by application to post the crypto >>>> completion event >>>> + upon the crypto enqueue operation complete. >>>> >>>> + Note: In the case of session based crypto operation, SW based >>>> crypto adapter can use >>>> + this memory to store crypto event completion attributes from the PMD >>>> + specific session area. >>>> + >>>> + Note: ev.event_ptr will point to struct rte_crypto_op *op, So >>>> + that core can free the ops memory on event_dequeue(). >>>> +#endif >>>> + >>>> +       struct rte_event ev; >>>> >>>>           struct rte_mempool *mempool; >>>>           /**< crypto operation mempool which operation is allocated >>>> from >>>>    * */ >>>> diff --git a/lib/librte_cryptodev/rte_cryptodev.h >>>> b/lib/librte_cryptodev/rte_cryptodev.h >>>> index dade5548f..540b29e66 100644 >>>> --- a/lib/librte_cryptodev/rte_cryptodev.h >>>> +++ b/lib/librte_cryptodev/rte_cryptodev.h >>>> @@ -945,6 +945,13 @@ rte_cryptodev_sym_session_init(uint8_t dev_id, >>>>                           struct rte_crypto_sym_xform *xforms, >>>>                           struct rte_mempool *mempool); >>>> >>>> +#if 0 >>>> + Create PMD specific session meta data for the destination event queue >>>> + attribute to post the crypto completion event on crypto work >>>> complete. >>>> +#endif >>>> +int >>>> +rte_cryptodev_sym_session_event_init(uint8_t dev_id, >>>> +                       struct rte_cryptodev_sym_session *sess, >>>> +                       struct rte_crypto_sym_xform *xforms, >>>> +                       struct rte_mempool *mempool, >>>> +                       struct rte_event ev); >>>> + >>>>    /** >>>>     * Frees private data for the device id, based on its device type, >>>>     * returning it to its mempool. >>>> >>>> >>>>> + * >>>>> + * The metadata offset is used to configure the location of the >>>>> + * rte_event_crypto_metadata structure within the mbuf's private >>>>> metadata area. >>>>> + * >>>>> + * When the application sends crypto operations to the adapter, >>>>> + * the crypto queue pair identifier needs to be specified, >>>>> similarly eventdev >>>>> + * parameters such as the flow id, scheduling type etc are needed >>>>> by the >>>>> + * adapter when it enqueues mbufs from completed crypto operations >>>>> to eventdev. >>>>> + */ >>>>> + >>>>> +#ifdef __cplusplus >>>>> +extern "C" { >>>>> +#endif >>>>> + >>>>> +#include >>>>> +#include >>>>> + >>>>> +#include "rte_eventdev.h" >>>>> + >>>>> +#define RTE_EVENT_CRYPTO_ADAPTER_MAX_INSTANCE 32 >>>>> + >>>>> + /** >>>>> + * @warning >>>>> + * @b EXPERIMENTAL: this enum may change without prior notice >>>>> + * >>>>> + * Crypto event queue conf type >>>>> + */ >>>>> +enum rte_event_crypto_conf_type { >>>>> +    RTE_EVENT_CRYPTO_CONF_TYPE_EVENT = 1, >>>>> +    /**< Refer RTE_EVENT_CRYPTO_ADAPTER_CAP_MULTI_EVENTQ */ >>>>> +    RTE_EVENT_CRYPTO_CONF_TYPE_MBUF, >>>>> +    /**< Refer RTE_EVENT_CRYPTO_ADAPTER_CAP_MBUF_MULTI_EVENTQ */ >>>>> +    RTE_EVENT_CRYPTO_CONF_TYPE_MAX >>>>> +}; >>>> See above. >>>> >>>>> + >>>>> + /** >>>>> + * @warning >>>>> + * @b EXPERIMENTAL: this enum may change without prior notice >>>>> + * >>>>> + * Crypto event adapter type >>>>> + */ >>>>> +enum rte_event_crypto_adapter_type { >>>>> +    RTE_EVENT_CRYPTO_ADAPTER_RX_ONLY = 1, >>>>> +    /**< Start only Rx part of crypto adapter. >>>>> +    * Packets dequeued from cryptodev are new to eventdev and >>>>> +    * events will be treated as RTE_EVENT_OP_NEW */ >>>>> +    RTE_EVENT_CRYPTO_ADAPTER_RX_TX, >>>>> +    /**< Start both Rx & Tx part of crypto adapter. >>>>> +    * Packet's event context will be retained and >>>>> +    * event will be treated as RTE_EVENT_OP_FORWARD */ >>>>> +}; >>>> How about leveraging ev.op based schematics as mentioned above? >>>> > >