From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0079.outbound.protection.outlook.com [104.47.38.79]) by dpdk.org (Postfix) with ESMTP id 33BE01B891 for ; Wed, 25 Oct 2017 07:05:38 +0200 (CEST) Received: from BN6PR03CA0076.namprd03.prod.outlook.com (10.164.122.142) by BN3PR03MB2354.namprd03.prod.outlook.com (10.166.74.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Wed, 25 Oct 2017 05:05:37 +0000 Received: from BL2FFO11FD006.protection.gbl (2a01:111:f400:7c09::135) by BN6PR03CA0076.outlook.office365.com (2603:10b6:405:6f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.156.4 via Frontend Transport; Wed, 25 Oct 2017 05:05:37 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.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 BL2FFO11FD006.mail.protection.outlook.com (10.173.161.2) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.156.4 via Frontend Transport; Wed, 25 Oct 2017 05:05:37 +0000 Received: from [10.232.133.65] (B10814-12.ap.freescale.net [10.232.133.65]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v9P55VLH008890; Tue, 24 Oct 2017 22:05:32 -0700 To: Akhil Goyal , References: <20171014221734.15511-1-akhil.goyal@nxp.com> <20171024141545.30837-1-akhil.goyal@nxp.com> <20171024141545.30837-7-akhil.goyal@nxp.com> CC: , , , , , , , , , , , From: Hemant Agrawal Message-ID: <3ca0f460-2ff7-9c44-e4bd-69bc9edb8871@nxp.com> Date: Wed, 25 Oct 2017 10:35:31 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20171024141545.30837-7-akhil.goyal@nxp.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131533815377674947; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(7966004)(336005)(346002)(376002)(39380400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189002)(24454002)(199003)(65956001)(47776003)(106466001)(498600001)(105606002)(31686004)(575784001)(356003)(68736007)(85426001)(50466002)(189998001)(86362001)(81156014)(305945005)(81166006)(2906002)(7416002)(4326008)(8936002)(36756003)(53936002)(2950100002)(65826007)(229853002)(5660300001)(65806001)(8676002)(31696002)(15650500001)(6246003)(64126003)(316002)(83506002)(76176999)(104016004)(54906003)(23746002)(58126008)(97736004)(50986999)(110136005)(53546010)(230700001)(77096006)(33646002)(54356999)(8656006)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2354; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD006; 1:osScaef9rU3bPFnFhv5JNDuP/xrUiSUtXvkiw6rHa7YZDlBL8/6bIiV1/JGcypyUaLyaNVD9p5iAOCzv3lDeM6ta881ll39R0mytAvSqVaA5nfqizNhwl4faOCO2clV7 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a5d21a5c-f73d-4f83-f4ef-08d51b6607e8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199); SRVR:BN3PR03MB2354; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2354; 3:1PzzhGEejDsjAW2TKzIpEhB42K6Yka0A+8HlXfcpssV/wcc9CVcWA/ur3x9X/m04kgi9ikoC+Z7wN1ixggNcl5aqPTEcy8+YP0aHnWmLcfHrHqfj8u6cRfUaWXWiSSvjIkSD8ljgYBBiK03SyQWqM5UNL1Msy8eVyr0GdJvwEzO7y+Ir8geUDYmgPQ+5tqrHrLOI0lNSHJ8BGmVeE/F1wBKOzNys7xhNCISNQ1MONE37WFvriiKE4ytTMEZxx4npCIbgBZk0QmyLsZtFpdAK9iotnrtQ2mvu26Vt6ASl/Es9/L+lhUtcFxsF5Rv60WIRxq93MevaRU7Kk/5JxrQH37uI05fnPWedI7S6JE869K8=; 25:9tmsq4tYRAQQHLovbBltgnBLCkq4dPiaVuPUBTl284WMiCapB9k4tpEfrW5zBaxUlfqa5Gt7lztig9Y7Mx//3QrpmTdZN1zB8ZAzeh8A0YBGHACzb4HR+tQAHrCVqqvNKQXIuHKfGQ+uNwDuwwaimjKprUqeEa6n/qEFXt7m49uwr/RBqvFW6TqpHtcXBu+JWTRuKlkL3easyacceHlaC/2fbihqYDd9YCSAoDA2t+k3XXed2XHBd8r9T9s/1cnQPNT73vdRZOdMLh8uVkmlUiWZgLJWau0/oRxUXH2Eatz02Pm4Fnf3+qU0sz02f+Hwmo4lU1GGaafP0TuqVyMZeQ== X-MS-TrafficTypeDiagnostic: BN3PR03MB2354: X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2354; 31:2t4gwjSt+ZboGVhuMniYGAgi4xRs6XKKje8xDq7FnIXhvzsVcKF5EI2/hewnN1u0IqkGxroKDBPjH2ed8I8kxgtDyCM5i8xlSGNEWsP5uYKdxRAeUiPOdE4c8dCnJ+QSXJSrGWsFU4baUGwcc8y6s2PXgHtnHXS9xjsFG7Oxpdo68opbKODucwXyIlOJ7dr3wM87rD4HB3t6USURgDk+OuAv6p9Q3P6qvXD3Cbt1Qeo=; 4:peu1FKg6sAS9UNM7aSvbGMo6XV5nGNI0uCkOTlosqGaerxo96S2fIm5qbu44AkIz8lUS6BfDxIi77nQGxHbjXTyma5/R2z8/dKj+1MjUTEHOwAKtgPMsYKd16tNAIaXKmiWoNl8vi0qghwWjTEilBUU623SbTOy97AI1mTJFe1dWZIS3efiU+ERN+25ViBbkMi1NpP4yYose9ytn6NtxORifYnseRbe5kd8wVguunMTM1PJE8stLRqu+CAH5yWbtERTwDGGuTk8u/+YnUFQShp6DPha89P9adyLGJaZ6KuVGnzqS93GT1hKEVM/Sq9tcUSoCGPeis8U7Jqtyss2wzYNegG0kWwD6oJv5gMYCdNSmCCi7wnZNF26W3Rb9SDbj 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)(5005006)(8121501046)(3231020)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123565025)(20161123563025)(20161123561025)(20161123559100)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123556025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR03MB2354; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR03MB2354; X-Forefront-PRVS: 0471B73328 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN3PR03MB2354; 23:AJOdHtQQbg3OpftAE3tWuqEQ3lVmZgu6PfCpL?= =?Windows-1252?Q?TLnnzvG/3SU5K0gRtTXL+mQJuuHxMKR/aFp80cFCLilO1Ett1lMAAErp?= =?Windows-1252?Q?dxKvISFEhdynFBHNyBGRgRihYhKRJg4ixvy3n73aHACK2aU+O3uwmYhA?= =?Windows-1252?Q?5Vbo9HiKsWqqWWpHERKtCEj4FFCPOzHjVgyfF2/lwYDpwaHRACei5NAZ?= =?Windows-1252?Q?/WqEOjxnxgqDIPTd/b7m6HcRcJ1UmEckhSZQ3WgdAMl10nWLlV6IwrIQ?= =?Windows-1252?Q?MWXJJLHZ3KiZWq97FH0qUGoBnK+M2rNAciTlRsyQTpuby2o46XpLaufU?= =?Windows-1252?Q?n8Zso4/AfIb4Ppu5H4ciV22S4bMvW/Sb+m2YJlP5MbO5sD3Hkh7yHrdW?= =?Windows-1252?Q?D4oMX0aCBb84+hgz5v83xCx5dhE/FbHH2dRA6GWK6EO4w6i7AlyoOTyl?= =?Windows-1252?Q?KyopD2JL2++WeFG9SnLuwiqipTURw2PH6qgVn9glo64Nq/VmJex7rCIJ?= =?Windows-1252?Q?APehnmnR/ihTUOZSPpwl6yP+TQN70bA0FeQRtnbMy3TB5oaPHwys21ND?= =?Windows-1252?Q?q6ooPSM2eWjuBmnqvfICBIVSiQ8pExeILpeEjBrL35JC4gloY4mjLq01?= =?Windows-1252?Q?TRxHdVtX1+G3Db4LKHSYhODHQDgkUrhJhRtAQaTSt4mPWsfeNR5cK3o8?= =?Windows-1252?Q?NQtPPkyepxcVaQUuq3jpY+RzdCUyDPq3eS6GOaRo4YZFs2P735ZCjoBs?= =?Windows-1252?Q?yy5/4ApkVgInHU0NM3IB5BBAWZpnrGWOFl3QoZ5l5Db+f6ZNaXGb3IJE?= =?Windows-1252?Q?SIQrl/w2ewsgG16zcK2/ncw8EE8+A+uqX1hKCeY6BtQndyNpBNJlNhKf?= =?Windows-1252?Q?3ArXuAGq5blN7Wcttv2utHfpGjJVMnzNmnzQDF5luFdwUr0Ef0gH4g3j?= =?Windows-1252?Q?sEULZqacX5iNnvBnKGXK0BUdCBGUntGww7iyQ8qP8Zd1hkCIQvLzD3Oi?= =?Windows-1252?Q?vk4BocaL1kxjLxQYl4+UimYm0FHzpKfzaWdJwlIGM+p6I1BF+HWaMQaV?= =?Windows-1252?Q?hG/aX2t0OOGqR7dh7ffXshOcdHxNkvTgXXGPdt3sv/XqWTOr+ND9Y0xk?= =?Windows-1252?Q?QkNgkMVXF/1DGOK2u47/KJUZGCTQp8LnWe4EF3/eqN83EQRmTkD/oUEB?= =?Windows-1252?Q?zm6U3QPeLquN03hfBNJBpFO1b865Zv0w3tpye9HYBBPlNJNqWoG6Dsy1?= =?Windows-1252?Q?sKPACZlOe1KzChzJCCbEqwuE9g+p+FdzkdfR52AnME7PfZu0wH8tHbRQ?= =?Windows-1252?Q?O1LK2jwaioC/MlkrvSFkXXpKB7NF3nomd7c0OqvZ6jOFUfc8RNnPp2Vj?= =?Windows-1252?Q?45IBRMJjMfBi+IjMm5mvIpYON9Fff6/fmP85h/06AGHiY6HfT71kNcBi?= =?Windows-1252?Q?DGNs++B73KKe7WyCX/yiJ6SYZBConBcKJm+e61tJq6OPVHPjuZCh3spS?= =?Windows-1252?Q?OYoSBIRQM/4CexdLhJti0xCbL5sS9G5zatBYynddVAKLRwL8lkvfe7yO?= =?Windows-1252?Q?+utJw4DvGeC7V2e1MdvPG/sc3mJQ+8+wNe2StMUW42aL09lbktapwLfi?= =?Windows-1252?Q?JCv3BNPKhJfmswT5fADwkLfyw32AlSDAYYW7Q4oLL0LKOIgqgcEIHf3q?= =?Windows-1252?Q?PMvInrHqA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2354; 6:pBKZJNKu+cok3kzAUfGesLR4WQQKherCT9o3MDNA17MC2GYr4lmdTtNOgMJxZ3NhwKz1B5cmQR4/5NavBA06EaOVHGpn+llnYqwPliBwJbzbnJ+wLIgC9hPzIBj8u8dajyczzYRghbiutx8OntV4ZkI/bFDNBnmYPQpjmR7J47F48H26WHJ+9/8cCsyCcmKgN3mIeiM0aoYOjtxlVl5LhW9RCEC/c2V8w3t1eIVFI2hXSsWVcsYUADKFtPraPa84jRSwFVDzxn4Ocj3zuERWOi19N+ebsx7JVbCN8sZVDDRDooQT2EsgTK2jzeFcS1lZ3zuu1kcD8XB88jS0x0B2aA==; 5:2Z/xVxtXaJdAMJj8YxMk09CfIqbYFullOgat6RdKPb9lA24Q5X97f0JJreR1qOOQkAB+o4X/9OQ+Nac6B2bNYKHfb6ivwhGR3ig0nQ58Pu5Yjp6uxqmRPYtxDQ/801grvC6aBiFxIAgXOg0Ce8zWWQ==; 24:6LULDPcIIqTaQjNC8zpm3Y/Y6ew8fjdv9aZB9V2NSAlU548/B587u8l3J26rTHR1Cw7CIH3/UJv0dprSQPlBetMOFzc7ieu129h9GapqjvQ=; 7:bnMIqcHDt02fXTRgRHJrXKWK9C0dQEvOevff826N3eDIFFhS15H9IyPIYPFpep5afNo88o9pdC2u5e2I7r9gjELe4BVd1a0SduC35bXAaeYVyzJlYLbzMCadc98ABaF29OzcsX+NrB/Rp6KmP2QPHBA2dVPfKfnFgD0kZyPvEwAGAWSXMpWvP4MznieupFNvrvGTZPcSfTJjbEW9KMtUVwqs7edx7XgjyiZPl2QHSQY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2017 05:05:37.4086 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a5d21a5c-f73d-4f83-f4ef-08d51b6607e8 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: BN3PR03MB2354 Subject: Re: [dpdk-dev] [PATCH v5 06/11] 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: Wed, 25 Oct 2017 05:05:39 -0000 On 10/24/2017 7:45 PM, Akhil Goyal wrote: > 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 | 7 +++++++ > lib/librte_ether/rte_ethdev.h | 8 ++++++++ > lib/librte_ether/rte_ethdev_version.map | 1 + > 3 files changed, 16 insertions(+) > > diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c > index 0b1e928..a3b0e4e 100644 > --- a/lib/librte_ether/rte_ethdev.c > +++ b/lib/librte_ether/rte_ethdev.c > @@ -301,6 +301,13 @@ 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); > + return rte_eth_devices[port_id].security_ctx; > +} > + > uint16_t > rte_eth_dev_count(void) > { > diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h > index b773589..119f7fc 100644 > --- a/lib/librte_ether/rte_ethdev.h > +++ b/lib/librte_ether/rte_ethdev.h > @@ -180,6 +180,8 @@ extern "C" { > #include > #include > #include > +#include > + > #include "rte_ether.h" > #include "rte_eth_ctrl.h" > #include "rte_dev_info.h" > @@ -963,6 +965,7 @@ struct rte_eth_conf { > #define DEV_RX_OFFLOAD_CRC_STRIP 0x00001000 > #define DEV_RX_OFFLOAD_SCATTER 0x00002000 > #define DEV_RX_OFFLOAD_TIMESTAMP 0x00004000 > +#define DEV_RX_OFFLOAD_SECURITY 0x00008000 > #define DEV_RX_OFFLOAD_CHECKSUM (DEV_RX_OFFLOAD_IPV4_CKSUM | \ > DEV_RX_OFFLOAD_UDP_CKSUM | \ > DEV_RX_OFFLOAD_TCP_CKSUM) > @@ -998,6 +1001,7 @@ struct rte_eth_conf { > * When set application must guarantee that per-queue all mbufs comes from > * the same mempool and has refcnt = 1. > */ > +#define DEV_TX_OFFLOAD_SECURITY 0x00020000 > > struct rte_pci_device; > > @@ -1741,8 +1745,12 @@ struct rte_eth_dev { > */ > struct rte_eth_rxtx_callback *pre_tx_burst_cbs[RTE_MAX_QUEUES_PER_PORT]; > enum rte_eth_dev_state state; /**< Flag indicating the port state */ > + void *security_ctx; /**< Context for security ops */ > } __rte_cache_aligned; > > +void * > +rte_eth_dev_get_sec_ctx(uint8_t port_id); > + > struct rte_eth_dev_sriov { > uint8_t active; /**< SRIOV is active with 16, 32 or 64 pools */ > uint8_t nb_q_per_pool; /**< rx queue number per pool */ > diff --git a/lib/librte_ether/rte_ethdev_version.map b/lib/librte_ether/rte_ethdev_version.map > index 57d9b54..e9681ac 100644 > --- a/lib/librte_ether/rte_ethdev_version.map > +++ b/lib/librte_ether/rte_ethdev_version.map > @@ -191,6 +191,7 @@ DPDK_17.08 { > DPDK_17.11 { > global: > > + rte_eth_dev_get_sec_ctx; > rte_eth_dev_pool_ops_supported; > rte_eth_dev_reset; > rte_flow_error_set; > Acked-by: Hemant Agrawal