From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0070.outbound.protection.outlook.com [104.47.36.70]) by dpdk.org (Postfix) with ESMTP id 14B185F17 for ; Wed, 21 Mar 2018 12:12:02 +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=9avKR2jz4dmA6+1Icb2RulkT3WH5zeb52/bGyg5GZK8=; b=oZevq9SuVxWX+iie/Tv5Kjc2Wy6fi66xje0iSUfE1oaUCA/8CYrCTLVrQr2LGO2VsldltxfImoFd7ztNgDBFOqRUhfVMuLmuppY09gim8mmz/8rCcY42Z3o+GqysO43iGdwkRx2CeX3CBjqkuh4Rg+s36AXypzl1uwIPkcPjV6c= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.com (115.113.156.2) by BLUPR0701MB1058.namprd07.prod.outlook.com (2a01:111:e400:8b0::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Wed, 21 Mar 2018 11:11:58 +0000 From: Anoob Joseph To: Akhil Goyal , Declan Doherty , Radu Nicolau Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , Nelio Laranjeiro , dev@dpdk.org Date: Wed, 21 Mar 2018 16:41:20 +0530 Message-Id: <1521630685-5179-1-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519896103-32479-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1519896103-32479-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: MA1PR0101CA0061.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:20::23) To BLUPR0701MB1058.namprd07.prod.outlook.com (2a01:111:e400:8b0::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b8f37052-9378-46fa-6f3e-08d58f1c91bb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BLUPR0701MB1058; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1058; 3:Q0zuUVFSGOuJ2GQ/IA73PwKA2zmlCRsehJ+/d1AAstbtpsgA1x4wIPHSIMUh72kkJWI8HeApAtDFEcvwiaHnTfpq/MbEXGo0/7lVSZBmZR9Q2crYxUtN/Cn3umtq0ff8HWLz7AzZ8RZ7ecveuy93epUgDYqcDNyKVEgsjlBWiOgpH7D/p8qn50Li1Tu+g2A98EHKfna2jhwrMdaPHljP2oSX9KibuOjpb2FoqmVD7GufPTs0XDk9Xsw13nkCEc5M; 25:gOi804Vt9Jth4lEeybkBnl2VBFWDTwkEvH52OudYOtfV/adrhO3baX3XCCJY0zUtiIZFFaeakhlsCXf4mr+Q5SlWYH3CZq/RW9TSfHVYiJe1X257j9H1xPCCvYoef2QkDoAx1kiVZhwEvWgiK3umCJ8D+0W2fH8Ceys+OQsoeMbljl3i84hCEttdnQB3SQ0b9OaHzvqXOtwdhWY4fN7SxxxRkJQuv7tykvGFQBYBjmE8+N3xZE+yu31DiOMbuoKd/mDZGwqK4NMIuqnBFhxRlZH7EKsf2v4nUZGw7+yFW4eIBSTckDWFbxTTY234K91Yeeq0NFpcrqzi7IbR72Zo4YtI6TbkJwDrv6hUsSgGRMQ=; 31:U3QofSbRMdlSPDa0N4qlF5sIFcn2ujKxbryC38VUNMJbgkYar8Yyj+HoOTU8FDUEWdN8wlHMvgEzuz7a7Kzp7RPyMEo8ghKqnAe1jFrznhwq1i4mViY8er+mYLz162KwZfhQIewAvyMBOsHQUxFSyXNe6b66m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xOWPwKR56E7fo7N3c28W4yUNL 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)(93006095)(3231221)(944501244)(52105095)(10201501046)(3002001)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:BLUPR0701MB1058; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1058; X-Forefront-PRVS: 0618E4E7E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39380400002)(346002)(39860400002)(376002)(199004)(189003)(72206003)(52116002)(59450400001)(51416003)(6506007)(305945005)(25786009)(7736002)(386003)(6666003)(478600001)(81156014)(50466002)(81166006)(110136005)(8936002)(6116002)(3846002)(54906003)(6486002)(316002)(2950100002)(5660300001)(16586007)(76176011)(8676002)(8656006)(50226002)(105586002)(36756003)(68736007)(66066001)(42882007)(4326008)(55236004)(26005)(53936002)(97736004)(16526019)(6512007)(106356001)(47776003)(2906002)(48376002)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1058; H:ajoseph83.caveonetworks.com.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; BLUPR0701MB1058; 23:Dn/GmNWOY1rphmNCGdBcvJHf61uFE99Pm71zFEO?= =?us-ascii?Q?BAyxJGKfZTvIvxMB7g79BV5q5PeVu8QgBvc1QOuM8+LUJxZ+c5oncgqOIeYS?= =?us-ascii?Q?Yax3dxtFkEVTyIDztXGaNaknLOoPwGuJ8Q3K4QDCAasJsKSwmh4DUrFSJRKz?= =?us-ascii?Q?V+NXwFwvXJ7va1ADMENfjS+HQZAHv2oQvMsHjIScdLZfMM4UrwCeD5NNa3/b?= =?us-ascii?Q?Xuvk/XjxS/PCitgJu5gR9eq710mXhgmUPM2HjrWkILqAO5xDEZrKSDjHrZM5?= =?us-ascii?Q?RyDSztDfcf41Qv/+hZ6Q+seveOPfNQBJGXPnElFYWL+wGglltskD8N00MVoU?= =?us-ascii?Q?8QzR+MKRpVhSog8ZqYBIMBo1pWoLMh6+dhisNG4IfFueXPYge2PZNsw54/ui?= =?us-ascii?Q?wSe9MgrfMhnTZQd6XkZ3IupfoS86DjOCemUqJxAvfN8KkAaFp7IxePK7AdAt?= =?us-ascii?Q?Pp18uW3Snbdpno3aACpL02uyIafPekjizitezrurFLtqsQFr+JT156TJgaSc?= =?us-ascii?Q?osCFM16nzO4PipdH26FZ8zkKY5BSXqC0il2seArtzdRrCx57gcxghizOf+PS?= =?us-ascii?Q?uB9RmElFDsEZ6em4W8bS+rgKs+E7Dh06KGEqOGFh0gvgSvOzJvwqB8IS7T+C?= =?us-ascii?Q?jhIcXOmpnrzkpfDm1Bch5SmUb2qSO3JcBCgWMlbKjc0a+E/HDDhZuwAmwLF4?= =?us-ascii?Q?ZEpt4slDT1pgYwViLhbKTDWl/aO6hi1P+JXU3oJxaI3M2X9tFaInpYxz9sj1?= =?us-ascii?Q?QFStkfy4op9qEXS/17EK217+K3wpHGZO4CU9in+gWotvsdHJyayNF/IoGby+?= =?us-ascii?Q?sBvSGudJeOXXm0XB9OS8SI9y6di2+m/Rr1xoEk7kntxLaBfSS+hUeukQHqUR?= =?us-ascii?Q?WICWq6XEEtiEf1c62/kWQ0SCRIKHAXdQ6aOjg8gnVO1En0kwzqsW7ntcgbiB?= =?us-ascii?Q?/+GU8K9mcWI9npt3qnkriosHnudp3L3ohjN0us2UxlUYDOlH2UEHoBDgYBOc?= =?us-ascii?Q?8KXYtDXWPOQlmyAS0VLftAoNlPtgOXc+gboikRDOVBd+YaiJvz0/K9ePNg99?= =?us-ascii?Q?bPQ1eAjrloedaI9jX6UeH2F4YV9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hxvNU9OEB6u6u7qpArCgcnasgbEmxrtqbqvlliXRpQjBTnWDL/zetsiFJSUux47lzJmb2Am+p5gObHSA7sz/Q34Fx/HDe4u0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1058; 7:cSx6lPalx2A98IGB+Hx7Epxl53mA32rSVj13P9OKaCqfbckyl21TB4cI33zkbvrihIJkfL/CTyl1qa1zj336h79+Q4YsMWISIMzbPDTFccwFK7IW8Q3DA1+i+TkkE51GRLJtktrF61WNSTVCNXot1lNx3EVNQ0iCqwfBwYRmJyolakkn1M1OqkkeADcp1hboBJdd/leG0wwqLy+OHSJP801BevTZfh6OIoiuscDjEULF22PYAwnOhYSA6dKtR7eg X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2018 11:11:58.3318 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b8f37052-9378-46fa-6f3e-08d58f1c91bb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1058 Subject: [dpdk-dev] handle seq no overflow in IPsec offload 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, 21 Mar 2018 11:12:03 -0000 This series enables application to set the sequence number soft limit for IPsec offload. In inline IPsec offload, as the sequence number (maintained by PMD/device) reaches the specified soft limit, the PMD would raise an "IPSEC_EVENT". This event would have some metadata, which would be used by the application to identify the SA on which the sequence number overflow is about to happen. Anoob Joseph (5): lib/ethdev: support for inline IPsec events lib/security: add ESN soft limit in conf lib/security: extend userdata for IPsec events examples/ipsec-secgw: handle ESN soft limit event app/testpmd: support for IPsec event app/test-pmd/parameters.c | 2 ++ app/test-pmd/testpmd.c | 2 ++ examples/ipsec-secgw/ipsec-secgw.c | 56 +++++++++++++++++++++++++++++++ examples/ipsec-secgw/ipsec.c | 10 ++++-- examples/ipsec-secgw/ipsec.h | 2 ++ lib/librte_ether/rte_ethdev.h | 28 ++++++++++++++++ lib/librte_security/rte_security.h | 16 +++++---- lib/librte_security/rte_security_driver.h | 6 ++-- 8 files changed, 110 insertions(+), 12 deletions(-) -- 2.7.4