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 15877A0C45; Tue, 19 Oct 2021 01:37:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D28F41141; Tue, 19 Oct 2021 01:37:08 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id F3A674113A for ; Tue, 19 Oct 2021 01:37:01 +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 SMTP id 19IK0MAX000890; Mon, 18 Oct 2021 16:37:01 -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=q4gdBag1DRQ+jeGtVQumpOcLAPmC+vlR9KuUtmgb3kw=; b=k3suum7SVQAPAbZmOoT7Cj5zI75cMW6ovnqs/oe0jlgWsImc4vyfLaG6YQv199x+vtah +IUANaNSi+apZuWRaFE84gbDVv+88NqpGY1y2Cepr+tL0pZAqJuHx+nB+tyyEMSqz2UW YUgW5J+u9cn/YWPsH3456cx1d7ZNpE11XT0njTiyExaw/CSMdyxbueFt1vkXZHmXgS/7 aELHojy2nZ9jtZfYk3Jk2fV9zP2dppLlH0hVZfFB8ZQmzzg7OSsCoq1RfJ9heCAVzkV+ CHGSOwfMciwFP2sLa3ZzyWNag75pO0Vn+GGgzm87mpnG1UuEZjE61U2vw5DMOc+aluGT bw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 3bsfk48n1a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 18 Oct 2021 16:37:01 -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, 18 Oct 2021 16:36:59 -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, 18 Oct 2021 16:36:59 -0700 Received: from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.177.176]) by maili.marvell.com (Postfix) with ESMTP id 3EB313F7043; Mon, 18 Oct 2021 16:36:56 -0700 (PDT) From: To: , Erik Gabriel Carrillo CC: , Pavan Nikhilesh Date: Tue, 19 Oct 2021 05:06:05 +0530 Message-ID: <20211018233610.5694-10-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211018233610.5694-1-pbhagavatula@marvell.com> References: <20211015190221.2160-1-pbhagavatula@marvell.com> <20211018233610.5694-1-pbhagavatula@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: dGeXIqtwe_tHzvcCOZo1E9Z9TmEpMSiH X-Proofpoint-GUID: dGeXIqtwe_tHzvcCOZo1E9Z9TmEpMSiH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-18_07,2021-10-18_01,2020-04-07_01 Subject: [dpdk-dev] [PATCH v5 10/14] eventdev: rearrange fields in timer object 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 Sender: "dev" From: Pavan Nikhilesh Rearrange fields in rte_event_timer data structure to remove holes. Also, remove use of volatile from rte_event_timer. Signed-off-by: Pavan Nikhilesh --- doc/guides/rel_notes/release_21_11.rst | 3 +++ lib/eventdev/rte_event_timer_adapter.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst index b4e1770d4d..6442c79977 100644 --- a/doc/guides/rel_notes/release_21_11.rst +++ b/doc/guides/rel_notes/release_21_11.rst @@ -283,6 +283,9 @@ ABI Changes accessed directly by user any more. This change is transparent to both applications and PMDs. +* eventdev: Re-arrange fields in ``rte_event_timer`` to remove holes. + ``rte_event_timer_adapter_pmd.h`` has been made internal. + Known Issues ------------ diff --git a/lib/eventdev/rte_event_timer_adapter.h b/lib/eventdev/rte_event_timer_adapter.h index cad6d3b4c5..1551741820 100644 --- a/lib/eventdev/rte_event_timer_adapter.h +++ b/lib/eventdev/rte_event_timer_adapter.h @@ -475,8 +475,6 @@ struct rte_event_timer { * - op: RTE_EVENT_OP_NEW * - event_type: RTE_EVENT_TYPE_TIMER */ - volatile enum rte_event_timer_state state; - /**< State of the event timer. */ uint64_t timeout_ticks; /**< Expiry timer ticks expressed in number of *timer_ticks_ns* from * now. @@ -488,6 +486,8 @@ struct rte_event_timer { * implementation specific values to share between the arm and cancel * operations. The application should not modify this field. */ + enum rte_event_timer_state state; + /**< State of the event timer. */ uint8_t user_meta[0]; /**< Memory to store user specific metadata. * The event timer adapter implementation should not modify this area. -- 2.17.1