Searched refs:UMEM_NUM (Results 1 – 2 of 2) sorted by relevance
26 #define UMEM_NUM 16 macro28 #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()
43 #define UMEM_NUM 256 macro45 #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()