Thread (21 messages) 21 messages, 4 authors, 2023-12-07

Re: [PATCH bpf-next v6 01/13] xsk: Support tx_metadata_len

From: Jakub Kicinski <kuba@kernel.org>
Date: 2023-11-28 03:09:40
Also in: bpf

On Mon, 27 Nov 2023 11:03:07 -0800 Stanislav Fomichev wrote:
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: Jakub Kicinski <kuba@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help