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 086ACA050A; Sat, 16 Apr 2022 21:26:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 821A3427FB; Sat, 16 Apr 2022 21:26:12 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 91DE0427EB for ; Sat, 16 Apr 2022 21:26:11 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 23GIFAkj019557; Sat, 16 Apr 2022 12:26:11 -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=1CzYaTkIWcv/qx1vKVhgZLSypRIoXO1sULw3zzRkdgA=; b=FnvvoqHRhzrG1/H5Zpl9O0wp3eikBa/yFnn94QxR/K5NeMb+XmdZWy8sLUcz9//B/NEl Aj8xfHxEZ8hluWdFlqkAv7DdfaJAEHzHQ0Gawpy6Q/8zcp4wwj1HOiIWwol6Qfp+Q0x+ znPiEbbkKq+bE6f7s4gIkU/o4qZKsvCiTeqM/P+r8k0WW6xTx0RSpgJbCK3kBEhy5rRq CE5efqb2CPPMR6LBWdNIx27zTlh9r8g/8my51iQhKSo4PLG3K90syUrKgPz7jriq/fo2 92sfgP7Z1um9NIxn3upttysCknVD2vYr7MV8CLRSYmt6IReqsOcTjybX0uFudyn8Aj5C 6A== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3ffwanrrh3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 16 Apr 2022 12:26:10 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sat, 16 Apr 2022 12:26:08 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 16 Apr 2022 12:26:08 -0700 Received: from localhost.localdomain (unknown [10.28.48.55]) by maili.marvell.com (Postfix) with ESMTP id 5C9C83F707D; Sat, 16 Apr 2022 12:26:05 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , , Subject: [PATCH v4 07/10] ethdev: add IPsec SA expiry event subtypes Date: Sun, 17 Apr 2022 00:55:27 +0530 Message-ID: <20220416192530.173895-8-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220416192530.173895-1-gakhil@marvell.com> References: <20220217172341.607360-1-gakhil@marvell.com> <20220416192530.173895-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: Mx4yvaYqbAdbnR_N1X_8xyzcwUUz-Lyy X-Proofpoint-ORIG-GUID: Mx4yvaYqbAdbnR_N1X_8xyzcwUUz-Lyy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-16_08,2022-04-15_01,2022-02-23_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 --- lib/ethdev/rte_ethdev.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h index 04cff8ee10..08819fe4ba 100644 --- a/lib/ethdev/rte_ethdev.h +++ b/lib/ethdev/rte_ethdev.h @@ -3828,6 +3828,12 @@ enum rte_eth_event_ipsec_subtype { RTE_ETH_EVENT_IPSEC_SA_TIME_EXPIRY, /** Soft byte expiry of SA */ RTE_ETH_EVENT_IPSEC_SA_BYTE_EXPIRY, + /** Soft packet expiry of SA */ + RTE_ETH_EVENT_IPSEC_SA_PKT_EXPIRY, + /** Hard byte expiry of SA */ + RTE_ETH_EVENT_IPSEC_SA_BYTE_HARD_EXPIRY, + /** Hard packet expiry of SA */ + RTE_ETH_EVENT_IPSEC_SA_PKT_HARD_EXPIRY, /** Max value of this enum */ RTE_ETH_EVENT_IPSEC_MAX }; @@ -3849,6 +3855,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