net/tcp: use deferred jump label for TCP acked data hook
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 8 May 2019 23:46:14 +0000 (16:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 May 2019 18:13:57 +0000 (11:13 -0700)
commit494bc1d281b5a9f02a81249fa566d8c7e390c50c
tree2633fb42d8ca311f6fa75b4c60b90f7e3514ed68
parent70610c922bae2f3f974eef955ef254defb7755ce
net/tcp: use deferred jump label for TCP acked data hook

User space can flip the clean_acked_data_enabled static branch
on and off with TLS offload when CONFIG_TLS_DEVICE is enabled.
jump_label.h suggests we use the delayed version in this case.

Deferred branches now also don't take the branch mutex on
decrement, so we avoid potential locking issues.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_input.c
net/tls/tls_device.c