Thomas Monjalon
5284adad3e
mbuf: remove userdata field
As announced in the deprecation note, the field userdata / udata64
is removed to give more space to the dynamic fields.
This is how the mbuf layout looks like (pahole-style):
word type name byte size
0 void * buf_addr; /* 0 + 8 */
1 rte_iova_t buf_iova /* 8 + 8 */
/* --- RTE_MARKER64 rearm_data; */
2 uint16_t data_off; /* 16 + 2 */
uint16_t refcnt; /* 18 + 2 */
uint16_t nb_segs; /* 20 + 2 */
uint16_t port; /* 22 + 2 */
3 uint64_t ol_flags; /* 24 + 8 */
/* --- RTE_MARKER rx_descriptor_fields1; */
4 uint32_t union packet_type; /* 32 + 4 */
uint32_t pkt_len; /* 36 + 4 */
5 uint16_t data_len; /* 40 + 2 */
uint16_t vlan_tci; /* 42 + 2 */
5.5 uint64_t union hash; /* 44 + 8 */
6.5 uint16_t vlan_tci_outer; /* 52 + 2 */
uint16_t buf_len; /* 54 + 2 */
7 uint64_t timestamp; /* 56 + 8 */
/* --- RTE_MARKER cacheline1; */
8 struct rte_mempool * pool; /* 64 + 8 */
9 struct rte_mbuf * next; /* 72 + 8 */
10 uint64_t union tx_offload; /* 80 + 8 */
11 uint16_t priv_size; /* 88 + 2 */
uint16_t timesync; /* 90 + 2 */
uint32_t seqn; /* 92 + 4 */
12 struct rte_mbuf_ext_shared_info * shinfo; /* 96 + 8 */
13 uint64_t dynfield1[3]; /* 104 + 24 */
16 /* --- END 128 */
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2020-10-31 16:13:11 +01:00
..
2020-10-22 22:54:05 +02:00
2020-10-22 22:54:05 +02:00
2020-10-27 08:53:53 +01:00
2020-10-22 23:11:58 +02:00
2020-10-22 22:54:05 +02:00
2020-10-20 13:17:08 +02:00
2020-10-01 16:51:24 +02:00
2020-10-20 13:17:08 +02:00
2020-10-20 13:17:08 +02:00
2020-10-22 22:54:05 +02:00
2020-10-22 22:54:05 +02:00
2020-10-22 22:54:05 +02:00
2020-10-31 16:13:11 +01:00
2020-10-22 22:54:05 +02:00
2020-10-14 10:41:26 +02:00
2020-10-31 16:13:11 +01:00
2020-10-31 16:13:11 +01:00
2020-10-29 12:37:51 +01:00
2020-10-22 22:54:05 +02:00
2020-10-22 22:54:05 +02:00
2020-07-08 12:28:21 +02:00
2020-10-16 15:01:54 +02:00
2018-02-14 00:23:25 +01:00
2020-07-21 19:04:05 +02:00
2020-10-05 23:52:02 +02:00