Searched refs:UMEM_SIZE (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_metadata.c | 28 #define UMEM_SIZE (UMEM_FRAME_SIZE * UMEM_NUM) macro 66 xsk->umem_area = mmap(NULL, UMEM_SIZE, PROT_READ | PROT_WRITE, mmap_flags, -1, 0); in open_xsk() 71 xsk->umem_area, UMEM_SIZE, in open_xsk() 119 munmap(xsk->umem_area, UMEM_SIZE); in close_xsk()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | xdp_hw_metadata.c | 36 #define UMEM_SIZE (UMEM_FRAME_SIZE * UMEM_NUM) macro 76 xsk->umem_area = mmap(NULL, UMEM_SIZE, PROT_READ | PROT_WRITE, mmap_flags, -1, 0); in open_xsk() 81 xsk->umem_area, UMEM_SIZE, in open_xsk() 124 munmap(xsk->umem_area, UMEM_SIZE); in close_xsk()
|