numam-dpdk/lib/librte_mbuf
Tal Shnaiderman 4887a7e234 mbuf: align layout in Windows
Using uint32_t type bit-fields in Windows will pads the
'L2/L3/L4 and tunnel information' union with additional bits.

This padding causes rte_mbuf size misalignment and the total size
increases to 3 cache-lines.

Changed packet_type bit-fields types from uint32_t to uint8_t
to allow unified 2 cache-line structure size.

Added the __extension__ attribute over the modified struct to avoid
the warning:

type of bit-field ... is a GCC extension [-pedantic]

Signed-off-by: Tal Shnaiderman <talshn@mellanox.com>
Tested-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2020-06-11 16:26:33 +02:00
..
Makefile build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
rte_mbuf_core.h mbuf: align layout in Windows 2020-06-11 16:26:33 +02:00
rte_mbuf_dyn.c mbuf: remove unused next member in dynamic flag/field 2020-06-11 09:32:43 +02:00
rte_mbuf_dyn.h ethdev: extend flow metadata 2019-11-08 23:15:04 +01:00
rte_mbuf_pool_ops.c mbuf: prevent setting mempool ops name empty 2020-04-25 22:56:10 +02:00
rte_mbuf_pool_ops.h mbuf: remove experimental tag from pool ops 2018-07-26 23:37:08 +02:00
rte_mbuf_ptype.c mbuf: add IGMP packet type 2018-10-25 15:51:16 +02:00
rte_mbuf_ptype.h doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
rte_mbuf_version.map mbuf: create pool with external memory buffers 2020-01-20 23:36:38 +01:00
rte_mbuf.c mbuf: fix external buffer pool boundaries 2020-06-11 09:51:46 +02:00
rte_mbuf.h mbuf: optimize memory loads during freeing 2020-03-31 02:57:42 +02:00