From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0048.outbound.protection.outlook.com [104.47.40.48]) by dpdk.org (Postfix) with ESMTP id 0371D1B8AD for ; Wed, 11 Apr 2018 08:41:55 +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=aYEKzo0F7MsBmpDbcM8a+AcfN3yu/Ch37AuScfhrZvY=; b=f04ZKtwWXC5CdSgTNENOoh4T1wAMs7kWFcfOpdEIAk9zDK1qrFI4TuyXQ+f0lAjymeVsI9Nqnk4vVwEn/BE8emv+ggDbvxNI/IwF4KxWHb3AZoQ420PJbZL7kn2KyEUwLdA2GwdRgkDsuIETW1ATxufugsiMCpsJ27Nfp7aJ4vg= 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:49 +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:43 +0530 Message-Id: <1523428846-9774-3-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523428846-9774-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1521630685-5179-1-git-send-email-anoob.joseph@caviumnetworks.com> <1523428846-9774-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:F5wEmtqMJVBAJs1bWQA+qjVlq+VxhJGsWeATcODFtuMHA9LCiPrDv/9VmyUOYuVnSEIo3XSOyNOXpcPsWRFaNoY3RrwOUZqh9/3VCpFy5uN4m7LFMJilT7gk4RZRtUEUmB1f4I27hT5WhQ19yHQbV2Xl9Aib5BqJcRdXrxupjPUsdV8TefA6uxgOkmSleW9opflLanNzbttDDwLoI2mMOAVO8/veSFPKDekGha4OF3DNicGzaI6TSdZ7Tnjsvmmz; 25:oihqa5kTp+sWPOhli5bAz97m1aNAQUjsgsnZua41bLgPR1xx0kli7AldK9OhBFdLiQ6WBcrTXtOS4XWvFzyylj1K1MlxUbaxyYCP0IIIOJCFb+t7jP5MmX0TqSMiIPsEWgVa0p0P6ejKtxrD03mohpUBLem+4f/5KtpCEt+Ku9cAk7UyhY9JEaNsku1RbaeTnhSdueKg7+0VGRZA+/ePiz/vgdev1uLeFJaWjJgUxamGSARYgDym0qwsVotvtgfCtc2igXlFL+uolX3FbVZxpF80OpXrR1HhEZKEpPbdHCxyXyu4ndiRlyhkTp0ceczoS51NTz5jO+OEUzDSYHk03Q==; 31:xNeh523uJUGHwAvKP7whnv4hdArmzK6Im/02iQJIefgsCc2Y6v7nKEAnnxIms71LCMv/V7PsHDco/a4YvzYiwMK4hKkR/bncLtTD/84Du4Jw7lQ4aoZxiAm+CmnFV350YYjLOgRVsI39zoR2Za1nC02F6dnGGrwwJEzSDvMyniqTvYQGbijpTv2+zdaBOTRM5Tr+BCl21I76e0/Mw71xKqOM78rc1QzJgxPZH8kpOFA= X-MS-TrafficTypeDiagnostic: SN2PR0701MB1071: X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 20:jnb2KZfzGSzI/V7rdl7qOU2JNtEeNbQY3DB2A+xlV2qVTGhThtJ/S411z2rV62uPZr1zN9OHVb/U+6/0xqMd4bj6JuU6YTSQYyqoWBCpZ2ucYsawm9Wqh/jY7cEH9yB/ZYBsGtXhXUPFx/aZ8WgvXQBmv2lth7i12w5CLALDBMRjKSDbVMwN3/28DkE0YXOXAf7SuJQ6pW87rvkTAfqEDqeAtJW+3pRTVwUyI91U3tTIQYdeTt+NkjqpWfbdho6g4ebD0knE2riTduLqNnC5LdcAX+soCPzYdTCJlQCRoflNc+WGa237E6wOBwSo3oGYpVXuhKHR+MrKYmC8mFqQiafPRHjCPnod77RGdj6AzoSXzAHS/nWDxlj8+jP+sSELsPwywAjpzTkxBRx5KIC6JP3HoY32usJKqIZ+exKT/EGJIJbveGgAzoDhfw2qwkWRfJfIWYColC6m/tL2VHu68fbUUMbXNEx63AyRW8GiYoYPtVn5mJ/JVfOQqcpKaq3EXE4vBDtcUomLzHsj0KkbyH5ZAWCIhslXrM5wrUoE4W9atZTbXfdMpet4wWjEXPZwbbHGiBereWmeDibJjcu+79b/nx5wuTOTb5kGRx43PGc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(185117386973197); 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-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 4:n+BdTx5HmYBFIbSAiuvjHU2E+DU9ahlqto33MO12nGGaS0NEa8uQcw+ARKFAXLFHda/+iYmXRQ8vhcbsHydo6M1W/1qKhpr0Hcu6npYmyiAlJh0YQCmbtf6s0Xun0IZwIMJXpb0sFy1m+mZq7k2oYEpwswuxIiqNHaVzrc0zBO4Aj4ZScq5LM3BSagaA3/c+wdSJlTZxGJrHooS/HiRuTgR59sp1vslWzbAo4jLrDTS+WcdnfPEoI3lsQl5p7+ctxMl+iPpjRv0b5H6SAo251aJwPN8br98pj0o9pH7/jvbFU1OeT9dAbhVgfeEmJX6juRx9Z8uN6Ke/6sVbyzXvIyHWj9/QjIHsYotWgiKXRrU= 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)(15650500001)(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:qGd6YOm6cN+V/XWuCPb6hjrKtlIoGE1aN6K13iT?= =?us-ascii?Q?/p+KAOBkIPzj/VDRig1jn/14/oIOx+Y0L/QPW04HEBuE4XT7Cj0ujOBh0Due?= =?us-ascii?Q?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6j6EZD?= =?us-ascii?Q?lCR77fRwBMZbaFnHZiOb24to9b2I/7wNpzPQaW2iKWHgLiW619vHsT6HfrN7?= =?us-ascii?Q?wHZBdwVir/CnUA8Q8neNItSMqJZ7IhwH6Yv5sKi1EysjtHOBonwSocC3qemG?= =?us-ascii?Q?3myzoV1NMU71yjToPIBMcrQWOfFYXNF+fd9PTTKkWwfz5eoE8+rLFX4SZBSi?= =?us-ascii?Q?ACPkuwrgSPE0urUJBq3NxqpJotEZUmqAq1+4MrleZzDXNWLoZpjpZPEKAmYk?= =?us-ascii?Q?B0YmHQFv1OjV23ydxV0v7TvsjyhUBS0xESSl+BFO/TO16Hkc4bic2p7JBCpe?= =?us-ascii?Q?JLhNYydqqSan2cmYv7NHkfec=3D?= X-Microsoft-Antispam-Message-Info: aTvZEMlGzqvqkjIomd+SmDMaTjEMjAlc9YTQ+KwvRZ87wSpmsIE56e6Zuo/Hwcoz8A4Qf+vvHQluUSW3OKeodXEDR3VskvzlpI3uI8tF+DyzG5IaSfcieqdltc/4hHP/WUjAS6Yjir1RNfve5z+xlyPN/frfm2T77l5FAnys91oY9MQ5XBGJKngfAsuLYVKp X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 6:LxXWIMItSPA1Mr+yNwn7lbiK1B/pig2Ijysk4m/nT2KcXhEd9mPDrMyBzwVebY15l/F4/gRXexmaQoUnghTHJbjT9bCZGrynz3LVGutBA2MviJAgpK6JuEtmPsq+vq+aazVMzefHrSgyPmCAT9kmcch+tiogY4EW8v8anY5CAh2rfUEyYywF+yWSpZLbPBEqR8GoGKPRK2codgaQqbaNT54qfzOdWATkAIQC2ojXHH3bWXXR2bO8Pcw6Zc3WsL0IKV1a2M0WuFkis5eukN1MpLrrCL4VrbcwtgmqaERP9d60Gu1dT8YeOzt8sRrbDKR+rBHioGp76ljAecZjquJ4kXeBoJwHpxd2G6O3OGuPFDqavBnJCDZ2tpfxYWBkD2dBbPzwXrkKRTpdlMGk9W02znTzSPvIXBjx2t6dVlwsUuIxkaIo+y3XTWUfO5uXl8lyptQEKF9fe1PTuYaE8xz4fg==; 5:JhoGpxrEBBqrb1x0RWVB8TlPU0EP/EBzXHmlKidj2ng2pSA3BS6Srvp+Jv/FX+iGi+EULiaXsSiaxIzMEtYRLZ80Sjlj1l+k+X2JmY+d8CQmyrt4vQbl2fWWBLJqYHu3vRrHx+CKYThng3PAk0eNjNz89edRmoaHcfo2YocVlnM=; 24:E22SL5C1d+UVXTIgmLHkfWlnLCZsUOWwxH1waTH28rcU9xv5fzBYyvq4p2aiI1fTN2AGz2AWQkYZ6u7ErW5pPqQ6jklwLwVPTDTBfdgg+E8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 7:io91aymQSmRYY8GgZ/jousP6XO0Ga8dAy+c/lEsK8+Y7tidnnko5igpUSKUowZB9NOlmcV1GnL3+54x6ozEo3GrBsxl6s5fF++/uNqu4PsXDwEre0ckDCewuIoCNOrwo055Q4cnenKjHvgCo85o9l1/3mY4KsdwSTH84mynnWPbLIbMbphivwbZCkMVyPthHk1wjHQCW/AwBhb4JCoc016HaqFqvAvFgHKuBKnbi20KFgfbfcSnqfKD1TuRzAKQY X-MS-Office365-Filtering-Correlation-Id: 20061539-d9cd-498d-b9f6-08d59f774f98 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2018 06:41:49.2814 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 20061539-d9cd-498d-b9f6-08d59f774f98 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 2/5] lib/security: add ESN soft limit in conf 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:55 -0000 Adding ESN soft limit in conf. This will be used in case of protocol offload. Per SA, application could specify for what ESN the security device need to notify application. In case of eth dev(inline protocol), rte_eth_event framework would raise an IPsec event. Signed-off-by: Anoob Joseph Acked-by: Akhil Goyal --- v4: * No change v3: * Minor change in the comment v2: * No change lib/librte_security/rte_security.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h index c75c121..ca1e912 100644 --- a/lib/librte_security/rte_security.h +++ b/lib/librte_security/rte_security.h @@ -222,6 +222,8 @@ struct rte_security_ipsec_xform { /**< IPsec SA Mode - transport/tunnel */ struct rte_security_ipsec_tunnel_param tunnel; /**< Tunnel parameters, NULL for transport mode */ + uint64_t esn_soft_limit; + /**< ESN for which the overflow event need to be raised */ }; /** -- 2.7.4