From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0089.outbound.protection.outlook.com [104.47.36.89]) by dpdk.org (Postfix) with ESMTP id BECB95F14 for ; Wed, 21 Mar 2018 12:12:22 +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=+kn8U9ncL/G97qxu2NdJ+mmdUb5c563H/wO+wAPBj60=; b=HdzwthTCskL0ygh2bt4pbVvEYNvTodLzN5xieue00AHVFn/TNQ5J6jZWbJEB6yJD7xkeJ8CR35LfdR+R2bobCURwJc+Sxw5Z9VFFnsVMbD0PtscGZmKaRH3GhueWJPVdqK3ivxsHmqkNTj6yQb7N+HHdQ167a2148CWTH2M8Yyc= 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:12:18 +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:22 +0530 Message-Id: <1521630685-5179-3-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: <1519896103-32479-1-git-send-email-anoob.joseph@caviumnetworks.com> <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: 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: 2f05bdec-c429-4050-4df6-08d58f1c9dbb 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:MXhywoaH6edfSsICuNCmpDKTWpG0WzK/sEGQkPRdAvVA5culk8C31iKrxc3emud1Gn6xgXE97F6BHUiApM0FH7Gp/CmlG5SeGkjzgl8kInne4ylZjADfOVe8+2SvSJTxKIAfjEGYrB//wN6xv4TaNLGm/jc0gWEol83zEWAKPgA+aZLrzt57kqcoNQRrtBaQ5MBwnICtVy8cM9grQmhDhoEja/Aw6/6J4tzF4uZZzFQfOZgORxbGMKPWVL3OBvKd; 25:AJ+cFHR1bRcDJHmI6KkFeud+IwsxsJ2OTWvtOwGRbxaxIpjzBMZe3ljW0O55lv/CRIwaC+8y0sAReevqAD6+rqK9rIQf0EAbqaydw/gjV2atoZqNiT8nTl1USLI4qT8Ojylf5ah5iJQMBL6iomGYyJgwWjjz/D8+8atg8rlJxRk0WiV3BvCjnGXUvWi6innK8WRNm5fTsTuaCLYyX3JKy1BmuUl/9OgFpwNuEgolH29wZ+mc8tGRU5s4abeglx7fgla38D4vjtDlk291zRcaOVxblqpAD2NXOo2n6z245Ac9HnccruAGHQzHKlaUDSf6uPOHST4zaR9NsV4YBxfFvw==; 31:j0PlXTUt/J2qFr8c+5vzazJD+wf9h2rmEDnIs3rJCljwx9N0HLB0F2F0S3JZPzTtobgr+tYE9RlhoHPGvH7OJ5/1jsJWvWGn1B3O4//7EE43yBL26ZorlFRvP76Emiip0cn1S7C4sBfAe6YtMhmxthQ7xV+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ITYocE31RdFPGceQOQ8xv1tNKt 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)(15650500001)(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:ryMCJiq+rh7krmMsKv/TBD/QQvUiWUenDh5U/eS?= =?us-ascii?Q?1Q9mVn2yseVBklRKhRsygOozNqjDShA0I90iYbexcxgq3LcDRBoAwufGKINR?= =?us-ascii?Q?h0qeyrb6lk8/lLwgCwAdX/Vawy8hMOQ63Lv6/b2QPcy8n4eyTFInjCU2ohRl?= =?us-ascii?Q?5AiXXeO1SN91W8KV5FfzWgJ90XVy3HPksE9F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gFwDkPB0+UxNoVd6jQNLwonNaYu16AghutD1WkXN7WmbhyegPeD+EwP3W?= =?us-ascii?Q?q4c0C3OLIfuHjR8hB0R64YT7ADryesy3SfAnWxZqwgCK6XQizgsd0yA0Enek?= =?us-ascii?Q?RbxkRc7AVreUz4wdpT5Y2u40HyzQSMqPjhgkx/SzWOQDzsDc73sc8CykZs92?= =?us-ascii?Q?KpKvFjDLN4hsA/QGpI1c=3D?= X-Microsoft-Antispam-Message-Info: dgqZLP6guk7cGbDilKtFu6zDPVCOmimWXB1hPDKM2WqVf9yQdSpO2UOaxstuLUQf/ZsVFdsxJ+E10vFeZ1/+KPnGnxS13uobk7hJG+2ynT64SONpyw7yf7L9zninmuNt77y3Fv5T8nSf/5hSd1I1+7sfqnRkD5RNAlUXch5kZls+t/dsyePqis37j8OnOf2d X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1058; 6:sJWlXUq0SG2k2hwvatvttDIjj8IYLBC1QppqEWkJrrx7fuV51fYBIvvLpeb1MVDSEp71GvqWNprSH565O0Kq+tE3eI696dkUXU5oO113OkG7r85AtziDW1w+eSfLUa7JlGTtwsoMvwnZME85HCydGPyoG10Lb2k0LMOtgwCtuhTQ9UKRF0+8N22W8+a6PDaMH5tENtOieUIz+tfWYvFdPJ04c7ro/gAYJYPF7FoWtpeJbFNvY+t47DZzqjmzL3IFbUDTGnFVbAww5dEk5CdU+zsoNXrXKQPIlU/oKdCbgMoG5tfFQJkwSMuVf3hmyGX4Ha0NOb4/bqJeSTplWu1VH+94hYzKiUoWLhtKnBQ7i4F/hgHoPeej/Ox2Di82QRsg7gML5c6DEfXwDC736oDDRO0D8T7DdyFqb7ly8KMxwmJT7QDAuE+/NHZsmn2jSV0I9cMd8fXnVVuSo4AYtk+taA==; 5:dej42sqLO0t6C3vRgxChu+NZdUeWXFWvZABiLQBvOrx3AunGHHZ2KO3pTxox3XPmC/j4OKMIFzScIOKKDFFQJx5/5tC7XWdIjRd52lKBnzCQfo7eVyIS0TiKJfo2nLtJ26cO323aeWy9sFuED8Mhl1hSY9UD8MsI3OhUDrBYkaE=; 24:sLyqkthRQ4F8f5CfHUFr8hD2hdKb/8qRw/g5unS7N7B8USvCdejEB5ZRy4dytsOGkoxBHsMyqUEmIg8EYaNHB9vo3GjzL62YbmQWfAp/7Yg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1058; 7:YpiFJgYnZ8/WHtFEv0WC7f/tsb8ddWjFjJ9rGlvQneyRcTCOnVGhP7nhgwUKBuK9S2Y/am8vVrxzq2+ZCAAr4Pj9+9hbClxPLZEEpUXRHmHnqYNBbVnrxXm1Ha0OJ1SJKSWa0hPbXRr9OfQQiRxH2dlujkSr+OO3NMzA+8gSuX0XdbTJLTuFKlobjUBRocShs6Y1jq9B6BaUOyWdWnx3fIEVjFUU6aBQgxbVg9ye7XBORcatRuDTJ6XUTpIBVDrJ X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2018 11:12:18.3816 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2f05bdec-c429-4050-4df6-08d58f1c9dbb 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] [PATCH v3 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, 21 Mar 2018 11:12:23 -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 --- 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