Lines Matching refs:index
52 u32 index = *(u32 *)key; in reuseport_array_lookup_elem() local
54 if (unlikely(index >= array->map.max_entries)) in reuseport_array_lookup_elem()
57 return rcu_dereference(array->ptrs[index]); in reuseport_array_lookup_elem()
64 u32 index = *(u32 *)key; in reuseport_array_delete_elem() local
68 if (index >= map->max_entries) in reuseport_array_delete_elem()
71 if (!rcu_access_pointer(array->ptrs[index])) in reuseport_array_delete_elem()
76 sk = rcu_dereference_protected(array->ptrs[index], in reuseport_array_delete_elem()
81 RCU_INIT_POINTER(array->ptrs[index], NULL); in reuseport_array_delete_elem()
254 u32 index = *(u32 *)key; in bpf_fd_reuseport_array_update_elem() local
261 if (index >= map->max_entries) in bpf_fd_reuseport_array_update_elem()
286 rcu_access_pointer(array->ptrs[index]), in bpf_fd_reuseport_array_update_elem()
300 osk = rcu_dereference_protected(array->ptrs[index], in bpf_fd_reuseport_array_update_elem()
313 WRITE_ONCE(nsk->sk_user_data, &array->ptrs[index]); in bpf_fd_reuseport_array_update_elem()
314 rcu_assign_pointer(array->ptrs[index], nsk); in bpf_fd_reuseport_array_update_elem()
338 u32 index = key ? *(u32 *)key : U32_MAX; in reuseport_array_get_next_key() local
341 if (index >= array->map.max_entries) { in reuseport_array_get_next_key()
346 if (index == array->map.max_entries - 1) in reuseport_array_get_next_key()
349 *next = index + 1; in reuseport_array_get_next_key()