From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0060.outbound.protection.outlook.com [104.47.34.60]) by dpdk.org (Postfix) with ESMTP id 61F375F16 for ; Thu, 1 Mar 2018 10:22:23 +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=NrmPbY0LFtEgULY33iGwgBrH3HYfIVQDd+yumiyrPQM=; b=L5g9jUOVFP5OCcw23oxTbL+8o1lwoiNZWvjqMX6E/iMrIgjosjvdQwwMN7SpKrB0RzhQh3w2fNWPSAskeI6IrEUOWlZYYO9XE4ZAWw6xBFl1yZA8YQelLrbA2WK45yEYMlRW70BNg6oufvkYoTDa7XtD5tPE0dswvjxshHNr6Go= 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 DM2PR0701MB1068.namprd07.prod.outlook.com (2a01:111:e400:2472::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Thu, 1 Mar 2018 09:22:19 +0000 From: Anoob Joseph To: Akhil Goyal , Declan Doherty , Radu Nicolau Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , Nelio Laranjeiro , dev@dpdk.org Date: Thu, 1 Mar 2018 14:51:40 +0530 Message-Id: <1519896103-32479-3-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: <1519191430-19201-1-git-send-email-anoob.joseph@caviumnetworks.com> <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: MWHPR06CA0006.namprd06.prod.outlook.com (2603:10b6:301:39::19) To DM2PR0701MB1068.namprd07.prod.outlook.com (2a01:111:e400:2472::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 476fffee-4a92-433b-41e7-08d57f55f059 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DM2PR0701MB1068; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1068; 3:wzqXjzT1npi+wCIl45XkYQBWVbkjA2G97rtFiBBrqnvAk9yZglQj7YPYdwoqa3+Na7cvGl19L185PoQt40fX5+K3IvJrTqlV2DjjVB5gw2rxE1ta4fK6aSeP3YrOpY5V6yb7A2gNGdXwpkyPIXttoFjG2StwQlxCQ/DM17Zi8TJQ7NUJoFn1o03RHU2Uq/tCsyAivi65CWr2gRDMqxQuSoQsX461CBC+hpTUGcZUOhv5cwmmewoNq97IZ1qug6n4; 25:+bLYqvWlWwVHghlbjJS6x445VEz3ADSi9fdI5xIfqckIKi9yR/628KtDlrNZjuDnqomAtjDAkCH2uUfn2Q7kUkwU5FN7nU2+veQ89KE1E941T0hyxpPkD1x6Ly8FxbJbOJbPnSU7oP8DTG68ERc6r417HD/BDcaoSKNHKjW5kADgB6iODHyplSragcFXCqSGh4DRtIvzjkp7w8YrAzrkLySnJU9SJqU4uEgSm/tqivyYbssYf1dmipZN0JZtYnJnro7VPoiUWs/oSjy6E0UQ9nMx+yaTkEwsjb3fWJIzDEr8kni0Qn6txtLu5bZxVgLo1YoIQWNuCuBrzBW6+CtVHA==; 31:Z7AMFd4XvOrs2OT98zPGP3XtQ4R0QcvzS9U9NTq4jMIIdJ7fKtxai+J/fivs3qd7mMLJKYNz+W8Q006WhC5WTkXWDtFI2XkQxjqQ8wWQroVLZY2PY0F6tmJSx0naGMFjXVgcXz7vQGp92ckA1LSfnLXG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tjy+GKUGxt+xksA3vvvcH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040501)(2401047)(8121501046)(5005006)(3002001)(3231220)(944501224)(52105095)(93006095)(10201501046)(6041288)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:DM2PR0701MB1068; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB1068; X-Forefront-PRVS: 05986C03E0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(396003)(376002)(39380400002)(346002)(199004)(189003)(76176011)(186003)(8676002)(386003)(6116002)(50226002)(2950100002)(106356001)(6666003)(2906002)(81166006)(52116002)(478600001)(81156014)(3846002)(72206003)(36756003)(97736004)(8656006)(8936002)(54906003)(110136005)(6512007)(25786009)(50466002)(316002)(105586002)(51416003)(5660300001)(42882007)(6486002)(47776003)(16586007)(55236004)(48376002)(26005)(6506007)(66066001)(59450400001)(53936002)(305945005)(68736007)(4326008)(16526019)(15650500001)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1068; H:ajoseph83.caveonetworks.com.caveonetworks.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; DM2PR0701MB1068; 23:B7HrVwTZnpNQTkMhvYP8fQnVg+f9OhHr+RrKcsL?= =?us-ascii?Q?wR99UCeeG+GNGXaaqQO2m3knSgEQcUpZvYNFA9PJ5F/vmxc+Dsdw6k/ovThE?= =?us-ascii?Q?ZIMFUdskOUzaVOrnKFfyJY/t5rWazXa8MCZ4SJ4JOQYRZqFAQ4kKIa7VfKDH?= =?us-ascii?Q?CHX3w+Bz89c+aUC6hyPgV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ySwoGSNW7EytwgRVbEkiNA5YvJoy0mLHmBIzLaUhRgckmAUFwsV0S6wgBvUCSeOybrVcEVoELhuI4rIe5yWcqPUXLUuK3L6QdOnOW+UV5pC5+NIAb9upo0t1FN6FqnD6rzj8 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2018 09:22:19.7091 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 476fffee-4a92-433b-41e7-08d57f55f059 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB1068 Subject: [dpdk-dev] [PATCH v2 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: Thu, 01 Mar 2018 09:22:24 -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 --- 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..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