From mboxrd@z Thu Jan 1 00:00:00 1970 From: Akhil Goyal Subject: Re: [PATCH v2 02/11] crypto/dpaa2_sec: Run time assembler for Descriptor formation Date: Thu, 12 Jan 2017 17:58:05 +0530 Message-ID: <39599067-d86a-7e34-de28-7b6eef631d4f@nxp.com> References: <20161205125540.6419-1-akhil.goyal@nxp.com> <20161222201700.20020-1-akhil.goyal@nxp.com> <20161222201700.20020-3-akhil.goyal@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: "thomas.monjalon@6wind.com" , "Doherty, Declan" , "hemant.agrawal@nxp.com" , "Mcnamara, John" , "nhorman@tuxdriver.com" , Horia Geanta Neag To: "De Lara Guarch, Pablo" , "dev@dpdk.org" Return-path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0083.outbound.protection.outlook.com [104.47.32.83]) by dpdk.org (Postfix) with ESMTP id 96A935A44 for ; Thu, 12 Jan 2017 13:28:15 +0100 (CET) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 1/9/2017 7:25 PM, De Lara Guarch, Pablo wrote: > > >> -----Original Message----- >> From: Akhil Goyal [mailto:akhil.goyal@nxp.com] >> Sent: Thursday, December 22, 2016 8:17 PM >> To: dev@dpdk.org >> Cc: thomas.monjalon@6wind.com; Doherty, Declan; De Lara Guarch, Pablo; >> hemant.agrawal@nxp.com; Mcnamara, John; nhorman@tuxdriver.com; >> Akhil Goyal; Horia Geanta Neag >> Subject: [PATCH v2 02/11] crypto/dpaa2_sec: Run time assembler for >> Descriptor formation >> >> A set of header files(hw) which helps in making the descriptors >> that are understood by NXP's SEC hardware. >> This patch provides header files for command words which can be used >> for descriptor formation. >> >> Signed-off-by: Horia Geanta Neag >> Acked-by: Akhil Goyal >> --- > > ... > >> diff --git a/drivers/crypto/dpaa2_sec/hw/rta.h >> b/drivers/crypto/dpaa2_sec/hw/rta.h >> new file mode 100644 >> index 0000000..7eb0455 >> --- /dev/null >> +++ b/drivers/crypto/dpaa2_sec/hw/rta.h > > ... > >> +extern enum rta_sec_era rta_sec_era; >> + >> +/** >> + * rta_set_sec_era - Set SEC Era HW block revision for which the RTA >> library >> + * will generate the descriptors. >> + * @era: SEC Era (enum rta_sec_era) >> + * >> + * Return: 0 if the ERA was set successfully, -1 otherwise (int) >> + * >> + * Warning 1: Must be called *only once*, *before* using any other RTA >> API >> + * routine. >> + * >> + * Warning 2: *Not thread safe*. >> + */ > >> +static inline int rta_set_sec_era(enum rta_sec_era era) >> +{ > > "static inline int" should go in a different line than the function name and parameters. > So it should be: > > static inline int > rta_set_sec_era(enum rta_sec_era era) > { > > Could you make this change here and in the rest of the functions? > > Thanks, > Pablo > > Ok, I will correct in the next version. Thanks, Akhil