set XDP_UMEM_TX_METADATA_LEN flag to reserve tx_metadata_len bytes of per-chunk metadata.
Fixes: d5e726d9143c ("xsk: Require XDP_UMEM_TX_METADATA_LEN to actuate tx_metadata_len") Cc: stable@vger.kernel.org # v6.11 Signed-off-by: Song Yoong Siang yoong.siang.song@intel.com Acked-by: Stanislav Fomichev sdf@fomichev.me --- v1: https://patchwork.kernel.org/project/netdevbpf/patch/20241204115715.3148412-...
v1->v2 changelog: - Add Fixes tag (Stanislav). - Add stable@vger.kernel.org in email cc list. - Separate the patch into two, current one submit to bpf, another one submit to bpf-next. - Update the commit title. --- tools/testing/selftests/bpf/xdp_hw_metadata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/bpf/xdp_hw_metadata.c b/tools/testing/selftests/bpf/xdp_hw_metadata.c index 6f9956eed797..ad6c08dfd6c8 100644 --- a/tools/testing/selftests/bpf/xdp_hw_metadata.c +++ b/tools/testing/selftests/bpf/xdp_hw_metadata.c @@ -79,7 +79,7 @@ static int open_xsk(int ifindex, struct xsk *xsk, __u32 queue_id) .fill_size = XSK_RING_PROD__DEFAULT_NUM_DESCS, .comp_size = XSK_RING_CONS__DEFAULT_NUM_DESCS, .frame_size = XSK_UMEM__DEFAULT_FRAME_SIZE, - .flags = XSK_UMEM__DEFAULT_FLAGS, + .flags = XDP_UMEM_TX_METADATA_LEN, .tx_metadata_len = sizeof(struct xsk_tx_metadata), }; __u32 idx = 0;
Hello:
This patch was applied to bpf/bpf-next.git (net) by Martin KaFai Lau martin.lau@kernel.org:
On Thu, 5 Dec 2024 12:42:58 +0800 you wrote:
set XDP_UMEM_TX_METADATA_LEN flag to reserve tx_metadata_len bytes of per-chunk metadata.
Fixes: d5e726d9143c ("xsk: Require XDP_UMEM_TX_METADATA_LEN to actuate tx_metadata_len") Cc: stable@vger.kernel.org # v6.11 Signed-off-by: Song Yoong Siang yoong.siang.song@intel.com Acked-by: Stanislav Fomichev sdf@fomichev.me
[...]
Here is the summary with links: - [bpf,v2,1/1] selftests/bpf: Actuate tx_metadata_len in xdp_hw_metadata https://git.kernel.org/bpf/bpf-next/c/0bee36d1a513
You are awesome, thank you!
linux-kselftest-mirror@lists.linaro.org