From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0053.outbound.protection.outlook.com [104.47.38.53]) by dpdk.org (Postfix) with ESMTP id F3BE4A84C for ; Wed, 21 Feb 2018 06:38:40 +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=w1CQNz4voevENEm7oeBgxy9OJAXL0wemQ7vLOieRqlo=; b=au0ufJYeOCkZNr38FRoXACQb5nB4v+XpOyWknHYiDIV8iHZKoraO2wclGoj3u9qyGfi0agda8tOEMByh/c2ZGj40dTzJCGlzmnEXIUKjlhvn4bso9mpKEx91KsrwGX0HGHUmSHuaK/3FpSYb8WXafQMtJ/RNcSNOyLy23qZMBeo= 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 DM2PR0701MB1066.namprd07.prod.outlook.com (2a01:111:e400:2472::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Wed, 21 Feb 2018 05:38:36 +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 Feb 2018 11:07:07 +0530 Message-Id: <1519191430-19201-3-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519191430-19201-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1516626668-9031-0-git-send-email-anoob.joseph@caviumnetworks.com> <1519191430-19201-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: CY4PR22CA0059.namprd22.prod.outlook.com (2603:10b6:903:ae::21) To DM2PR0701MB1066.namprd07.prod.outlook.com (2a01:111:e400:2472::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d7853410-6302-40c8-d4a9-08d578ed5c08 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DM2PR0701MB1066; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1066; 3:xsyT8xjIY0fKdhyriADf3CrIpmzOfhb88etbkQztja7rIW9wDGzKymkFQd14VRd/FtwLd/gT+R+D0pYiQg+ZWv3HGfWf7zMrzaUyAQYvOEtoL7nhiQ9SCrTe7W0yNCSHOW0v3docd1Lx7TbkImUARS4aWUEBIkavRD70S/2tteMTZRSgYtvnepPhUKk7kYJXCkJON2CI2OUiBXWCdHqIhd0uYoNZftQOpQRCgx6Hlcm8cPXEhbhUGZDXxajRyxSn; 25:KRYCIyXPyDmbMtNSht8IzdO8JXutyhlToFcPmD6cZeOqtxYkLrqObxToWQlD/iJHCsO3x1LeZ9A9cKMhrYfdsvRt4QBFgHtL3x3HLLSbjTSi1s43LMFEQYooZhd+mAhZZKm1QX0eDlUKxdEA8KoY2V5v+Qs1v/xFV1bGuWtfBkLmq89egBVU3A7YF7ACrroTZRLhICjWvqniDHDilGZXT1gzi24wdCFx/prI8Wji2Dut6rK3hbv320nHdCcJBZhkcqdAMMD9Phu3ipAfLNRXDxbLsKVcdLci8pl6kA59SM4ADnapS6kpjo1j0GwRvvEd996EZpeqX8xlXROtYMaBOg==; 31:1CExcSfZRpdktXgZRjs1wzRjUgcc/hy0JPdZmcs+V1hUh3tnXr3P9ItgW9JCAAhewVrbc479BNtdy0Vl2O1Y8SjbdM5Hm0Ut/SRXvoxiSWjJhwhAIeSyrnJYYhc5ZGrHjdrPoExzMOOwIw2l3sMWI1mC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8qRL9jC0h96RGZFYSUZsX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001063)(6040501)(2401047)(5005006)(8121501046)(3002001)(93006095)(10201501046)(3231101)(944501161)(6041288)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:DM2PR0701MB1066; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB1066; X-Forefront-PRVS: 0590BBCCBC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39380400002)(346002)(376002)(39860400002)(189003)(199004)(106356001)(386003)(76176011)(59450400001)(66066001)(15650500001)(47776003)(6512007)(478600001)(186003)(26005)(16526019)(2950100002)(72206003)(6666003)(42882006)(5660300001)(7736002)(105586002)(68736007)(36756003)(6506007)(305945005)(50466002)(81156014)(16586007)(6486002)(48376002)(4326008)(110136005)(8676002)(55236004)(53936002)(316002)(81166006)(2906002)(6116002)(51416003)(3846002)(52116002)(50226002)(25786009)(97736004)(8656006)(54906003)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1066; H:ajoseph83.caveonetworks.com.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: =?us-ascii?Q?1; DM2PR0701MB1066; 23:liUCj8JYXs/pb6okOzfF5STt2IcIqm5aAkFs86g?= =?us-ascii?Q?1kivJAyY0wfL2bCyUL43zg7iNBh+ZNfpzNpe3JhY605XzMFwogsodHqhsgVv?= =?us-ascii?Q?hnV6klkxSQYeGr3B3TRZAXL4BAngOOcWbW2r0MpMJLqZio1seKuplRlNkaDU?= =?us-ascii?Q?/zqBHQtSgm42AaLAIaSvWBNF84Z799/FHmHGeqC8lHRYJVFQCu+ElVHkc4Os?= =?us-ascii?Q?5Vc1czHClxIaGRXP74lxdPN8scnn/dGWdP026KxerwSdEg4hXhb+DEsx1eZd?= =?us-ascii?Q?07WD743xU9DQMZggEZj1nSzcfIdfz+K6WZypIlXzjE8B+Cu80DrHWUQ5+jOP?= =?us-ascii?Q?l0oseVDNpjj/c8xiDWm3/6fXyfG45TLvH3rmFNHwKSRVcmLReVQw3sGXCj7r?= =?us-ascii?Q?qcFLUeyxz49BK4rlW5gfur7keax5RBaabk8Qh2mAVyTep1UuzFliZofF4B+l?= =?us-ascii?Q?03WpyPLcjxvFxaUHqckuXg89HuwWOMtBoMllJpHA73Ns7WcAD7gc2KrFJh8Y?= =?us-ascii?Q?06OrjfzjQ++Gh4I7HaYtvIIaiISGTmw0rbUhrP4m50rwdXMDwzMpETm4vmys?= =?us-ascii?Q?2nbkp9tJVOByipLKPogulo7CSH68JpXetCx+78WJjeB5H3GPSGUUbS2gWj+K?= =?us-ascii?Q?IrFbUEEuDPih/9OoN+5Qst1Tw0I2HUn71C11EOU4wmXbs09+WlPyt/INMXGz?= =?us-ascii?Q?8Wu4XezM3dvyPG7wdPxl1UvITJvsGxGJs9cd4vc1gTQhpDzfykodNUHfxXIS?= =?us-ascii?Q?/9AIHFWsQ+T34uKzxNYadBCNvfti199flXw2W1euRjFs6Y3srdOlM0yAo/2S?= =?us-ascii?Q?6GFVQhsF+B/wsAPrHvsy3MuXAmcpFF7qSO528owj4IDzQQTZ0bVCGZpTY6tw?= =?us-ascii?Q?wzZ4I0qMnXa0myK7TZ/Q0/oC1xv21FgH5ko1spAhripa43xT7om6iXXm+1oE?= =?us-ascii?Q?RARDqowJafpiGMwG+Qd0Kx/9ubVIWRoMsn9G4OvwWyRFLGz2VhZ0C24dWM7C?= =?us-ascii?Q?A7DnfnkCruA/OpQRkcp0Hzda9AU/AU5JOx7OErj+QODbzLlJnG7prTZ7hW++?= =?us-ascii?Q?zdSwzTxqSPHV9UxOhLXin4PTUv5ur1D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wkhP3zO6eViyngFwH4BavaCmqRQyfYLmGrFpz/XOMD84AMUdttozPaq3WTzok5iQFqs5+HuCRUbJ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2018 05:38:36.3208 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d7853410-6302-40c8-d4a9-08d578ed5c08 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB1066 Subject: [dpdk-dev] [PATCH 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 Feb 2018 05:38:41 -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 --- 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..a71ff6f 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 by eth dev */ }; /** -- 2.7.4