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>
*
*/
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 {
/** Control path fields */
uint64_t time_out;
uint8_t extra_time;
-};
+} __rte_cache_aligned;
#endif /* _CPT_COMMON_H_ */