From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0070.outbound.protection.outlook.com [104.47.41.70]) by dpdk.org (Postfix) with ESMTP id A5C23160 for ; Mon, 18 Dec 2017 08:34:47 +0100 (CET) Received: from CY4PR03CA0024.namprd03.prod.outlook.com (10.168.162.34) by BN6PR03MB2689.namprd03.prod.outlook.com (10.173.144.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Mon, 18 Dec 2017 07:34:46 +0000 Received: from BN1AFFO11FD025.protection.gbl (2a01:111:f400:7c10::136) by CY4PR03CA0024.outlook.office365.com (2603:10b6:903:33::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.323.15 via Frontend Transport; Mon, 18 Dec 2017 07:34:46 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; caviumnetworks.com; dkim=none (message not signed) header.d=none; caviumnetworks.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 BN1AFFO11FD025.mail.protection.outlook.com (10.58.52.85) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.302.6 via Frontend Transport; Mon, 18 Dec 2017 07:34:34 +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 vBI7Yg65022447; Mon, 18 Dec 2017 00:34:42 -0700 To: Anoob Joseph , Declan Doherty , Radu Nicolau , Sergio Gonzalez Monroy CC: Jerin Jacob , Narayana Prasad , References: <1513327396-22178-1-git-send-email-anoob.joseph@caviumnetworks.com> <1513581305-26202-1-git-send-email-anoob.joseph@caviumnetworks.com> <1513581305-26202-2-git-send-email-anoob.joseph@caviumnetworks.com> From: Akhil Goyal Message-ID: <149067a7-2579-cd53-572d-f27157492c8e@nxp.com> Date: Mon, 18 Dec 2017 13:04:41 +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: <1513581305-26202-2-git-send-email-anoob.joseph@caviumnetworks.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131580560749137148; (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)(396003)(39860400002)(39380400002)(376002)(346002)(2980300002)(1109001)(1110001)(339900001)(24454002)(199004)(189003)(23676004)(31696002)(54906003)(230700001)(36756003)(76176011)(2906002)(8936002)(104016004)(316002)(86362001)(2486003)(53936002)(67846002)(59450400001)(110136005)(58126008)(53546011)(68736007)(498600001)(47776003)(64126003)(229853002)(65956001)(4326008)(106466001)(105606002)(15650500001)(305945005)(31686004)(50466002)(356003)(2950100002)(83506002)(77096006)(8676002)(81156014)(6246003)(65826007)(5660300001)(81166006)(97736004)(85426001)(65806001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2689; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD025; 1:Fph8O0aHKrhktiOw1bvfloMeSVKVppuSKGF50GZTZ+9oLmdtimaNGaO5vXMRhB5GiHPjDZ6+UvsQQ8ztymUVZi77+Bih+IlAmo+EttNs7Wbx6MnjNV7szfGIMRKpPUyl X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1a2b77b6-d911-4497-8cfc-08d545e9c943 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4628075)(201703131517081)(2017052603307); SRVR:BN6PR03MB2689; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 3:il6EN7oHerDJp0Epyl55vp4NFYryCpqEp098Atni6Hit5sumo8BgujNlRYPlKzp4uoqjyyiOax/XOEvDf8jrbkXVwAaVuYKW6jLEsJW1AZX5CmtZTVfF8uH1bctqiQ7etw41d0RITYeeYcvk/Kg3rnGNcuVtHbG1r3/hU1HZ1GXF9Y56ZK8GO92LPoynLebqh5QPZVZ5AjJKTMCHdd0aRdeTNyo23gvs0oqr717k6WoXCLL+lQML3nCcM0efb41Wm8hZkeZREWNc1jc4XcGL3FTgocBybSpkBDSCjs4vMZSaBCEyf0R3PkHQAeiCAYrbGx1/3OiUJXYlTVlPkGpIwkdAtM89uDA6ulufmR34P18=; 25:NsISFBpvt+JLS4tWXDCzR2IsJaE1pEt1qaMpuIjCQQ3Dxv53oMSzybZovn4+5txR735OQTc5Ds4NfHU67Z2L41ce3ZyYWE7SMn8/mqwyKY1w3OUMuPI90INTgOqMLHCCze0bMWzJUc7W59cWw/bVhbt/FZSx8jAjs9X4UxvKHcNIIrJKwo8lF5tKNs4V7v/AMyX471IiQtVCbboCzmCvW8WyMQt7XRnH4STvd3RJ0yh1KgNDMA1uQo1F+xJuNZYPq2O+h+3WmD5qQWFtV/x948XvIQAqgbJxMSdmpyp4ggsZjgAsoWL5CEg5FoEbsxsswvb+5vcg7jsQ+iYNQxKaDQ== X-MS-TrafficTypeDiagnostic: BN6PR03MB2689: X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 31:MvLmXPpjnUqudS22nmGSwvfwPfc9s5oiOg/UM4QDJ5LufBrs5LnuolGL/jWlQOh6frEAJNtE958Lb+2nFE2V4C7nR5GhMWZtJLPiBic16RZZj8O7yTux39fYL8bH9HNAt6LDJhdknS2IHHAeCpCv9vKmXZtJ3Tz2WmReEqXeJaaulMbi4EAWHlLfvoZ5CVKQ8BfwWiY9hlXiE/4b9w7FjJoQIDh4FRvgYm4k+eDKy6E=; 4:3oGlQne224lyYXR8rXfNoccUuHzvx/bNmPoVqX1lmWaYoTywmzx3xrSiCUVOI+6s3GkzyuWslKfbwAqAP4maPt+7s4zLLW5SFacAil2HzKizHOH1fmrxXuCCP274sH6UvOLukwdCcJU0ui8z85NHT9V36Om4XV48Z2mtY6alCJCPR3MoY2ERIUFjar01N8vK6vBsZTxOsLowv6D+F7zYpToJaeeErrYjYjlUAINJRy2eRuRhjXlLe0+cedlkz2BL+AhU26ZkusNEptUtbRrq8CcIl7J2AYPlIHOzP1Vq5pSPcg0950WPpn5CNAjTMarDtMzrULYk5AlsMpBIfkWmcU+Hb9R97OYDEUzPKZpobWE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231023)(6055026)(6096035)(20161123561025)(20161123559100)(20161123565025)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123556025)(201708071742011); SRVR:BN6PR03MB2689; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN6PR03MB2689; X-Forefront-PRVS: 0525BB0ADF X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjAzTUIyNjg5OzIzOnJYZldvRERIZldVMys5WHFCQWZ3L092Vm1U?= =?utf-8?B?TmdETThyenFscXoveSswemtEbGxHdWdzYnpRYk50UDN0ZmVxVURISlBtejJ1?= =?utf-8?B?NE5RSm5VWWU3STk3NithdE0zNUl6TEd2cW1QOUhHWENPTGNRY2VMTlVMRHdY?= =?utf-8?B?NHV4RmFLN1o5d01zUGY0WXhVOVdkTjJEWlVpd2FXUD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SE1SzhYmtLZN/lhQrNr/U25PicdgljmFACtpXP6sAfQRgcOVne6Dv2VpF4jezr07zmdwxMJq598XiBQblUiN0JXfx28jL6VjmUy5RKCX8mYxxkqewBB6oWa7tcTT6xEU5tCpNT9mfEBsQ3vC9tHawgHXwoXbay4ae5WxEJNhxq8MoBRjperyVh+CRQ=; 5:6iBi29BI4kjh5GAbIwxBLufAle8sIy198k27gfBaqIcBksb9n8Y5U5iSz+2eTZnT1icL8Blz0lPDnHTFIVbPZTuFwQcLcs4YLMHOhjlNehGcKDUuATjmRplOSh/gpy+IBWOZjvkk+cvmv9mABMZ0YlEDH5chd7de6JaUihInY4A=; 24:AntfdwPe8bNf4vSAFfWVU3Af1Iy+ctIivmZ76BSY7zSaYSt+/nUDeKovsuxUMf9r0b82Dix7XaqljnE5NOxGhJ+p+wWpJf78q3i5NSmxD3M=; 7:+m5/PNLPq8pod+yel88CYC59YPd20hgRVFOHoh4QnSYHg7CE73sNrZa0sknr5XlnQU2Vl97m5Vo2a/XfmY35UcByhSRV2AOS5N+AseaZcWzzASmw1Eh7Ud31+zAdMbpTuJi+n8cN+SLbuWhk8zzUNydRnPldQr7cNqqX0CPJjBTvvEffZvUAR0i1xtfV6fqyEezfdWZQdTVCQAxE5URCjJx0ljap6iEoWYs/TbI+AcDZRfMlJ2hIx6fsTgo9Ld2N SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2017 07:34:34.7109 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1a2b77b6-d911-4497-8cfc-08d545e9c943 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: BN6PR03MB2689 Subject: Re: [dpdk-dev] [PATCH v6 1/2] lib/security: add support for get userdata 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: Mon, 18 Dec 2017 07:34:48 -0000 On 12/18/2017 12:45 PM, Anoob Joseph wrote: > In case of inline protocol processed ingress traffic, the packet may not > have enough information to determine the security parameters with which > the packet was processed. In such cases, application could get metadata > from the packet which could be used to identify the security parameters > with which the packet was processed. > > Application could register "userdata" with the security session, and > this could be retrieved from the metadata of inline processed packets. > The metadata returned by "rte_security_get_pkt_metadata()" will be > device specific. Also the driver is expected to return the application > registered "userdata" as is, without any modifications. > > Signed-off-by: Anoob Joseph > --- > v6: > * The file *_version.map needs APIs to be in alphabetical order. Fixed this > for the new API added. > > v5: > * No change > > v4: > * Documented the usage of rte_mbuf.udata64 field by security library > * Removed (rte_security_get_pkt_metadata() API as the udata64 field itself > will have device-specific metadata, and could be directly used > > v3: > * Replaced 64 bit metadata in conf with (void *)userdata > * The API(rte_security_get_pkt_metadata) would return void * instead of > uint64_t > > v2: > * Replaced get_session and get_cookie APIs with get_pkt_metadata API > > doc/guides/prog_guide/rte_security.rst | 22 +++++++++++++++++++++- > lib/librte_security/rte_security.c | 12 ++++++++++++ > lib/librte_security/rte_security.h | 20 ++++++++++++++++++++ > lib/librte_security/rte_security_driver.h | 18 ++++++++++++++++++ > lib/librte_security/rte_security_version.map | 1 + > 5 files changed, 72 insertions(+), 1 deletion(-) > library Patch Acked-by: Akhil Goyal