Lines Matching refs:index
53 u32 index = *(u32 *)key; in reuseport_array_lookup_elem() local
55 if (unlikely(index >= array->map.max_entries)) in reuseport_array_lookup_elem()
58 return rcu_dereference(array->ptrs[index]); in reuseport_array_lookup_elem()
65 u32 index = *(u32 *)key; in reuseport_array_delete_elem() local
69 if (index >= map->max_entries) in reuseport_array_delete_elem()
72 if (!rcu_access_pointer(array->ptrs[index])) in reuseport_array_delete_elem()
77 sk = rcu_dereference_protected(array->ptrs[index], in reuseport_array_delete_elem()
82 RCU_INIT_POINTER(array->ptrs[index], NULL); in reuseport_array_delete_elem()
241 u32 index = *(u32 *)key; in bpf_fd_reuseport_array_update_elem() local
249 if (index >= map->max_entries) in bpf_fd_reuseport_array_update_elem()
274 rcu_access_pointer(array->ptrs[index]), in bpf_fd_reuseport_array_update_elem()
288 osk = rcu_dereference_protected(array->ptrs[index], in bpf_fd_reuseport_array_update_elem()
296 sk_user_data = (uintptr_t)&array->ptrs[index] | SK_USER_DATA_NOCOPY | in bpf_fd_reuseport_array_update_elem()
299 rcu_assign_pointer(array->ptrs[index], nsk); in bpf_fd_reuseport_array_update_elem()
323 u32 index = key ? *(u32 *)key : U32_MAX; in reuseport_array_get_next_key() local
326 if (index >= array->map.max_entries) { in reuseport_array_get_next_key()
331 if (index == array->map.max_entries - 1) in reuseport_array_get_next_key()
334 *next = index + 1; in reuseport_array_get_next_key()