]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/tcp: Use static_branch_tcp_{md5,ao} to drop ifdefs
authorDmitry Safonov <0x7f454c46@gmail.com>
Thu, 6 Jun 2024 23:25:55 +0000 (00:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2024 05:39:03 +0000 (06:39 +0100)
commit3966a668bfeef49e265e4975a2cdc55fb931036d
treeeaef56e311dde26f4b41d230c49171728d0b7e73
parentd4cea2caee9e16d7eb3d9cfc88ea31f1018e8069
net/tcp: Use static_branch_tcp_{md5,ao} to drop ifdefs

It's possible to clean-up some ifdefs by hiding that
tcp_{md5,ao}_needed static branch is defined and compiled only
under related configs, since commit 4c8530dc7d7d ("net/tcp: Only produce
AO/MD5 logs if there are any keys").

Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_ipv4.c