From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0054.outbound.protection.outlook.com [104.47.38.54]) by dpdk.org (Postfix) with ESMTP id 060151B735 for ; Tue, 3 Apr 2018 16:27:41 +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=IYDVBo6d1vKgPmxHER+FgUPiE2nmmmQ3MFvfmYYCA3I=; b=WUOz/fZv6ZIi0KjVgleuK5xdZU8VZN3wdUY6wlBOJPZYJJNSirqKL4/+IYVm5QLMX4ub971GT0A76oSDo9YOyIJEPS57PJ8EVLUMeGWHuG4RCJ3V/Dr424YVBk0ICZzhV3RyntG3pJ0eNHA51MOgAjfNM+fcdpM4wlSW7u/usaQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from hyd1ajoseph-dt.caveonetworks.com (115.113.156.2) by BLUPR0701MB1060.namprd07.prod.outlook.com (2a01:111:e400:8b2::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.10; Tue, 3 Apr 2018 14:27:35 +0000 To: Akhil Goyal , Declan Doherty , Radu Nicolau , Thomas Monjalon Cc: Jerin Jacob , Narayana Prasad , Nelio Laranjeiro , dev@dpdk.org, Wenzhuo Lu , Jingjing Wu References: <1519896103-32479-1-git-send-email-anoob.joseph@caviumnetworks.com> <1521630685-5179-1-git-send-email-anoob.joseph@caviumnetworks.com> <1521630685-5179-2-git-send-email-anoob.joseph@caviumnetworks.com> From: Anoob Joseph Message-ID: <9039830b-813d-1a72-a0c4-fb30592d4af9@caviumnetworks.com> Date: Tue, 3 Apr 2018 19:57:21 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1521630685-5179-2-git-send-email-anoob.joseph@caviumnetworks.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BM1PR0101CA0023.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::33) To BLUPR0701MB1060.namprd07.prod.outlook.com (2a01:111:e400:8b2::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 735d3dc5-eeaf-4867-c0fb-08d5996f0cce X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BLUPR0701MB1060; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1060; 3:FmN455YgV7Hmjlk5KZtbKEN292jIVh9QQfQ1xDPHQ1AFSJDckv9oWJO5zoLcN4z79zfsRBDs19kk0Tk5gpbSY42eQCtKtNoUMGtyGiNOmMHQ2o0T5vrqAvXP7mVOiDg4qUqpoQHPe3ByvG4dnJna+IOvRdDW2q2Hq8jeCthAFqzy79nXLQDWOAhQ269egDncjsKxFDiddZs4jUCQdyKeYCpsWGTUHh7abBvGR/xLwTDUCTx913pQupAZACoJbwoJ; 25:pMGRBkHTV7o5uAH7eB9U9OEiah2boY3cy4wNHTvQyjrKZt9sj+k22exVXT4xZGDoeAbXIOMfHsa2DPwTdKCX49n6Zc0RwsYlhJ/yMWRo64M+J0V/oY65hj10DduKBUJbno0QgzYL3vie29sKg2HqZ1E7gMblHP0hNWyEkl9S8XzReM4WnGSbSCiAIPA5lcu99y69RVp9MxQqpYF0FNKBu+OAcxF1qx64eoTuo1UHwlUvMchTkC7l/uLK3uR53RrHn5k6dYtSGANy039nMpOOFEBRYxflDHectFuXl2rDPazSAHpLWuj1Jpy28UtKj0L2JgYcs3F1XLKIjqsHncj+EA==; 31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e/oBSa/cEnudZTPbvG9t7rNOy6cuBk9KbnZXQtuodDurrnVEwfZgO/NtycNzJEsw7b2f36UXWdlcJgM5BRBt/XmdnBpq7576VK7L02ph/+cvIyryYnxRXENQaGPaiSvU+6Tur5RsI4IRnP6IyIxAHuv7NpYDxhkjwg18 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)(8121501046)(5005006)(3002001)(10201501046)(93006095)(3231221)(944501327)(52105095)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:BLUPR0701MB1060; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1060; X-Forefront-PRVS: 0631F0BC3D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(376002)(346002)(396003)(366004)(189003)(199004)(36756003)(230700001)(305945005)(53416004)(105586002)(486005)(6512007)(2616005)(486005)(31686004)(956004)(476003)(446003)(478600001)(69596002)(7736002)(6666003)(11346002)(2906002)(50466002)(6246003)(68736007)(6486002)(53936002)(72206003)(67846002)(8656006)(31696002)(97736004)(81156014)(110136005)(52116002)(8936002)(58126008)(106356001)(23676004)(64126003)(316002)(76176011)(42882007)(3846002)(65956001)(5660300001)(65806001)(66066001)(52146003)(53546011)(6506007)(59450400001)(81166006)(386003)(65826007)(16526019)(25786009)(54906003)(8676002)(55236004)(26005)(4326008)(186003)(2486003)(229853002)(47776003)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1060; H:hyd1ajoseph-dt.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: =?utf-8?B?MTtCTFVQUjA3MDFNQjEwNjA7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IbweDIrA7st+zwMAodrnIYIWVNDWTojVpDASqgSwf8/3w==; 5:Avl0fb0+1/ggCw8svQo5r5w04YmfcVuxAiM6BUlf8Jyc6mCnnxayemlm5BajfC/tXtk+lgvy2yd2nogNsyQ+GhU+Ack0jmI7O8ZN7YzN61zor6/zAEM/N2e0Bzo3sv8Sr30wOHgbXhWY8g5IMCsncy3/OnJWzaTE6uECUD9ytTo=; 24:VRP0rTEIuZM2BP4x0YNxFGtuqCc6FYGwqK8w90UfDcYFLQ7rqefHTA8iWLGv5qcTsZD2tmVL/peJLBJP//uzyzo1c5umDFC8x1ZOqFkTRiQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1060; 7:g+OdG1G/DyckWg03rfpfSmfR5P6KdhvYY10vH8yVYHpX6kCGGyXXhAjsSLjY20wV+fJUHv2hHwjRH9UDGGGzFeLD3bAxu5jlPTI2zZ8/F57EGOANPfHCBB9fqOpFs8ibGPV+EdHErBPOrgHCGAmY9h4s3Hkwh8402AnYmrWzd38Slsrub/2OTyN+S19q1RGPO7/m0+aAJaUibJhpUByfjWKv+vbybNcRXYjd2E4pqvb6OWlqSoIdWrflvQ2UruOK X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2018 14:27:35.3245 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 735d3dc5-eeaf-4867-c0fb-08d5996f0cce X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1060 Subject: Re: [dpdk-dev] [PATCH v3 1/5] lib/ethdev: support for inline IPsec events 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: Tue, 03 Apr 2018 14:27:41 -0000 Adding maintainers of testpmd & lib/ethdev Thanks, Anoob On 21/03/18 16:41, Anoob Joseph wrote: > Adding support for IPsec events in rte_eth_event framework. In inline > IPsec offload, the per packet protocol defined variables, like ESN, > would be managed by PMD. In such cases, PMD would need IPsec events > to notify application about various conditions like, ESN overflow. > > Signed-off-by: Anoob Joseph > --- > v3: > * No change > > v2: > * Added time expiry & byte expiry IPsec events in the enum > > lib/librte_ether/rte_ethdev.h | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h > index 0361533..96b2aa0 100644 > --- a/lib/librte_ether/rte_ethdev.h > +++ b/lib/librte_ether/rte_ethdev.h > @@ -2438,6 +2438,33 @@ int > rte_eth_tx_done_cleanup(uint16_t port_id, uint16_t queue_id, uint32_t free_cnt); > > /** > + * Subtypes for IPsec offload events raised by eth device. > + */ > +enum rte_eth_event_ipsec_subtype { > + RTE_ETH_EVENT_IPSEC_UNKNOWN = 0, > + /** Unknown event type */ > + RTE_ETH_EVENT_IPSEC_ESN_OVERFLOW, > + /** Sequence number overflow in security offload */ > + RTE_ETH_EVENT_IPSEC_SA_TIME_EXPIRY, > + /** Soft time expiry of SA */ > + RTE_ETH_EVENT_IPSEC_SA_BYTE_EXPIRY, > + /** Soft byte expiry of SA */ > + RTE_ETH_EVENT_IPSEC_MAX > + /** Max value of this enum */ > +}; > + > +/** > + * Descriptor for IPsec event. Used by eth dev to send extra information of the > + * event. > + */ > +struct rte_eth_event_ipsec_desc { > + enum rte_eth_event_ipsec_subtype stype; > + /** Type of IPsec event */ > + uint64_t md; > + /** Event specific metadata */ > +}; > + > +/** > * The eth device event type for interrupt, and maybe others in the future. > */ > enum rte_eth_event_type { > @@ -2448,6 +2475,7 @@ enum rte_eth_event_type { > RTE_ETH_EVENT_INTR_RESET, > /**< reset interrupt event, sent to VF on PF reset */ > RTE_ETH_EVENT_VF_MBOX, /**< message from the VF received by PF */ > + RTE_ETH_EVENT_IPSEC, /**< IPsec offload related event */ > RTE_ETH_EVENT_MACSEC, /**< MACsec offload related event */ > RTE_ETH_EVENT_INTR_RMV, /**< device removal event */ > RTE_ETH_EVENT_NEW, /**< port is probed */