diff options
| author | Maxim Galaganov <[email protected]> | 2021-12-03 22:35:41 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-12-07 19:36:31 +0000 |
| commit | 4f6e14bd19d6de7831f31cfb3210f2ea93eeb038 (patch) | |
| tree | 23cdba78ff4fc7a076e445b95a55db44cd213efc /net/switchdev/switchdev.c | |
| parent | mptcp: expose mptcp_check_and_set_pending (diff) | |
| download | kernel-4f6e14bd19d6de7831f31cfb3210f2ea93eeb038.tar.gz kernel-4f6e14bd19d6de7831f31cfb3210f2ea93eeb038.zip | |
mptcp: support TCP_CORK and TCP_NODELAY
First, add cork and nodelay fields to the mptcp_sock structure
so they can be used in sync_socket_options(), and fill them on setsockopt
while holding the msk socket lock.
Then, on setsockopt set proper tcp_sk(ssk)->nonagle values for subflows
by calling __tcp_sock_set_cork() or __tcp_sock_set_nodelay() on the ssk
while holding the ssk socket lock.
tcp_push_pending_frames() will be invoked on the ssk if a cork was cleared
or nodelay was set. Also set MPTCP_PUSH_PENDING bit by calling
mptcp_check_and_set_pending(). This will lead to __mptcp_push_pending()
being called inside mptcp_release_cb() with new tcp_sk(ssk)->nonagle.
Also add getsockopt support for TCP_CORK and TCP_NODELAY.
Acked-by: Paolo Abeni <[email protected]>
Reviewed-by: Matthieu Baerts <[email protected]>
Signed-off-by: Maxim Galaganov <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
