mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
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>
This commit is contained in:
parent
70610c922b
commit
494bc1d281
3 changed files with 13 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue