diff options
author | David Arinzon <darinzon@amazon.com> | 2024-01-01 22:08:47 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-01-04 05:00:57 +0300 |
commit | 009b387659d3c739863b61a9f142e731f5723153 (patch) | |
tree | 5eca752c55d7667ab867486437e152805d198fae /drivers/net/LICENSE.SRC | |
parent | 39a044f4dcfee1c776603a6589b6fb98a9e222f2 (diff) | |
download | linux-009b387659d3c739863b61a9f142e731f5723153.tar.xz |
net: ena: Put orthogonal fields in ena_tx_buffer in a union
The skb and xdpf pointers cannot be set together in the driver
(each TX descriptor can send either an SKB or an XDP frame), and so it
makes more sense to put them both in a union.
This decreases the overall size of the ena_tx_buffer struct which
improves cache locality.
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: David Arinzon <darinzon@amazon.com>
Link: https://lore.kernel.org/r/20240101190855.18739-4-darinzon@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/LICENSE.SRC')
0 files changed, 0 insertions, 0 deletions