From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0073.outbound.protection.outlook.com [104.47.32.73]) by dpdk.org (Postfix) with ESMTP id 659001B735 for ; Tue, 3 Apr 2018 16:28:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=CV52aQqmMgaMlh6Os6o67lOfiWIWwtmzXnECuzhvNsM=; b=gh1mxtC1KkpXA7JogozLzIrSRJu8OTTkkASNBeIRjLuHUjlYKifzOOMRH6ogvG18Eq6o30B4pH2HyzLDj4mMObiva+s/Becv7/cNgKEm14NcEX/6qd5nfVWya3jFad2nA2QTa9zdoLK2leeRPiLFxpeRWQNDmsNZAF3iDH/Ltc8= Received: from hyd1ajoseph-dt.caveonetworks.com (115.113.156.2) by SN2PR0701MB1069.namprd07.prod.outlook.com (2a01:111:e400:3420::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Tue, 3 Apr 2018 14:28:24 +0000 To: Akhil Goyal , Declan Doherty , Radu Nicolau Cc: Jerin Jacob , Narayana Prasad , Nelio Laranjeiro , dev@dpdk.org, Thomas Monjalon , Wenzhuo Lu , Jingjing Wu References: <1519896103-32479-1-git-send-email-anoob.joseph@caviumnetworks.com> <1521630685-5179-1-git-send-email-anoob.joseph@caviumnetworks.com> <1521630685-5179-4-git-send-email-anoob.joseph@caviumnetworks.com> From: Anoob Joseph Message-ID: <4b38b4cf-0135-4dbd-0cf0-0fc4e208bf9c@caviumnetworks.com> Date: Tue, 3 Apr 2018 19:58:08 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1521630685-5179-4-git-send-email-anoob.joseph@caviumnetworks.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BM1PR0101CA0010.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::20) To SN2PR0701MB1069.namprd07.prod.outlook.com (2a01:111:e400:3420::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 51b3f3a6-edeb-4d30-e23e-08d5996f2a92 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:SN2PR0701MB1069; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1069; 3:b5PQNi+0iE8snWNg+4UKsKuZTZGEh/7/ZRNREaKKT2+3OEQSlhd6LdTauBQJo7d4gFAB438Za2kzt8pMompvHR2+DK5u21hzZUIEGci+8GVNZmD8C94nDa0vGsOXJeXSx9kQV/liZ8ngfG3WawAWWU/th6X5DWFKkNYnYxfwXsYGax3OSbSn5KxmyQTDFBHFZ9DlfnzRPzszr/VP+y42+md5IM7OVxrsPqUYfMAf97fbK4RR0xC94GXsSYU771s3; 25:cdhiKNpPgW1/d4CuRDOAMuZZ94r7i4xo8MnWdlXXVQ8Db3BBuofhcUNTFMqFDaR1gLxDDpVDr9rJUAVtWUPcRjFDLq1oyRZd6nse9cfxAcbQVUR+SLIg99xZ4d4e/inp+A8Tyuf/j/thE4F1aVLM+2m3MrR/mcZXf2JAVi8YZMvDBwlbbwqK664oDqZI/I0gY0MGsjxI/98G2xvgeW7uNEPaGVroZ6zFfn/CUARtKc7qol/8v4ZdO2qsaAGufFbKKfBkHF/QCij9+ktgXJ8/QbxteQPxiKQOzC08+kiXzcioqdJFDqBAg3a/p2EdiVPI1ukV2ZIDcOk3GT/Qn53/gA==; 31:8dunO5fn13VitEtmr4m4rL7Egxdn6tZjZDBZRWOWleqpq/2HKJsxaFn7g4Bx0hE+2s+/629jb6Dw/zhf+otPEXIey91TyKcb6cR4LJtZhTSuLuAMYMQeXQ9r6twodAdV+CgxfuKTKSG5ExEPXLV2LrzSzSx2xdgHrIZCrjrNwTGnJMZ/En8yHqXR++ThJoh1AoRkZF528YsrV1CJCLth/IeSsvTKLIRI8K7Bt/i814Q= X-MS-TrafficTypeDiagnostic: SN2PR0701MB1069: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1069; 20:A840kmoHF82f48PuJOv5K4DgqGJ7gJUGg+uxoWQJn6diT8004jQzlH1Ge4Avd/dF9uFQkTkPyYSB+xd6Cx/mHg6c9JrpIPuNgvkPRtx5zQehEmscRIB+h00nU4BKyeUHAsXgcF4u1unHPyyOgQG9dYoAoC4T0LZFX6C97cncKAryvaornmEnRd2aDaDugpnNI8TqRhl/YvgC4MK8priE0oDWiagNwB5BkWB4Y8ORyd0l5qZvgg9OB0esgQCjkCEnQ9dgx7GcGPRY93ZfqKOIJ7sc41V2JEIdAE3UjyYxZET8stFV4E4jfAcm/qvIQq2ZTMEkK8O3WGrfrbriTOEbpDEzLlJeYfYYix5FETGbvJLzalGRX9S7pHY8WbA1rZkI58ySb0ldZaZ9eo069HBSsWx8Bb/a9VWSz4xqr5HnJBAGswjde47kt0/1MgCmEjnfMenuGouFeXf2itQ6VduVrqxA0lMabie3FL/Es8AhBloSfz3sjNpKa/pznELB1tXaitb+cUle3oIVBnz029RNIJKReC/2GpWHWjEq43TdBF/scy5Y81M6MopagwaHgobm/poTVCMG4rtqyKhbxCtO8mZYxb+BG9XXCBmZT+UYgQU=; 4:rMX4484r+Cop1vEQOadcszg49ZE2lMmZ6I3X3na4E3if+JR2yXVfx+UdE5WUabTbx6QhCEV5/VExkucUUQmBWf4c8SWKgMyDeqBcZ2ykYzzR12+yPl0BusmKKXFj6O5Pvz+YtKGxSNJkYu6xyI5Zd6hF3lW3lMWci+IDUlcbqD8ijIh/FOCZk7k9r1iiuog1KIDse29b4b2Z8uQYv35/tmwXpeiKPGtjwYzBMmehzTvpVTXeo5de7v/M7+w7Q4SNNRcYGKK/034LvZNavRS/5jrWtu+OXm4+wkYKSwAImhQ1tG4/n+Kntzyo/rz644cH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(10201501046)(3002001)(93006095)(6041310)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:SN2PR0701MB1069; BCL:0; PCL:0; RULEID:; SRVR:SN2PR0701MB1069; X-Forefront-PRVS: 0631F0BC3D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(366004)(39380400002)(376002)(39850400004)(396003)(189003)(199004)(31686004)(53416004)(956004)(65826007)(11346002)(5660300001)(7736002)(2616005)(305945005)(4326008)(25786009)(8936002)(446003)(106356001)(81156014)(8676002)(81166006)(105586002)(6666003)(229853002)(36756003)(2906002)(66066001)(6486002)(72206003)(6246003)(478600001)(68736007)(65956001)(15650500001)(65806001)(47776003)(26005)(16526019)(55236004)(186003)(42882007)(52146003)(67846002)(52116002)(76176011)(2486003)(23676004)(8656006)(6116002)(3846002)(386003)(59450400001)(64126003)(69596002)(50466002)(53546011)(6506007)(54906003)(316002)(31696002)(486005)(58126008)(230700001)(97736004)(110136005)(486005)(476003)(53936002)(6512007); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0701MB1069; H:hyd1ajoseph-dt.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjJQUj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ci9URiAnPcdTzlYg/H2GMNsS8KJUTPrm7O7+9FbJMiZPIqZ2xJe+ci6MkKkkmOvd0jnOXPmUQSvlBD84SLKRrPLMQjMuH01VioGWQKxDKS2PmPnN81fh7Fb5I5if7nRmZbQ==; 5:PeDsfKBCozal804BdxtWwn2xTwj2Q1lvb1vinXZVfJcOCJyAL1MwIGOdUyHEnay3FPlcE0obmo7QaSbDCk6V9GuQUCibxpbPF7QawzgpIJLhRhkaT3ZORHkhYwrk916Tet5IlHU+fHg9CDm3Ocu8TxFxJtsC/Qu0cH3BWg14AW8=; 24:MZSGCWMhHlFpscDZp/sZkx1raJnR9xJ4h2rFCuUteakxrdNz98P92lxFcli5gcLvq7Jazjkxr+j17K2VfGlWzXb+vvyFioiDh30NrU22XUY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1069; 7:Hisa9LfxFhrYSeGrk8WkuKKtrigspWc7PRCHWBlbBU0ilpex/KVv7DEtvV+GmX3ZLqcgiDa6efdjauKPnFNzrjDdMjbcPdBi+ru5SN5pP5yypjgU2RXyLjklZf5cxyHGLphojn5F12blP8x65qyjc7YFhMZCv7STocmOCm4ulnguc+R1fdZJxI2YKmXu+YBM5aF1JxtvVMZcjPeWR1SE3Z0Yzse1Jdkk9TR7Cd/KqRg7icvgL7Y/O3cEivaYEoE6 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2018 14:28:24.2951 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 51b3f3a6-edeb-4d30-e23e-08d5996f2a92 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR0701MB1069 Subject: Re: [dpdk-dev] [PATCH v3 3/5] lib/security: extend userdata for IPsec events 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: Tue, 03 Apr 2018 14:28:29 -0000 Adding maintainers of testpmd & lib/ethdev Thanks, Anoob On 21/03/18 16:41, Anoob Joseph wrote: > Extending 'userdata' to be used for IPsec events too. > > IPsec events would have some metadata which would uniquely identify the > security session for which the event is raised. But application would > need some construct which it can understand. The 'userdata' solves a > similar problem for inline processed inbound traffic. Updating the > documentation to extend the usage of 'userdata'. > > Signed-off-by: Anoob Joseph > --- > v3: > * No change > > v2: > * No change > > lib/librte_security/rte_security.h | 14 ++++++++------ > lib/librte_security/rte_security_driver.h | 6 +++--- > 2 files changed, 11 insertions(+), 9 deletions(-) > > diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h > index ca1e912..afa2861 100644 > --- a/lib/librte_security/rte_security.h > +++ b/lib/librte_security/rte_security.h > @@ -364,15 +364,17 @@ rte_security_set_pkt_metadata(struct rte_security_ctx *instance, > struct rte_mbuf *mb, void *params); > > /** > - * Get userdata associated with the security session which processed the > - * packet. This userdata would be registered while creating the session, and > - * application can use this to identify the SA etc. Device-specific metadata > - * in the mbuf would be used for this. > + * Get userdata associated with the security session. Device specific metadata > + * provided would be used to uniquely identify the security session being > + * referred to. This userdata would be registered while creating the session, > + * and application can use this to identify the SA etc. > * > - * This is valid only for inline processed ingress packets. > + * Device specific metadata would be set in mbuf for inline processed inbound > + * packets. In addition, the same metadata would be set for IPsec events > + * reported by rte_eth_event framework. > * > * @param instance security instance > - * @param md device-specific metadata set in mbuf > + * @param md device-specific metadata > * > * @return > * - On success, userdata > diff --git a/lib/librte_security/rte_security_driver.h b/lib/librte_security/rte_security_driver.h > index 4623904..0583f88 100644 > --- a/lib/librte_security/rte_security_driver.h > +++ b/lib/librte_security/rte_security_driver.h > @@ -134,9 +134,9 @@ typedef int (*security_set_pkt_metadata_t)(void *device, > void *params); > > /** > - * Get application specific userdata associated with the security session which > - * processed the packet. This would be retrieved using the metadata obtained > - * from packet. > + * Get application specific userdata associated with the security session. > + * Device specific metadata provided would be used to uniquely identify > + * the security session being referred to. > * > * @param device Crypto/eth device pointer > * @param md Metadata