Re: [PATCH net] net: inet_csk: Fix so_reuseport bind-address cache in tb->fast*

2020-05-19 Thread David Miller
From: Martin KaFai Lau Date: Mon, 18 May 2020 17:13:34 -0700 > The commit 637bc8bbe6c0 ("inet: reset tb->fastreuseport when adding a > reuseport sk") > added a bind-address cache in tb->fast*. The tb->fast* caches the address > of a sk which has successfully been binded with SO_REUSEPORT ON. T

[PATCH net] net: inet_csk: Fix so_reuseport bind-address cache in tb->fast*

2020-05-18 Thread Martin KaFai Lau
The commit 637bc8bbe6c0 ("inet: reset tb->fastreuseport when adding a reuseport sk") added a bind-address cache in tb->fast*. The tb->fast* caches the address of a sk which has successfully been binded with SO_REUSEPORT ON. The idea is to avoid the expensive conflict search in inet_csk_bind_conf