diff options
| author | Jakub Kicinski <[email protected]> | 2019-05-08 23:46:14 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-05-09 18:13:57 +0000 |
| commit | 494bc1d281b5a9f02a81249fa566d8c7e390c50c (patch) | |
| tree | 2633fb42d8ca311f6fa75b4c60b90f7e3514ed68 /include/net/tcp.h | |
| parent | net: aquantia: fix undefined devm_hwmon_device_register_with_info reference (diff) | |
| download | kernel-494bc1d281b5a9f02a81249fa566d8c7e390c50c.tar.gz kernel-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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/net/tcp.h')
| -rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 7cf1181630a3..985aa5db570c 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -2198,7 +2198,7 @@ extern struct static_key_false tcp_have_smc; void clean_acked_data_enable(struct inet_connection_sock *icsk, void (*cad)(struct sock *sk, u32 ack_seq)); void clean_acked_data_disable(struct inet_connection_sock *icsk); - +void clean_acked_data_flush(void); #endif #endif /* _TCP_H */ |
