diff options
author | Jakub Kicinski <[email protected]> | 2021-08-23 11:01:35 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2021-08-24 07:38:21 -0700 |
commit | 95d1d2490c278ea316a4350f4c24818275fb989c (patch) | |
tree | 3e7f3576feec5a7c33d663d434425165e74671d3 /tools/perf/scripts/python/sched-migration.py | |
parent | 18a9eae240cb24d4771fed746c70662c0926a9e8 (diff) |
netdevice: move xdp_rxq within netdev_rx_queue
Both struct netdev_rx_queue and struct xdp_rxq_info are cacheline
aligned. This causes extra padding before and after the xdp_rxq
member. Move the member upfront, so that it's naturally aligned.
Before:
/* size: 256, cachelines: 4, members: 6 */
/* sum members: 160, holes: 1, sum holes: 40 */
/* padding: 56 */
/* paddings: 1, sum paddings: 36 */
/* forced alignments: 1, forced holes: 1, sum forced holes: 40 */
After:
/* size: 192, cachelines: 3, members: 6 */
/* padding: 32 */
/* paddings: 1, sum paddings: 36 */
/* forced alignments: 1 */
Acked-by: Jesper Dangaard Brouer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions