From: Jerin Jacob Date: Tue, 3 May 2016 12:42:07 +0000 (+0530) Subject: ethdev: align device structure with cache line X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0cdf516a7185e74872ec3a9cbc73637e60fff04d;p=dpdk.git ethdev: align device structure with cache line Elements of struct rte_eth_dev used in the fast path. Make struct rte_eth_dev cache aligned to avoid the cases where rte_eth_dev elements share the same cache line with other structures. Signed-off-by: Jerin Jacob --- diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 6cf4c58267..fa45f1b9b5 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -1650,7 +1650,7 @@ struct rte_eth_dev { struct rte_eth_rxtx_callback *pre_tx_burst_cbs[RTE_MAX_QUEUES_PER_PORT]; uint8_t attached; /**< Flag indicating the port is attached */ enum rte_eth_dev_type dev_type; /**< Flag indicating the device type */ -}; +} __rte_cache_aligned; struct rte_eth_dev_sriov { uint8_t active; /**< SRIOV is active with 16, 32 or 64 pools */