From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0082.outbound.protection.outlook.com [104.47.40.82]) by dpdk.org (Postfix) with ESMTP id CAFFA1B6F7 for ; Wed, 11 Apr 2018 08:41:25 +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=J2tPto+N0ZW+3L0Pf1Ledj03+cWueuQLNgIBKymyvfY=; b=B8hUvHF1nC+WAAiGvi+2mLI+ghvrxPFvCa/w1SDcrgJzzzxwMKqY6YEvShFFmsJAcav+bt5Dz70k7TU5VzMzk/355cronKppL6+p47RkSU1owoba03R+3g394/1ZYQ/EFywZvuWCEI2rkkDH7oarYLVfMEX1wfGPFa8AoTqII1Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.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.675.10; Wed, 11 Apr 2018 06:41:18 +0000 From: Anoob Joseph To: Akhil Goyal , Declan Doherty , Jingjing Wu , Radu Nicolau , Thomas Monjalon , Wenzhuo Lu Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , Nelio Laranjeiro , dev@dpdk.org Date: Wed, 11 Apr 2018 12:10:41 +0530 Message-Id: <1523428846-9774-1-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521630685-5179-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1521630685-5179-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: BMXPR01CA0029.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::15) To SN2PR0701MB1071.namprd07.prod.outlook.com (2a01:111:e400:341f::17) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:SN2PR0701MB1071; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 3:eqTi+Z+tY/U2hFss52xJE60UAB0gH2sDtdn3ogUgJZ2pm/DXHzo7Qe2lHEX+efmhYRUk7Oe1BPHoZ8yMepZTvQJONfLzQIdYwL4cC+90hE0LMMXvl1lnXWZrY/50pykz+GMqupGpKf5YKy7sR9NVQPLx0USfTeHj8v9BJDGlrDzxdHcq/qNnuI5EB+5uNqs7AGGYAKh9T0NSDjGs3QGG5l844NbDKvWuQ6ewRMMEMha3pwIK9W+MSJ2TwGhpq0UE; 25:i7GGw0eCaZj59tZMF82HlD0cLy5JirnPWjhL5tyT4TUS7bxrzGMAcs8IUhdF18ZdgLeGNVkNQbx4aYciJzQe5Vm92NaSKg5Ol6uvxe1xg5upLNMv+JGljgKubYQXWoUNQGiR9nZSMvzyDyDtIF5M87K6LLNrzYUm1RNpf7uKyZrKmlu7vM6L3WoHRgKIl2+hKf3+HoREo15KCajYZkgzvZvUPtTg0tOP4etH5tEkGrQKDcuCGn2lUa2AjcvxGW8lTMl97ylYazoUJ/2oFPBhHY1P6rVZ2jhN1pDC720I2O4G+zwZnEgwCuGiM6kBZBsZQ1/RM2OIDv8CxN7ntTgpwQ==; 31:11sbin7hO8kQgfRIU5iQvdzEQVkQrVJh5orsde6U/AQf7aY9y+z+2ondhosg0f8VCZJqBYYmi5uhcrkADw91w4tcZjYpDCgP0z1nGYrahUqiTWyHbrDlO/4BJm9h3ztecjzERyyDj+AZUWUIYjnxVJGpxBs8Bb8ZI/DCoFwZJ1zbt+UcOapgC0dZUqt1d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Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(3002001)(3231221)(944501327)(52105095)(10201501046)(6041310)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:SN2PR0701MB1071; BCL:0; PCL:0; RULEID:; SRVR:SN2PR0701MB1071; X-Forefront-PRVS: 0639027A9E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(39380400002)(346002)(366004)(376002)(189003)(199004)(316002)(53936002)(5660300001)(6116002)(478600001)(3846002)(59450400001)(8936002)(66066001)(6486002)(97736004)(4326008)(81166006)(50226002)(81156014)(8676002)(26005)(42882007)(6512007)(47776003)(50466002)(48376002)(25786009)(16526019)(186003)(7736002)(72206003)(68736007)(52116002)(51416003)(8656006)(36756003)(6506007)(305945005)(2906002)(55236004)(386003)(16586007)(486006)(446003)(105586002)(106356001)(76176011)(476003)(110136005)(2616005)(11346002)(956004)(54906003)(6666003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0701MB1071; H:ajoseph83.caveonetworks.com.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: =?us-ascii?Q?1; SN2PR0701MB1071; 23:4+qfng4pekIbT8PC0U9j5Rc33Ym4SFeetlYutAA?= =?us-ascii?Q?MUs0a+WFqu0D0dAe+TYxzg8jqqFzTHX9qvWYEUCPuyUDbbnqYUKFV/h27+mU?= =?us-ascii?Q?BWSqnJ0B8v6diLhKb+bil8kG4mzdP8WWG8P3s4a9iXOjn0T85oCP25DpTm0d?= =?us-ascii?Q?cu0Jmf6zaNxVET7Pawrzd+RNkCVi3GTRhwKY3/FENK3b5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c2zBIAA7HJ2VMionKy+j9B3YYiZyBuv8EJWjdysgNg22kHwOCaZLBDr3YPT/zLPLM75pzfOFVe7WBKvrXxD6L6x3d6NYLyiM=; 24:52RYzf9x3w5JLLfxJJOIKNC9xrjBjpC4CKN1eaptGq0/2rGRMAb14cN1LghilJAKQ5dVVzSalTQLhaVTirdtSwpiWxaY+aJbxNMqQi1z5Hg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 7:caoipb2OmkA92jdEfcBzRGSVL0Xdc+mMzOQ0H4OmrcDbj83W5FiF/izUFASq2bZojX/JBKA8kz4K4iEo7cb74yKWjSuiOfu3aM+nZlHMgDWtYZWHdtiREXLrB2QwcS0R68B3tiD8vZ9GE4lhne2VHBhpA32coXRcWN00pI/6bG8kgj3GxWcqFRUxuMT07Zyi/R/o6aHfO7PM7BdyHCT8zRCfyoDE6NkuWYutuBTzcjCxsqD93GK2C47mEYB/pkBy X-MS-Office365-Filtering-Correlation-Id: 8c7fdd62-38c5-4402-e948-08d59f773d71 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2018 06:41:18.7811 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8c7fdd62-38c5-4402-e948-08d59f773d71 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] [PATCH v4 0/5] 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, 11 Apr 2018 06:41:26 -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 | 59 +++++++++++++++++++++++++++++++ examples/ipsec-secgw/ipsec.c | 10 ++++-- examples/ipsec-secgw/ipsec.h | 2 ++ lib/librte_ether/rte_ethdev.h | 41 +++++++++++++++++++++ lib/librte_security/rte_security.h | 16 +++++---- lib/librte_security/rte_security_driver.h | 6 ++-- 8 files changed, 126 insertions(+), 12 deletions(-) -- 2.7.4