diff options
| author | Alexander Lobakin <[email protected]> | 2025-06-12 16:02:34 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2025-06-16 18:40:15 +0000 |
| commit | 80bae9df2108cb72a060ee5235614d7c072af1de (patch) | |
| tree | 57f41ffd77c44638e528d3d37eb9ed6204e1c141 /drivers/net/netconsole.c | |
| parent | libeth: xsk: add XSkFQ refill and XSk wakeup helpers (diff) | |
| download | kernel-80bae9df2108cb72a060ee5235614d7c072af1de.tar.gz kernel-80bae9df2108cb72a060ee5235614d7c072af1de.zip | |
libeth: xdp, xsk: access adjacent u32s as u64 where applicable
On 64-bit systems, writing/reading one u64 is faster than two u32s even
when they're are adjacent in a struct. The compilers won't guarantee
they will combine those; I observed both successful and unsuccessful
attempts with both GCC and Clang, and it's not easy to say what it
depends on.
There's a few places in libeth_xdp winning up to several percent from
combined access (both performance and object code size, especially
when unrolling). Add __LIBETH_WORD_ACCESS and use it there on LE.
Drivers are free to optimize HW-specific callbacks under the same
definition.
Signed-off-by: Alexander Lobakin <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/netconsole.c')
0 files changed, 0 insertions, 0 deletions
