Lines Matching refs:xsk_map
12 struct xsk_map { struct
14 struct xdp_sock **xsk_map; argument
21 struct xsk_map *m; in xsk_map_alloc() argument
59 m->xsk_map = bpf_map_area_alloc(m->map.max_entries * in xsk_map_alloc()
62 if (!m->xsk_map) in xsk_map_alloc()
75 struct xsk_map *m = container_of(map, struct xsk_map, map); in xsk_map_free()
84 xs = m->xsk_map[i]; in xsk_map_free()
92 bpf_map_area_free(m->xsk_map); in xsk_map_free()
98 struct xsk_map *m = container_of(map, struct xsk_map, map); in xsk_map_get_next_key()
115 struct xsk_map *m = container_of(map, struct xsk_map, map); in __xsk_map_lookup_elem()
121 xs = READ_ONCE(m->xsk_map[key]); in __xsk_map_lookup_elem()
128 struct xsk_map *m = container_of(map, struct xsk_map, map); in __xsk_map_redirect()
144 struct xsk_map *m = container_of(map, struct xsk_map, map); in __xsk_map_flush()
163 struct xsk_map *m = container_of(map, struct xsk_map, map); in xsk_map_update_elem()
194 old_xs = xchg(&m->xsk_map[i], xs); in xsk_map_update_elem()
204 struct xsk_map *m = container_of(map, struct xsk_map, map); in xsk_map_delete_elem()
211 old_xs = xchg(&m->xsk_map[k], NULL); in xsk_map_delete_elem()