From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C1934A00C2; Mon, 26 Sep 2022 19:07:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 97F5C415D7; Mon, 26 Sep 2022 19:07:23 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 54DAA4114B for ; Mon, 26 Sep 2022 19:07:22 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28QH6HAP032130; Mon, 26 Sep 2022 10:07:21 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=bJCI/YRzz5aNxR8di5Nu+DDXwCed6ygGYtEJ5F5IJ9o=; b=T9q1HAYrnk3Be9pR42YXddn3lc834kDDU+Riv/+/lcvknQgSze901WFYNf9LVQkgW7Cw YmoltgBwgU947h7RGfKIDbgyfb3gQmgXyTB2vrRzrljcAdtGVW+2w6ytlm4tTTejvyN/ Hmma4j8xKIB9/zc0Sex/qPkCmW8kTbNAFJI2eWVD42r7qh0xOFz9MvydPxDVmbrCjyw/ l3SqQq4hNLhg28lSl56e2QgXnuqSbHmE76oJClxN2R8zjkX/QMo7lTFRWAMoqs0mcKJz uZW8p0Tzev8NiJrilXngdrQkam/9WWA11y/8g5vIby5vOFAux+x4YGzD2wyNyv9zK10i hg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3jucsq0ttx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 26 Sep 2022 10:07:21 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 26 Sep 2022 10:07:19 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Mon, 26 Sep 2022 10:07:19 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id 2AFBA3F70E8; Mon, 26 Sep 2022 10:07:15 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , , , , Akhil Goyal Subject: [PATCH v6 1/3] ethdev: add IPsec SA expiry event subtypes Date: Mon, 26 Sep 2022 22:37:07 +0530 Message-ID: <20220926170709.367891-2-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220926170709.367891-1-gakhil@marvell.com> References: <20220924135758.3402392-1-gakhil@marvell.com> <20220926170709.367891-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: OFNbJZ9SwHvqg99EAfJ9ZeioceWFfnce X-Proofpoint-ORIG-GUID: OFNbJZ9SwHvqg99EAfJ9ZeioceWFfnce X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-26_09,2022-09-22_02,2022-06-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Vamsi Attunuru Patch adds new event subtypes for notifying expiry events upon reaching IPsec SA soft packet expiry and hard packet/byte expiry limits. Signed-off-by: Vamsi Attunuru Signed-off-by: Akhil Goyal Acked-by: Thomas Monjalon --- lib/ethdev/rte_ethdev.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h index 2e783536c1..3ee6786a79 100644 --- a/lib/ethdev/rte_ethdev.h +++ b/lib/ethdev/rte_ethdev.h @@ -3875,8 +3875,26 @@ enum rte_eth_event_ipsec_subtype { RTE_ETH_EVENT_IPSEC_ESN_OVERFLOW, /** Soft time expiry of SA */ RTE_ETH_EVENT_IPSEC_SA_TIME_EXPIRY, - /** Soft byte expiry of SA */ + /** + * Soft byte expiry of SA determined by + * @ref rte_security_ipsec_lifetime::bytes_soft_limit + */ RTE_ETH_EVENT_IPSEC_SA_BYTE_EXPIRY, + /** + * Soft packet expiry of SA determined by + * @ref rte_security_ipsec_lifetime::packets_soft_limit + */ + RTE_ETH_EVENT_IPSEC_SA_PKT_EXPIRY, + /** + * Hard byte expiry of SA determined by + * @ref rte_security_ipsec_lifetime::bytes_hard_limit + */ + RTE_ETH_EVENT_IPSEC_SA_BYTE_HARD_EXPIRY, + /** + * Hard packet expiry of SA determined by + * @ref rte_security_ipsec_lifetime::packets_hard_limit + */ + RTE_ETH_EVENT_IPSEC_SA_PKT_HARD_EXPIRY, /** Max value of this enum */ RTE_ETH_EVENT_IPSEC_MAX }; @@ -3898,6 +3916,9 @@ struct rte_eth_event_ipsec_desc { * - @ref RTE_ETH_EVENT_IPSEC_ESN_OVERFLOW * - @ref RTE_ETH_EVENT_IPSEC_SA_TIME_EXPIRY * - @ref RTE_ETH_EVENT_IPSEC_SA_BYTE_EXPIRY + * - @ref RTE_ETH_EVENT_IPSEC_SA_PKT_EXPIRY + * - @ref RTE_ETH_EVENT_IPSEC_SA_BYTE_HARD_EXPIRY + * - @ref RTE_ETH_EVENT_IPSEC_SA_PKT_HARD_EXPIRY * * @see struct rte_security_session_conf * -- 2.25.1