From: Stanislav Fomichev <redacted>
Date: Mon, 10 Aug 2026 11:47:52 -0700
The zero-copy path reads TX metadata whenever the UMEM has metadata space,
even if the descriptor does not set XDP_TX_METADATA. Pass descriptor
options through the metadata helpers and ignore metadata unless the option
is set.
This does not change the existing per-WQE metadata handling for mlx5
MPWQEs, where the descriptor that starts a session configures offload state
shared by the batch. Supporting mixed metadata states within one MPWQE
requires a separate fix.
Fixes: 48eb03dd2630 ("xsk: Add TX timestamp and TX checksum offload support")
Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Reviwed-by: Alexander Lobakin [off-list ref]
Thanks,
Olek