aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/generated/netdev-user.c
diff options
context:
space:
mode:
authorStanislav Fomichev <[email protected]>2023-11-27 19:03:07 +0000
committerAlexei Starovoitov <[email protected]>2023-11-29 22:59:40 +0000
commit341ac980eab90ac1f6c22ee9f9da83ed9604d899 (patch)
tree5b12e210a709a24f3b5b68ec466c5b6e044a81c6 /tools/net/ynl/generated/netdev-user.c
parentMerge branch 'selftests-bpf-use-pkg-config-to-determine-ld-flags' (diff)
downloadkernel-341ac980eab90ac1f6c22ee9f9da83ed9604d899.tar.gz
kernel-341ac980eab90ac1f6c22ee9f9da83ed9604d899.zip
xsk: Support tx_metadata_len
For zerocopy mode, tx_desc->addr can point to an arbitrary offset and carry some TX metadata in the headroom. For copy mode, there is no way currently to populate skb metadata. Introduce new tx_metadata_len umem config option that indicates how many bytes to treat as metadata. Metadata bytes come prior to tx_desc address (same as in RX case). The size of the metadata has mostly the same constraints as XDP: - less than 256 bytes - 8-byte aligned (compared to 4-byte alignment on xdp, due to 8-byte timestamp in the completion) - non-zero This data is not interpreted in any way right now. Reviewed-by: Song Yoong Siang <[email protected]> Signed-off-by: Stanislav Fomichev <[email protected]> Reviewed-by: Jakub Kicinski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/net/ynl/generated/netdev-user.c')
0 files changed, 0 insertions, 0 deletions