Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d74286d2 authored by Joe Stringer's avatar Joe Stringer Committed by Alexei Starovoitov
Browse files

bpf: Improve socket lookup reuseport documentation



Improve the wording around socket lookup for reuseport sockets, and
ensure that both bpf.h headers are in sync.

Signed-off-by: default avatarJoe Stringer <joe@wand.net.nz>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent f71c6143
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2203,6 +2203,8 @@ union bpf_attr {
 *		**CONFIG_NET** configuration option.
 *	Return
 *		Pointer to *struct bpf_sock*, or NULL in case of failure.
 *		For sockets with reuseport option, the *struct bpf_sock*
 *		result is from reuse->socks[] using the hash of the tuple.
 *
 * struct bpf_sock *bpf_sk_lookup_udp(void *ctx, struct bpf_sock_tuple *tuple, u32 tuple_size, u64 netns, u64 flags)
 *	Description
@@ -2237,6 +2239,8 @@ union bpf_attr {
 *		**CONFIG_NET** configuration option.
 *	Return
 *		Pointer to *struct bpf_sock*, or NULL in case of failure.
 *		For sockets with reuseport option, the *struct bpf_sock*
 *		result is from reuse->socks[] using the hash of the tuple.
 *
 * int bpf_sk_release(struct bpf_sock *sk)
 *	Description
+4 −4
Original line number Diff line number Diff line
@@ -2203,8 +2203,8 @@ union bpf_attr {
 *		**CONFIG_NET** configuration option.
 *	Return
 *		Pointer to *struct bpf_sock*, or NULL in case of failure.
 *		For sockets with reuseport option, *struct bpf_sock*
 *		return is from reuse->socks[] using hash of the packet.
 *		For sockets with reuseport option, the *struct bpf_sock*
 *		result is from reuse->socks[] using the hash of the tuple.
 *
 * struct bpf_sock *bpf_sk_lookup_udp(void *ctx, struct bpf_sock_tuple *tuple, u32 tuple_size, u64 netns, u64 flags)
 *	Description
@@ -2239,8 +2239,8 @@ union bpf_attr {
 *		**CONFIG_NET** configuration option.
 *	Return
 *		Pointer to *struct bpf_sock*, or NULL in case of failure.
 *		For sockets with reuseport option, *struct bpf_sock*
 *		return is from reuse->socks[] using hash of the packet.
 *		For sockets with reuseport option, the *struct bpf_sock*
 *		result is from reuse->socks[] using the hash of the tuple.
 *
 * int bpf_sk_release(struct bpf_sock *sk)
 *	Description