From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0056.outbound.protection.outlook.com [104.47.32.56]) by dpdk.org (Postfix) with ESMTP id 258F21B973 for ; Tue, 10 Apr 2018 07:10:59 +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=Ff68QC8jkZ2KvXh4SUflWynECmhWKKkr7t4sRtrv3jM=; b=LVBMfSG0LrFMS6E6BVYsSJ4dEGFtPao6V5p8aHv87HyGQdavDi6xowSMSZZh+nNZZO+XlmLDg6Q70ZLB7tRz9K4+34QWFSN6B0XBJM+kNCoWDrSD0QulYqeCCkRQzPXsWXJ5UF3OR2emAEWZ+kzKqddGD/4irfcXJ48EnJKOyM0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from hyd1ajoseph-dt.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.653.12; Tue, 10 Apr 2018 05:10:52 +0000 From: Anoob Joseph To: Thomas Monjalon Cc: Akhil Goyal , Declan Doherty , Radu Nicolau , 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> <9039830b-813d-1a72-a0c4-fb30592d4af9@caviumnetworks.com> Message-ID: <6342d9c4-74ee-2ff7-5b81-36d01611d929@caviumnetworks.com> Date: Tue, 10 Apr 2018 10:40:36 +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: <9039830b-813d-1a72-a0c4-fb30592d4af9@caviumnetworks.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: MA1PR01CA0099.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::15) To DM2PR0701MB1066.namprd07.prod.outlook.com (2a01:111:e400:2472::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f2f129c1-0e54-4fdb-7ee6-08d59ea170c9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DM2PR0701MB1066; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1066; 3:7PgFHG/aGE8fcnbEoa4xLvQ/pl3CgxF/4811Z7zcyOfS26mOpm1C+6+mIvKMlI+LeeuxncioIWdIUKO10t/SCTNv2s+7GGGgzOR9Goct7H8lsFp7MbsEatZMnMi2M5Z/1+dpNjX6Rks9/+SZX3MQ4Af+UHN3ZTO1JKF+PWTy2kJXcNXMOTvjqKXGBGolevK+kFHAv/Lv5xc+HaNWrnnOxcMOwQhW6+TnGt6r/XuvLD3tnJHeWtMyE5a2FvLmrOmr; 25:DTMyeP2xpw4kAgBv9wbBCmO95DD4gFOhfc/UnDNYS640ToDWdaYdl9tBYF2xUaG7DBHlVzMEjVpQudhFfFJMFcNugMUNFMWXGifQS5j0W1HTFmFQAvs1QzelX6IdDDHookLMhTQf/qC6pAZ738ozu1UtXd0jHBY3PPGHIkRxyxw+PiE80L2q9g0oQpt/Gh1Eemi6Lejj67IbcuuMvgcZaKUMOauCnjhD9PLPodQDKSNjUeuLn+GD/SwzxEJbIGryiFbuecVrRPStYbcCQ33OGMvyof9JRXYBAwJBIsmthRHSDir1wCcouOELoQcAiSq1JglYnaMNeebQzKV9tPqInw==; 31:vZ1hM5hGVE8V/XbrhNLkW8es3WpLNybo8YrNuV4nLBgNh+8g4jaJSKhieQZ8D8kelHQ0Tl196NyyFYxewHPnmKaARqP8EEBehiRjQJK27cbMWR/hrwlzN1M19N7BTHA/EliwPct503QkjfjYBSdC9l6HU48Pxa7O0Bc8B5oTCnTIVJbWKn3zwyLvi9rd6laeq3ZbrXY+ncdS06rSLv/rowgC/I/5Qi7Oo6kVuBY8Y4A= X-MS-TrafficTypeDiagnostic: DM2PR0701MB1066: X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1066; 20:EOm3prqF5tL7YZxszA63HZzN4n1OHyUD8/9b3hXCeou9vsGIQXCOqSudBp2N737my0Ss8Q2biP5VhLTHMgqemtZxf0SKAKHYN2gPuGL/ehDXA1tLxQFpmkYsw9Jt0JEfmeXgpjOoIFqCiJDeuFslB1kcNAaBcz2qYhM8+LvR7c2X+LA8E56PKmz6jiufkJ4ei6rpsVldnahuqsEETAm/94YI+Mw7xDvjt69FyHtPA5QVXyUl3YFICg5BAUMGsZ2mspBEZvGR18961MpNpgCV7N+C8K+zseirss2TLI1sUTe4UpsUxNLZFXH7FRkVl3hbbNBnApUld4BG9HajIdBjMz5Kw9KE5hJJLEXvy7OlEMCxCvlEVNKadzuWqmpTjJOevNR8d49wngcRG5Sp5C9TNOqfMuEuUj+KUkNv7RMzzOqPBJCAXNuTAapGqR8671TfGiknyWCMsm1k2KAp6gdsVjPyJz0JzSqsxx1TmaliqJzFmGZJuNgqYke6iBYZzB3NKE64yMDvVwAcRNP7Han1yJuFnB3lLwdrj3T01yAOR1GCQIqOXI2nEiQp2FFwI/78yjQl1de4n+geGagHd12IZKYptol741NbNOFdGPuA0VU=; 4:GOa904aXRmzyLGVoAKZea9H8tC5+mLBiw7YTrTs6ZwUD9NcamDG93ODd5aIeUyVEXVPQIM+X1U7sLD0qXogirT6lgS3i0teetsOsfETj+Azy2htY98bcL3fCheshZMgVSCotRJzgQF/FeKdMKArP2HTNm/ZfJb+WCggO+Kf+jwVyx22dM0ygLpvsjRG0DGjm37QJmrqsue+25VehXoD8ch/NSEzDy/+hBbzy1VSIPZDtiB2nv0irq0X5E4kW6pkUHIpRQoATpqxl5firz/kW4xAFsEhUWJF0RHp6gTABHtodP9MZkwpTlWK2p/OOVJFI 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)(93006095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:DM2PR0701MB1066; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB1066; X-Forefront-PRVS: 0638FD5066 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39860400002)(346002)(376002)(366004)(39380400002)(189003)(199004)(478600001)(2616005)(47776003)(66066001)(476003)(7736002)(305945005)(6246003)(52116002)(2486003)(52146003)(4326008)(76176011)(23676004)(8676002)(186003)(25786009)(6666003)(72206003)(26005)(16526019)(446003)(229853002)(6506007)(8936002)(59450400001)(42882007)(5660300001)(53546011)(31686004)(386003)(956004)(55236004)(65826007)(50466002)(53416004)(36756003)(69596002)(58126008)(54906003)(81156014)(81166006)(316002)(11346002)(68736007)(105586002)(106356001)(65806001)(8656006)(31696002)(6486002)(6916009)(2870700001)(97736004)(65956001)(64126003)(67846002)(93886005)(486006)(6116002)(53936002)(2906002)(6512007)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1066; 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-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zyiTtjmL6WHL/YXncyRHbF1sXHp4FVIleHcqQNjV2lRGHk6nZoiUIwTbTDmx0wQnRUs1iA+jeCKG06IDpQsHctXe24X5tmJZcaWEKElbzFgCw==; 5:LG5l7ltJTjppAvihvDKaZ+8kC8bu9h3kP2jAox18Bl1/UEiOG6qgBAlOIpEWVSgbEr6Sf4WoWo+InTn2gcT17kL8IQhorb4vp5niKFQHSigGbtg73PI+WGHO2C/plwJZfblUzZUlbL1aNf0hTSbaxPvXX7XmsMUZGfBGQKaLXSA=; 24:qNUZSotYsKWQZdSS3V1sBOlbpFVmmBqYJ7r4RfivyTU/WLXr3G00oIoBpbi2ZFvAvnUz0c3mKvriUmTSHhCB/x9SnwvGVotKxRHyz+0pX8I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1066; 7:XWKqerykz8HbZ5VvwpDZBKUkwS0ij+wd/x2/bAirX6KFaOKx1TVHSIbQU5mLQMYhoh7CJWnkcu6e+9KepVxI3pTMog6q9seCkFuj/ZrcvL0Hxf2EAYtEKZlTE8DUgqEUUNcIuDnAIAeN8VoYWgqfJY1P05S02X3NfylJ5nBjsdIGikRfxBDcpSieygm/yfxEWAayZpb4/VIf7XZcsP7Naz9SQQNAQN5Cn3Xm+tDQkyr/QPXpXbMNmDMMwN7hs2p9 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2018 05:10:52.5877 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f2f129c1-0e54-4fdb-7ee6-08d59ea170c9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB1066 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, 10 Apr 2018 05:10:59 -0000 Hi Thomas, Can you review the patch and let me know if you have any comments. Thanks, Anoob On 03/04/18 19:57, Anoob Joseph wrote: > 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 */ >