Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ag71xx: rearrange ag71xx structs to remove holes
Remove ____cacheline_aligned attribute to ring structs. This actually causes holes in the ag71xx struct as well as lower performance. Rearrange struct members to fall within respective cachelines. The RX ring struct now does not share a cacheline with the TX ring. The NAPI struct now takes up its own cachelines and does not share. According to pahole -C ag71xx -c 32 Before: struct ag71xx { /* size: 384, cachelines: 12, members: 22 */ /* sum members: 375, holes: 2, sum holes: 9 */ After: struct ag71xx { /* size: 376, cachelines: 12, members: 22 */ /* last cacheline: 24 bytes */ Signed-off-by: Rosen Penev <[email protected]> Signed-off-by: Rui Salvaterra <[email protected]> [Reword and fix typos]
- Loading branch information