summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
11a6dc4)
Reorder the members of the structure so that the ones used on datapath
fit in a single cache line, to slightly reduce pressure on cache and
miss rate.
Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Acked-by: Gagandeep Singh <g.singh@nxp.com>
- struct rte_eth_dev *ndev;
- struct rte_mempool *mb_pool; /* mbuf pool to populate RX ring. */
void *bd_base; /* points to Rx or Tx BD ring */
void *bd_base; /* points to Rx or Tx BD ring */
+ struct enetc_swbd *q_swbd;
union {
void *tcir;
void *rcir;
};
union {
void *tcir;
void *rcir;
};
int bd_count; /* # of BDs */
int next_to_use;
int next_to_clean;
int bd_count; /* # of BDs */
int next_to_use;
int next_to_clean;
- struct enetc_swbd *q_swbd;
+ uint16_t index;
+ uint8_t crc_len; /* 0 if CRC stripped, 4 otherwise */
union {
void *tcisr; /* Tx */
int next_to_alloc; /* Rx */
};
union {
void *tcisr; /* Tx */
int next_to_alloc; /* Rx */
};
- uint8_t crc_len; /* 0 if CRC stripped, 4 otherwise */
+ struct rte_mempool *mb_pool; /* mbuf pool to populate RX ring. */
+ struct rte_eth_dev *ndev;