summaryrefslogtreecommitdiff
path: root/drivers/common
diff options
context:
space:
mode:
authorAnoob Joseph <anoobj@marvell.com>2019-03-01 18:42:20 +0000
committerAkhil Goyal <akhil.goyal@nxp.com>2019-03-22 15:54:24 +0100
commita03a7bfb90066bd02a941b318f533cba720620bc (patch)
tree1a47930d7243f96489d8e07d0430f427d6aa4353 /drivers/common
parent2382aa8c8f5820a5783b32a82e364a63d486183f (diff)
downloaddpdk-next-eventdev-a03a7bfb90066bd02a941b318f533cba720620bc.zip
dpdk-next-eventdev-a03a7bfb90066bd02a941b318f533cba720620bc.tar.gz
dpdk-next-eventdev-a03a7bfb90066bd02a941b318f533cba720620bc.tar.xz
common/cpt: improve structures used in datapath
Making cpt_request_info structure cache aligned. This structure is used from data path. Also rearranging the pending queue structure to prevent hole in between members. Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com> Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Diffstat (limited to 'drivers/common')
-rw-r--r--drivers/common/cpt/cpt_common.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/common/cpt/cpt_common.h b/drivers/common/cpt/cpt_common.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;
};
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;
#endif /* _CPT_COMMON_H_ */