diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-05-09 01:46:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-09 20:13:57 +0200 |
commit | 494bc1d281b5a9f02a81249fa566d8c7e390c50c (patch) | |
tree | 2633fb42d8ca311f6fa75b4c60b90f7e3514ed68 /net/tls | |
parent | net: aquantia: fix undefined devm_hwmon_device_register_with_info reference (diff) | |
download | linux-494bc1d281b5a9f02a81249fa566d8c7e390c50c.tar.xz linux-494bc1d281b5a9f02a81249fa566d8c7e390c50c.zip |
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>
Diffstat (limited to 'net/tls')
-rw-r--r-- | net/tls/tls_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tls/tls_device.c b/net/tls/tls_device.c index e225c81e6b35..ad1580ac097a 100644 --- a/net/tls/tls_device.c +++ b/net/tls/tls_device.c @@ -1036,4 +1036,5 @@ void __exit tls_device_cleanup(void) { unregister_netdevice_notifier(&tls_dev_notifier); flush_work(&tls_device_gc_work); + clean_acked_data_flush(); } |