tcp: convert tcp_md5_needed to static_branch API
We prefer static_branch_unlikely() over static_key_false() these days. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a43e052bea
commit
921f9a0f2e
@@ -3699,7 +3699,7 @@ bool tcp_alloc_md5sig_pool(void)
|
||||
if (!tcp_md5sig_pool_populated) {
|
||||
__tcp_alloc_md5sig_pool();
|
||||
if (tcp_md5sig_pool_populated)
|
||||
static_key_slow_inc(&tcp_md5_needed);
|
||||
static_branch_inc(&tcp_md5_needed);
|
||||
}
|
||||
|
||||
mutex_unlock(&tcp_md5sig_mutex);
|
||||
|
Reference in New Issue
Block a user