From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anoob Joseph Subject: [PATCH 1/3] common/cpt: improve structures used in datapath Date: Fri, 1 Mar 2019 18:42:20 +0000 Message-ID: <1551465683-26721-1-git-send-email-anoobj@marvell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: Anoob Joseph , Jerin Jacob Kollanukkaran , Narayana Prasad Raju Athreya , Suheil Chandran , Ankur Dwivedi , "dev@dpdk.org" To: Akhil Goyal , Pablo de Lara Return-path: Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id E3B964C8D for ; Fri, 1 Mar 2019 19:42:26 +0100 (CET) Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Ankur Dwivedi Signed-off-by: Anoob Joseph --- drivers/common/cpt/cpt_common.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/common/cpt/cpt_common.h b/drivers/common/cpt/cpt_commo= n.h index 8461cd6..8568d5b 100644 --- a/drivers/common/cpt/cpt_common.h +++ b/drivers/common/cpt/cpt_common.h @@ -60,14 +60,14 @@ struct rid { * */ struct pending_queue { + /** Pending requests count */ + uint64_t pending_count; + /** Array of pending requests */ + struct rid *rid_queue; /** Tail of queue to be used for enqueue */ uint16_t enq_tail; /** Head of queue to be used for dequeue */ uint16_t deq_head; - /** Array of pending requests */ - struct rid *rid_queue; - /** Pending requests count */ - uint64_t pending_count; }; =20 struct cpt_request_info { @@ -86,6 +86,6 @@ struct cpt_request_info { /** Control path fields */ uint64_t time_out; uint8_t extra_time; -}; +} __rte_cache_aligned; =20 #endif /* _CPT_COMMON_H_ */ --=20 2.7.4