From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0089.outbound.protection.outlook.com [104.47.41.89]) by dpdk.org (Postfix) with ESMTP id 9882D11D4 for ; Mon, 22 Jan 2018 14:11:33 +0100 (CET) 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=wJ56EnAIiSmz0XsSOIuhsS/EamblV7oinIqFAtjpHwQ=; b=HdVnpLuVq/mn2v1k2ngDIB4BcLMWnpt5rLj4WVMVhvEnTtdm6V6vWcHY//S4jwPWjOntfob9SvNWt5IuA1M4KQF9Dqy7qfZ8GBO1EG1n7VkMeOZHjgrZ4rzUeOREU1/PDQ3kfBDh7G0F9/yjYN95HS7X7qK35ZPWJGrzltYJkCc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com (115.113.156.2) by SN2PR0701MB1071.namprd07.prod.outlook.com (2a01:111:e400:341f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Mon, 22 Jan 2018 13:11:26 +0000 From: Anoob Joseph To: Akhil Goyal , Declan Doherty , Radu Nicolau , Sergio Gonzalez Monroy Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , Nelio Laranjeiro , dev@dpdk.org Date: Mon, 22 Jan 2018 13:11:05 +0000 Message-Id: <1516626668-9031-1-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: MWHPR14CA0068.namprd14.prod.outlook.com (2603:10b6:300:81::30) To SN2PR0701MB1071.namprd07.prod.outlook.com (2a01:111:e400:341f::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 495bf8cd-31a7-438c-3576-08d56199a6cf X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534125)(4602075)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020); SRVR:SN2PR0701MB1071; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 3:eWI2vYpgrecFT9qKEjK253C3s73uTigfAZxUHIGCUqA5NLSqJlrbpokFUVSW65tLXuWqfBs1NXtU4RPA8NKXFE5F1lvKJyotez8mGliCRWHOAzpN5GCWx3sWl1DJm23hmTkwoUIA5MGZWVIFyv8wg8gjXkSb/WDcc9UBHhtiCmdryk1PocIXuQBT8O5n6yTOM2Z09XAWcUNKA1XI/7+XBEVjqQjIb28nsPOnVfJaq0fDfPxdzFKryNn/7vsSUIJ+; 25:SatpmNATJCFR+XZfoJBiBmHTpzhl7AX48wGOeQ+VT5z14OimzXKLIAKvbDVZBC8pjJbfK6KTFCLs4SEKCwIOT9hUJ5zgsUerphucsKtJOVWtaGF8wt/LoaamWBus/zDu3KiEtHDO7s7pZaK1L4htMF4DuMvORcG/Th2kZkCjlHMmVFouTroV0/T8ebROJ4OL8M2SAUvF06199lBB2cQWW1aj5KNzwK7WSvxo9WG/adbzCN8OChV0fmf4b1GutoNBFznsdZcfSZX0ywThkO0LxNceFFy+LHlBgkuX8R9Tq213uuwv4NglPJIoHcY+mOAtedN2cDldkE1W5us37l5k7w==; 31:Sb8R2eCJcf665OonQSDj1hbPdg0QMp7m48iwWNOTudgOxlQoo6YKNROrrG/ttwTNRgde9JwMnYogtuUZ0ve7ON7cgujcJrqoWZBda4jPBnryLi2Ye7nVFYte5dqGAHbNoxGtPPfo7VO9Ov7aa4aUJ5j2q78/gEgC3qMyc6OvNUvgV+Ug+EGURp+yuti/7oPWFo/56zUh6RRK22C+8klzfabunY6chFMD8bRDzlBQXzQ= X-MS-TrafficTypeDiagnostic: SN2PR0701MB1071: X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 20:abYxvNkGk9EZNNQjZrDDUkZgvjObwlBlXGdqsID5d2C/Te+VSQ7Qv+kJRc+RRdwhmT1Kbc6Vog8oGzmIbD1PFtKOzaHcPrS2mKd/ZAqP5fY7Ad1HserdRK1f3OnYU6zlvv/Z0vZO3op94upsppKzCs/0T3iWJTrMtioiOPC+3sxmv032qOlYMtXXSHqNbxaAiE0HWj0ITD9jw0FR7UuYuti2g931dYD/YbWh8YvmuBWZ4W6dXwAubjs1qrkTLHvQ6xKlJj9h95QLNilQM2NJQy+y50LebWWSze8rHgMbV7Smnl+34PvS2eqHJlOTL8ApK8Ao8rsvny17yrBZo7VwKLNwYJ6HvZr0GyP1Mhuof4A3v6kUCsmVQcJ8lbPoUSWkRDo5YEDYGZFTeNSz9R5We1zaWk/zGRTa5YiWNhT0/T1sJDjYMAZucqZuxRILNr82okYdcCT6L38AQXmh/cyFDJVKrCCwQCHRSD8oT5J7fhB9/lRleJvRAjGHjyF9cMrF8+ammPI6nvLNXn9qDU1EgLQpTjuWQJkrJPDkcp2HAyDpeFWrFKxYoFIjyw1sszbqSkgDFVYzWEphEaWbXc95ZVz8ydEz6vStggfwA0YXtJk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(72170088055959)(192374486261705); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(3231023)(2400081)(944501161)(6041288)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:SN2PR0701MB1071; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN2PR0701MB1071; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 4:9+yJaWIuR/4CQHg9NHt/GllTDX1a4GL4OP3GxQjLX61Q2FlROGHpEIF7rW1UBKsSomgUNEcnj8OJyvTX3daljhytSC3jqRbIRHVoZqvdYBHlUTZXU2zmMZQPrt0O3Pjbyg+GObpRESiT3P7PpOhlaTvoChmbpzfuuoB70kTmLKOi7AZupgH5Eb8BycuSTlOEk8c1MposCIn6ecSk6G2Lrvrfe44TXJE9GF6+NULcAt5IocFvTTvYkylcNSwpWpnm9B1cys5bI5cB0VuMNq3RPOSmGzUi2A806rmZ85TMvxOQn8f9HVVLs6r7pYPhfr+P+Hfo+zxyettI1hRMl7pirEmKLTb4i96XABCkW2qPsvA= X-Forefront-PRVS: 0560A2214D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(376002)(396003)(39850400004)(366004)(346002)(199004)(189003)(6506007)(47776003)(16526018)(69596002)(72206003)(8936002)(8656006)(25786009)(6512007)(3846002)(6116002)(68736007)(53936002)(6486002)(4326008)(386003)(8676002)(66066001)(6666003)(2906002)(55236004)(50466002)(81166006)(36756003)(81156014)(42882006)(110136005)(54906003)(106356001)(16586007)(48376002)(316002)(105586002)(53416004)(478600001)(305945005)(50226002)(7736002)(5660300001)(51416003)(97736004)(52116002)(26005)(59450400001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0701MB1071; H:ajoseph83.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0701MB1071; 23:wDMeU68SuPnJDfQRKQII3BXfHCO9cl8ek5r/X5D?= =?us-ascii?Q?JqqDjsMgBRbORBVF++ESDLq8NXI34eM/ngR4UKPPHsRSv8cn9YlX0A6Fj5OH?= =?us-ascii?Q?Sd077thDU7scDJDH5eNnPQemIs2tyg5RVXfIdTT8v5UU2405G44nF2z452oH?= =?us-ascii?Q?CGYvzwQSNcjd2HGEV95mo2dKsuR2+UV3LQX3VBdZz14KDiJcZ9Z1gwIlhd8a?= =?us-ascii?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fvr0LaH1Py/aAyB SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2018 13:11:26.8031 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 495bf8cd-31a7-438c-3576-08d56199a6cf X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR0701MB1071 Subject: [dpdk-dev] [RFC 0/3] set protocol specific metadata using set_pkt_metadata API 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, 22 Jan 2018 13:11:34 -0000 This series adds support for setting & retrieving per packet protocol specific metadata. This is primarily required by the application to monitor sequence number overflows in inline protocol processing. The feature is added to the existing set_pkt_metadata API. The existing API passes all arguments directly. This series introduces a new structure which could be used to pass all metadata required in such cases. The patch set adds the ability to both set & retrieve such parameters. The idea is to make the application determine the sequence number to be used, where it is supported. If the PMD doesn't support it that way (as in the parameters are maintained by PMD/device), then application could just retrieve the value and see if there is any overflow etc happening. SA expiry/overflow monitoring requires knowing the latest sequence number on an SA. So this change allows that ability - for now for the outbound SA. Anoob Joseph (3): lib/security: set/retrieve per packet protocol metadata net/ixgbe: use structure for passing metadata examples/ipsec-secgw: support for setting seq no drivers/net/ixgbe/ixgbe_ipsec.c | 5 ++- examples/ipsec-secgw/esp.h | 9 +++++ examples/ipsec-secgw/ipsec.c | 42 +++++++++++++++++--- lib/librte_security/rte_security.c | 7 ++-- lib/librte_security/rte_security.h | 66 ++++++++++++++++++++++++++++--- lib/librte_security/rte_security_driver.h | 3 +- 6 files changed, 112 insertions(+), 20 deletions(-) -- 2.7.4