Home
last modified time | relevance | path

Searched refs:UMEM_NUM (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dxdp_metadata.c26 #define UMEM_NUM 16 macro
28 #define UMEM_SIZE (UMEM_FRAME_SIZE * UMEM_NUM)
104 for (i = 0; i < UMEM_NUM / 2; i++) { in open_xsk()
111 ret = xsk_ring_prod__reserve(&xsk->fill, UMEM_NUM / 2, &idx); in open_xsk()
112 if (!ASSERT_EQ(UMEM_NUM / 2, ret, "xsk_ring_prod__reserve")) in open_xsk()
117 for (i = 0; i < UMEM_NUM / 2; i++) { in open_xsk()
118 addr = (UMEM_NUM / 2 + i) * UMEM_FRAME_SIZE; in open_xsk()
169 tx_desc->addr = idx % (UMEM_NUM / 2) * UMEM_FRAME_SIZE + sizeof(struct xsk_tx_metadata); in generate_packet()
/linux-6.12.1/tools/testing/selftests/bpf/
Dxdp_hw_metadata.c43 #define UMEM_NUM 256 macro
45 #define UMEM_SIZE (UMEM_FRAME_SIZE * UMEM_NUM)
114 for (i = 0; i < UMEM_NUM / 2; i++) { in open_xsk()
121 ret = xsk_ring_prod__reserve(&xsk->fill, UMEM_NUM / 2, &idx); in open_xsk()
122 for (i = 0; i < UMEM_NUM / 2; i++) { in open_xsk()
123 addr = (UMEM_NUM / 2 + i) * UMEM_FRAME_SIZE; in open_xsk()
345 tx_desc->addr = idx % (UMEM_NUM / 2) * UMEM_FRAME_SIZE + sizeof(struct xsk_tx_metadata); in ping_pong()