Home
last modified time | relevance | path

Searched hist:"2 a61776366bd17db9ac8c93ec32b8e0ae6b11cf2" (Results 1 – 2 of 2) sorted by relevance

/linux/net/ipv6/
H A Dinet6_hashtables.cdiff 2a61776366bd17db9ac8c93ec32b8e0ae6b11cf2 Thu Jul 20 17:30:09 CEST 2023 Lorenz Bauer <lmb@isovalent.com> net: document inet[6]_lookup_reuseport sk_state requirements

The current implementation was extracted from inet[6]_lhash2_lookup
in commit 80b373f74f9e ("inet: Extract helper for selecting socket
from reuseport group") and commit 5df6531292b5 ("inet6: Extract helper
for selecting socket from reuseport group"). In the original context,
sk is always in TCP_LISTEN state and so did not have a separate check.

Add documentation that specifies which sk_state are valid to pass to
the function.

Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
Link: https://lore.kernel.org/r/20230720-so-reuseport-v6-5-7021b683cdae@isovalent.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
/linux/net/ipv4/
H A Dinet_hashtables.cdiff 2a61776366bd17db9ac8c93ec32b8e0ae6b11cf2 Thu Jul 20 17:30:09 CEST 2023 Lorenz Bauer <lmb@isovalent.com> net: document inet[6]_lookup_reuseport sk_state requirements

The current implementation was extracted from inet[6]_lhash2_lookup
in commit 80b373f74f9e ("inet: Extract helper for selecting socket
from reuseport group") and commit 5df6531292b5 ("inet6: Extract helper
for selecting socket from reuseport group"). In the original context,
sk is always in TCP_LISTEN state and so did not have a separate check.

Add documentation that specifies which sk_state are valid to pass to
the function.

Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
Link: https://lore.kernel.org/r/20230720-so-reuseport-v6-5-7021b683cdae@isovalent.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>