diff options
author | Maxim Galaganov <max@internet.ru> | 2021-12-03 14:35:40 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-12-07 11:36:31 -0800 |
commit | 8b38217a2a98df6240c0cddb6f18d04923e24277 (patch) | |
tree | 38499c44dac9fd5c6c507b2047e652d9506068a3 /net/mptcp/protocol.h | |
parent | 6fadaa565882cd7afc501de5921db6f5e45c784b (diff) | |
download | lwn-8b38217a2a98df6240c0cddb6f18d04923e24277.tar.gz lwn-8b38217a2a98df6240c0cddb6f18d04923e24277.zip |
mptcp: expose mptcp_check_and_set_pending
Expose the mptcp_check_and_set_pending() function for use inside MPTCP
sockopt code. The next patch will call it when TCP_CORK is cleared or
TCP_NODELAY is set on the MPTCP socket in order to push pending data
from mptcp_release_cb().
Acked-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Maxim Galaganov <max@internet.ru>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mptcp/protocol.h')
-rw-r--r-- | net/mptcp/protocol.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h index bb51fa7f5566..147b22da41ca 100644 --- a/net/mptcp/protocol.h +++ b/net/mptcp/protocol.h @@ -555,6 +555,7 @@ unsigned int mptcp_stale_loss_cnt(const struct net *net); void mptcp_subflow_fully_established(struct mptcp_subflow_context *subflow, struct mptcp_options_received *mp_opt); bool __mptcp_retransmit_pending_data(struct sock *sk); +void mptcp_check_and_set_pending(struct sock *sk); void __mptcp_push_pending(struct sock *sk, unsigned int flags); bool mptcp_subflow_data_available(struct sock *sk); void __init mptcp_subflow_init(void); |