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:

committed by
David S. Miller

parent
70610c922b
commit
494bc1d281
@@ -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 */
|
||||
|
Reference in New Issue
Block a user