Skip to content

Commit caac76a

Browse files
jrfastabborkmann
authored andcommitted
bpf: sockhash, add release routine
Add map_release_uref pointer to hashmap ops. This was dropped when original sockhash code was ported into bpf-next before initial commit. Fixes: 8111038 ("bpf: sockmap, add hash map support") Acked-by: Martin KaFai Lau <[email protected]> Signed-off-by: John Fastabend <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
1 parent e9db4ef commit caac76a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/bpf/sockmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2496,6 +2496,7 @@ const struct bpf_map_ops sock_hash_ops = {
24962496
.map_get_next_key = sock_hash_get_next_key,
24972497
.map_update_elem = sock_hash_update_elem,
24982498
.map_delete_elem = sock_hash_delete_elem,
2499+
.map_release_uref = sock_map_release,
24992500
};
25002501

25012502
BPF_CALL_4(bpf_sock_map_update, struct bpf_sock_ops_kern *, bpf_sock,

0 commit comments

Comments
 (0)