From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0046.outbound.protection.outlook.com [104.47.33.46]) by dpdk.org (Postfix) with ESMTP id DDDCF1B2F7 for ; Sat, 21 Oct 2017 18:01:06 +0200 (CEST) Received: from DM5PR03CA0054.namprd03.prod.outlook.com (10.174.189.171) by BN3PR03MB2353.namprd03.prod.outlook.com (10.166.74.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Sat, 21 Oct 2017 16:01:05 +0000 Received: from BN1AFFO11FD021.protection.gbl (2a01:111:f400:7c10::137) by DM5PR03CA0054.outlook.office365.com (2603:10b6:4:3b::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.156.4 via Frontend Transport; Sat, 21 Oct 2017 16:01:05 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; intel.com; dkim=none (message not signed) header.d=none;intel.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 BN1AFFO11FD021.mail.protection.outlook.com (10.58.52.81) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.156.4 via Frontend Transport; Sat, 21 Oct 2017 16:01:04 +0000 Received: from [10.214.81.196] ([10.214.81.196]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v9LG0w2f007348; Sat, 21 Oct 2017 09:00:59 -0700 To: "Ananyev, Konstantin" , "dev@dpdk.org" CC: "Doherty, Declan" , "De Lara Guarch, Pablo" , "hemant.agrawal@nxp.com" , "Nicolau, Radu" , "borisp@mellanox.com" , "aviadye@mellanox.com" , "thomas@monjalon.net" , "sandeep.malik@nxp.com" , "jerin.jacob@caviumnetworks.com" , "Mcnamara, John" , "shahafs@mellanox.com" , "olivier.matz@6wind.com" References: <20171006181151.4758-1-akhil.goyal@nxp.com> <20171014221734.15511-1-akhil.goyal@nxp.com> <20171014221734.15511-7-akhil.goyal@nxp.com> <2601191342CEEE43887BDE71AB9772585FAAB0F4@IRSMSX103.ger.corp.intel.com> From: Akhil Goyal Message-ID: <62779229-7c2f-f293-99f7-17cb4b6f5b26@nxp.com> Date: Sat, 21 Oct 2017 21:30:57 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <2601191342CEEE43887BDE71AB9772585FAAB0F4@IRSMSX103.ger.corp.intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131530752644471235; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(376002)(346002)(2980300002)(1109001)(1110001)(339900001)(3190300001)(13464003)(24454002)(189002)(199003)(105606002)(498600001)(15650500001)(54356999)(50986999)(7416002)(106466001)(2906002)(316002)(5660300001)(83506002)(110136005)(65956001)(65806001)(65826007)(8656005)(33646002)(47776003)(189998001)(58126008)(230700001)(8936002)(53546010)(76176999)(2950100002)(81166006)(81156014)(54906003)(8656005)(93886005)(104016004)(68736007)(31686004)(8676002)(77096006)(229853002)(356003)(36756003)(305945005)(23676002)(86362001)(64126003)(6246003)(85426001)(53936002)(50466002)(2501003)(97736004)(4326008)(31696002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2353; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD021; 1:q6eHErrq5i40LYMkPqCuk+JxfY+1iHQyU9Lj7znAqOq/DijTKpf54EpI9bhBUW8tPynQTul116OuP2k+eRUFLpSx3EgNTOZHjBLcQDfE7AMzSFzM7JWjAA9eiJ2BM5dt X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 27847eec-fc89-424b-7863-08d5189ceede X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199); SRVR:BN3PR03MB2353; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2353; 3:VoieaHxaMk266T7gJ13t1Svuygiz+CDz2OvNpE2dM54tG0Drm4HDRs0pmFru0y4JG+oAgHzZYGaCUAmdErpnZcJ8XX+T77PCi+7TxqmzQpuzVicEd23K5dfZJQE4W5ReREf19HFVIkE7JnBd+CslBJNZTCRC5+OZI+0q3GTekGtkLeK2XMEDMifvy+OFBiHcIYJrDE1V0NoqlSL6vxfLIqeiin9fT2o60fB1NjyZK2Tb8gYhsqnGfSxi8l2ozEMvQSzIxeKJe6I2nmZj6aR6hGd8v+Y28c6vrDb+KZVYhVkO3k/SCT+ZfVEfLdQc6ujuHTBjUi+Q4y70zpcfwl4sAps3vsEq9tQujIp8lGxB2pU=; 25:2KpMSpZiO6YxC7q72yVp2VUljzgdTeWJqK7QB7OYM2oh6xUwAE9iFznjCRcGnyjJ4u9RQYG8iqC83nH5R60iDLly6I7kE2ytbWkQODyAKRLlJ/ihHqfPcgm+3hKeIpmvm2Ti3L+E/4HHnwZ3lUYc9/iqFceWhTdfBPkfm7pgb2EOEBUFVEC1cLDo9MsZP9TuKp8QlaVBdx+ZjaFMDmMIB5fe2D1N814+fnXjcfdii/tl520X7Xwc0zioN5EQYKOWTnZdVFSSaeljnkMKhH2os+9EJEnbDD9bqNy1ItNdBi2IkF6OVqFkJupLkpNCjVTzPXW8DU4Wf7vUTzBgcIn4kw== X-MS-TrafficTypeDiagnostic: BN3PR03MB2353: X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2353; 31:v1zsRCscCRvYu+lBHJI6ZCUMOU60MLCkBkSmyAsL0Qnj94Q0n0tSGC8ghpYb7c+2YlXRqLEfJg4jEsyBsNvCkYpsNg+YfNQ5+dSx4UwleD+guwefrn4frKMskG83Kv8iPWhIoh7C/42Uq0D9fMWOAlEJt8h3ULm7FueDCnF9ZgFpGJuk0XA++vmV/HmulXltcswdJ6f3wNDUnWPXSVdZ3cn+/LZSUFo2oUNWXi3OS8s=; 4:bvps6wpsPNh7FYMsKRph3IiLBwTvrDFJtUHfwJNzBsL++JHrtBtagXBBCoJzyu+OBHOjM+81qUeT3flTAnBJfiF6jMbBK1lCeLHCw7P09GQgUiYPY/J+VQ2GRPzmdhG4QrAvrGrlXfDEOfL3rqiUT/TQQsTxIgAz3tvH76riKponnoi64smQXiw5Zt5TmTQjhgGQKCoEM7sLYqbFfO65nlRJCK2mO9pUZeCvcNl1fSMprwPICCmT3udqXm8vz0XNyBC7UIRitkHdIwlJ8PATb15zhQNdqT/gXyyiPoymBkuVQMpVFfBzbuRXzZwtA2ZwYG338X7f4YbYIjTqQMG9NGyfRMJN5CQBcpOkJ8NbM7E= X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(185117386973197)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(3231020)(6055026)(6096035)(20161123559100)(20161123565025)(20161123561025)(20161123556025)(20161123563025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR03MB2353; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR03MB2353; X-Forefront-PRVS: 046753C63C X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjNQUjAzTUIyMzUzOzIzOkpoQ0Q2YlNZVmZYck9lN1FhZHdlMXNCSk5u?= =?utf-8?B?c1ozbGtJbmlRK2NNdVprbDB4ODhIdVQwb2J2OWpkbnQ0dDBhVURYUmg5RUhs?= =?utf-8?B?NkFCSWdNN3o0VldLeFozQyt6UFdjdDU5YlJkOFFFUHpaMWY2c3hqN2FsbDJI?= =?utf-8?B?Wm42UXRRK0dEa3BHRkNQRFdkVFpmTFBPWHo0dnIrYm5PY1Fxd0oyOFNMRW1R?= =?utf-8?B?Ym55dGgxVmd5SmpIUHdhcXVnKzhWd2dibHI1cVlVREdnSnRIQVBKZVc1OHVo?= =?utf-8?B?RUQwV1dscjduVFAzUkdCaWg2ek1uYXJaMUVJaFpuZEtGUzIyVlh0TkEzWnht?= =?utf-8?B?QmJhaGx6Wnp1QVNaVVYveURmSk80ajdaS0RHdUcyQXJoWXNTZkM1U0h6NUdj?= =?utf-8?B?V0UydHU0d2gzKzMzeDBrZ0d2eHdBTHcxanJ6d1I1SXUzVnFvZkYwOGN0RmJW?= =?utf-8?B?aWFUdkt0bW5Lc1Vad2NpaXFicytmamo5UFJPQWs5bUFtZGZFL1hiUkRUSHdT?= =?utf-8?B?am9ZYmoyYWxNT3NUMnhDRHU3dTJtbHJlckJLQUdGN2UyNEdGaXdKaExGeGZ3?= =?utf-8?B?SU5wSktvZHhrWTlaNERRREZ5ZEI3YXJsYXJaelhxNUQ1UDgzeDRNa0QyUU5i?= =?utf-8?B?anpuV2FJYzhZWVFrSndUb3JocGN5MkZYV2tERnNxMFEyZVpaMFltT3Y0YmJt?= =?utf-8?B?MkluZVdsK3IrM3lrdS9STHlFR09BQVVuckd5WkYvQXFoZmhjVTZORzN1cXZR?= =?utf-8?B?R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RoSw4RAw/4EqMvGcYYWh9R6Mzh7x0xcHDw4Bs=; 7:S5EzUDB6hcB3BS2GyanwBlLoX8KbCeFH6GuaAmdhkHBkAH6e4VxWpYqXZhoQEZ9OIhb6g9V694ZE+W/M3Ovwzvc5O1oSIbpNWcBD6MQznhislG4Wp1qQTK60CFAaxgKnfH6s4c0Pb+OwFx8lrBpcLwtDk2F8BeOSg59eqxbZeBTPlxTSl2ntxGTh3+wdZskyhFu4wYnVnDg32q9GPmyEAE9aAGkqxzZ8+ajpMf9/Tgs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2017 16:01:04.2131 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 27847eec-fc89-424b-7863-08d5189ceede 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: BN3PR03MB2353 Subject: Re: [dpdk-dev] [PATCH v4 06/12] ethdev: support security APIs 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: Sat, 21 Oct 2017 16:01:07 -0000 Hi Konstantin, On 10/19/2017 2:53 PM, Ananyev, Konstantin wrote: > Hi guys, > >> -----Original Message----- >> From: Akhil Goyal [mailto:akhil.goyal@nxp.com] >> Sent: Saturday, October 14, 2017 11:17 PM >> To: dev@dpdk.org >> Cc: Doherty, Declan ; De Lara Guarch, Pablo ; hemant.agrawal@nxp.com; >> Nicolau, Radu ; borisp@mellanox.com; aviadye@mellanox.com; thomas@monjalon.net; >> sandeep.malik@nxp.com; jerin.jacob@caviumnetworks.com; Mcnamara, John ; Ananyev, Konstantin >> ; shahafs@mellanox.com; olivier.matz@6wind.com >> Subject: [PATCH v4 06/12] ethdev: support security APIs >> >> From: Declan Doherty >> >> rte_flow_action type and ethdev updated to support rte_security >> sessions for crypto offload to ethernet device. >> >> Signed-off-by: Boris Pismenny >> Signed-off-by: Aviad Yehezkel >> Signed-off-by: Radu Nicolau >> Signed-off-by: Declan Doherty >> --- >> lib/librte_ether/rte_ethdev.c | 11 +++++++++++ >> lib/librte_ether/rte_ethdev.h | 18 ++++++++++++++++-- >> lib/librte_ether/rte_ethdev_version.map | 1 + >> 3 files changed, 28 insertions(+), 2 deletions(-) >> >> diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c >> index 0b1e928..9520f1e 100644 >> --- a/lib/librte_ether/rte_ethdev.c >> +++ b/lib/librte_ether/rte_ethdev.c >> @@ -301,6 +301,17 @@ rte_eth_dev_socket_id(uint16_t port_id) >> return rte_eth_devices[port_id].data->numa_node; >> } >> >> +void * >> +rte_eth_dev_get_sec_ctx(uint8_t port_id) >> +{ >> + RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, NULL); >> + >> + if (rte_eth_devices[port_id].data->dev_flags & RTE_ETH_DEV_SECURITY) > > > As you don't currently support MP, it is probably worth to add somewhere > (here or at PMD layer) check for process type. > Something like: > if (rte_eal_process_type() != RTE_PROC_PRIMARY) > return NULL; > or so. > Konstantin > > The MP issue is resolved as per my understanding in the v4. SO I believe this check is not required anymore. Do you see any issue in MP. -Akhil