From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0087.outbound.protection.outlook.com [104.47.40.87]) by dpdk.org (Postfix) with ESMTP id 4F5F21B21E for ; Thu, 25 Jan 2018 18:13:12 +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=LUE3COETYZeZunbkXnZuSp5G7WealJl+hFz+YRAwoFI=; b=DeKfBaNKZfeut2neIevjJbZZtEU/o3FCflPYFqsWRdSuccj/e53EoijcvJdZx//b5WA44UD7SJEiQ920ESBm/JS1wuP851tLLTv9/QggW8BLPkG5ivfQtpCCG13pd93kCRLEjrDDOp3OGPloBKrMMlUwtMUDCYgn1Ab4vHGiIqA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from hyd1ajoseph-dt.caveonetworks.com (115.113.156.2) by DM2PR0701MB1067.namprd07.prod.outlook.com (2a01:111:e400:2472::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Thu, 25 Jan 2018 17:13:07 +0000 Cc: Declan Doherty , Sergio Gonzalez Monroy , anoob.joseph@caviumnetworks.com, Jerin Jacob , Narayana Prasad , Nelio Laranjeiro , dev@dpdk.org To: Akhil Goyal , Radu Nicolau References: <1516626668-9031-1-git-send-email-anoob.joseph@caviumnetworks.com> From: Anoob Joseph Message-ID: <4ab55855-0649-4d68-7b63-b75a6029dbb2@caviumnetworks.com> Date: Thu, 25 Jan 2018 22:43:01 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1516626668-9031-1-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: MWHPR12CA0055.namprd12.prod.outlook.com (2603:10b6:300:103::17) To DM2PR0701MB1067.namprd07.prod.outlook.com (2a01:111:e400:2472::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 44db96bb-6120-4197-79f2-08d56416e945 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DM2PR0701MB1067; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1067; 3:yud4a9m7zFzOE8QWLoKsso3/rV6ugwoiLH1FUIPYmwIWCXIyFAVR6J65g6XrhBS4SjxgqSwNHvxObsbltvaopjIWqxppUSjUlO1bNdbApQC/zx5e7dDrLwZzTloONy/xsZcrA0x5oFwQ87V548ShmEvev3W6mzoPQCg6I/qXaWdRAqkbA/XXcJ7XIyf66qOMi5kzN3v17LZtq5sQJyrQqMT7LoUDBTAyW5sLfdLkNNR4HPlSv/8r4G8+88gxAnrm; 25:IIzKXm5hkINNjI31ftVftjigWuwHIZcd/veUYAijWzJ8InNcn5Wjzi/yGXat1m49831iL96LhU/Zn/s4P8xStTS6yrDThnAdobRbcYthCLixW8jbhkvec/FQe41+5z0BohqmVU1NbfzRZRmKEb1dp8dSe+iRHb+9mcBBwtETUBQXM2azFPNqmrqjVKWRubNet2SqJsjKDijw1KeMUMOj5FXtdg1crmQ9A5M8aXihOB1kcMURdQ75la1Jy4/dPvjXiKWTG8s3Zrwg/BRDI2gmbYXcC4mHnMav8654o5IfbwY8QM6VXkv8dKgQOxbDqPK7i7UeWXz7xa4BNwOkk8KqLg==; 31:9wtaBXDWKrKN5FPFUkwQdP6lSCtqZ9PBiRctm8nBw0nTSOwz6uOV/MhwG1fbwJGvYYxqvSK3CCrfRSCUxB5LD9G09GPD8ZC2R8399LZKaefqTHCP6pam6bA3iA4X3a4ytRnzonVx2G0755t2dHuJi3pvELtWaB717PhduYGuS5h1DnpvNkBDtsR/ltnKYvPRSCjaqdv1RjL3Ol+gqS3tF8pC0EPQvkMn3c4udV1E07c= X-MS-TrafficTypeDiagnostic: DM2PR0701MB1067: X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1067; 20:07HABA5pftO/jxaqkhbTN2QAPd+vVs8dUq525988t/WjgvDv98Ix/quyomu1QiA2hAZqhosoynRuAY+MqUjfgBX4mLYE15e/OMufnQiaWUUeq/rKhVHVSPRzAzuSA2htrGAOLPx2y+qKqUojszy+zZkelgmEzRYzUpTuA9qg8fua/NOgRNeNQunYCPNypFqZdWw4EcB9GvJSMpwpUfiqSG7dYt9cygkUTzEEfuaWSoR5IQNPCnFi/aIeQ6/TuKkHQ26O/I+9J2mFCHajGMUy7sNTkXzy0jhF0drSD/4u057BmlsQJy003BWsLVg4LQZ6fQM3Aj3Z2SjOrAerEO0w7Bf4ZVvkaHe8PiFHVwNYa6I0zdTQ/Vd/41ffNqliB+pKlzrFBIe0q5oOWlKB/dJMVMcyd4BurCH6RUPaeIsuNiRTeY7j85lcXX86ZyWZkUO2qREhoxGOmUm7ELfDKd+MzwPyAZh5S7QgOnPBrhTEY7S/xOw9QwHzz9bK/ryrZ6MhrSR/wu2sQZHfim0IShyYRJ/VNMFQJq5GfUMCBl31gXsqa2N2thk9KJ1trTog6mNyMWyF2TfheE7bn9rid+w0J9zAurE9NcWvv5rbt9/aN2s= 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)(3231023)(2400081)(944501161)(3002001)(10201501046)(93006095)(6041288)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:DM2PR0701MB1067; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB1067; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1067; 4:K6nc2w1X8Cassl7Q2jGZbAPDPrXCs9+MXXgm/UNYkcLEFe8o1Iq8y79KfCknYaGwepE/jpLFTyYS8UG8q4rfOOMbhsAbonH4NmsC6aVaIKujByGITAMZbvN3Nx59zo1hQR/W1Uklf6ItGBxv9rZ7Eji2M26pu4ywRc7qvFnh67wY/Uu4RjmOn9A3Fk2tMzI+lLLFq7lQJfemPhdIiF3Tw9k/wqMfLaCa9BLMriSOWaJqs8EXPfEzLK2N3cobt2Om//qoCbvLJgspM177VJzqo62bcjYtUbLY83P4nD5Uta7w3C/VkWCsPA3pxllLuoSZR3bI03ITVpVDVh20e7yYbj5OLBgaaYMD8XtX+eI2wbI= X-Forefront-PRVS: 0563F2E8B7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(376002)(396003)(346002)(366004)(39380400002)(39860400002)(189003)(199004)(31686004)(4326008)(36756003)(25786009)(53416004)(316002)(230700001)(229853002)(64126003)(50466002)(6246003)(81166006)(81156014)(106356001)(105586002)(8676002)(6116002)(53936002)(23676004)(52146003)(2486003)(2906002)(69596002)(6506007)(52116002)(386003)(55236004)(53546011)(59450400001)(76176011)(66066001)(67846002)(5660300001)(65956001)(6512007)(65806001)(6666003)(8936002)(2950100002)(65826007)(47776003)(42882006)(3846002)(7736002)(54906003)(16526018)(72206003)(478600001)(97736004)(26005)(110136005)(186003)(68736007)(6486002)(8656006)(305945005)(83506002)(31696002)(58126008)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1067; H:hyd1ajoseph-dt.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTJQUjA3MDFNQjEwNj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 24:qTXXcCvr0ZajUsdO/3xEU4AVilIshH9bOPMjvW6vYFwyrMvQwBfK0tSHtlCn2wapGHhKUmj83mbzxM2UeBTl1NGR74Lzlct9VVR0HdNg9pA=; 7:/Wyn2pz0oE+YSYWqS1dZ60vzKjVFpP4qZz+tGm5yzJqCQ37R6aboyzDrEVIw4fMFwFSpFi8osWw4/wHSoy3wLRrpwLGqVy2agxSnLSIzJF6K3rymsuysFYagMpHKmQjJuSg487QtGke4f8KMAHLtRWdOtsX8xUIhPZoXcEET+0izVKZQx8lBSCvEBXJnS+ILK46JiqZLcVA6gtAj0dQAym+Q3VlZ5ncksuDFlFmN4wHdvjGMeDqM7f/WnAacmVM3 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2018 17:13:07.9277 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 44db96bb-6120-4197-79f2-08d56416e945 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB1067 Subject: Re: [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: Thu, 25 Jan 2018 17:13:13 -0000 Hi Akhil, Radu, Could you review the patch and share your thoughts on the proposed change? Thanks Anoob On 01/22/2018 06:41 PM, Anoob Joseph wrote: > 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(-) >