prepare interfaces for kTLS and sockmap support
Subsystems (3)
Geliang Tang
reviewerv10 cover prepare interfaces for kTLS and sockmap support
From: Geliang Tang <[email protected]>
v10:
- patch 1, clear app_limited flag in __subflow_push_pending.
v9:
- Move SIOCINQ patches out of this set.
- patch 1, add app_limited flag in struct mptcp_sock, call tcp_rate_check_app_limited in __subflow_push_pending instead of mptcp_sendmsg.
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
v8:
- patch 1: change mptcp_inq_hint() to maintain TCP semantics by adding 1
to hint_val when RCV_SHUTDOWN is set or sk_state is TCP_CLOSE, matching TCP behavior where FIN consumes a sequence number.
- patch 2: update the test.
- patches 3-7: no changes.
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
v7:
- patch 1: add 1 to hint_val when RCV_SHUTDOWN is set to include the FIN
byte, matching the previous ack_seq - map_seq behavior. Simplify the
EOF condition accordingly.
- patch 2: replace poll()-based check with a wait_for_remote_key() helper
that polls MPTCP_INFO until MPTCP_INFO_FLAG_REMOTE_KEY_RECEIVED is set, ensuring the third ACK has been processed before checking SIOCINQ. Add SOL_MPTCP fallback definition and handle ENOPROTOOPT/EOPNOTSUPP for
TCP or fallback sockets.
- patches 3-7: no changes.
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
v6:
- patch 2: add Fixes tag, and use '-net' prefix.
- patch 3: remove poll() call, check SIOCINQ directly after accept().
- patch 6: add READ_ONCE() for msk->flags and msk->cb_flags reads in mptcp_rate_check_app_limited() to annotate intentionally racy accesses.
- update commit logs.
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
v5:
- patch 2: new patch - rewrite mptcp_inq_hint() to use mptcp_data_avail() instead of ack_seq - map_seq, completely avoiding TFO overflow issues.
- patch 3: new patch - add TFO SIOCINQ overflow detection in
mptcp_connect test to catch INT_MAX returns on TFO connections.
- patch 4: mptcp_inq() now returns INT_MAX instead of 0 when avail >=
INT_MAX. Removed mptcp_inq_hint() changes (moved to patch 2).
- patch 6: replace mptcp_rtx_head() check with MPTCP_WORK_RTX and MPTCP_RETRANSMIT flag checks in mptcp_rate_check_app_limited() to
properly detect pending retransmissions without data race issues.
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
v4:
- patch 2: fix mptcp_inq_hint() to return 0 instead of INT_MAX on
passive TFO overflow (ack_seq - map_seq >= INT_MAX).
- patch 4: add mptcp_rtx_head(sk) to the early-return check in mptcp_rate_check_app_limited() so pending retransmissions also
prevent false app-limited marking.
- patch 5: update comment message.
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
v3:
- patch 2: drop DATA_FIN subtraction in mptcp_inq(), remove the
intermediate 'answ' variable and return (unsigned int)avail
directly. Update commit message accordingly.
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
v2:
- drop the patch "prevent dummy DATA_FIN on RST in fallback mode".
- keep mptcp_inq_hint in mptcp_ioctl unchanged.
- use mptcp_data_avail in mptcp_inq.
- add msk_owned_by_me check in mptcp_sendmsg_locked.
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
v1:
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
This series was previously posted as part of "Reduce the differences between TCP and MPTCP for TLS usage" v15. It creates the mptcp_inq() and mptcp_sendmsg_locked() interfaces that are required for the upcoming MPTCP kTLS and MPTCP sockmap implementations.
The series has been rebased and no longer depends on Paolo's CB layout refactoring patches (mptcp: drop the mptcp_ooo_try_coalesce() helper,
mptcp: drop the cant_coalesce CB field, mptcp: remove CB offset field,
mptcp: sync mptcp skb cb layout with tcp one, mptcp: defer read_sock cleanup to mptcp_worker). Those patches are more complex and will be sent in a separate series.
Gang Yan (1):
mptcp: update mptcp_check_readable
Geliang Tang (3):
mptcp: track app-limited state in mptcp_sendmsg
selftests: mptcp: sockopt: check app_limited
mptcp: add sendmsg_locked to proto_ops
net/mptcp/protocol.c | 51 ++++++++++++++++--- net/mptcp/protocol.h | 3 +- .../selftests/net/mptcp/mptcp_sockopt.c | 7 +++ 3 files changed, 53 insertions(+), 8 deletions(-)
Signature · 1 line
2.55.0
Geliang Tang
reviewerPATCH v10 1/4 mptcp: track app-limited state in mptcp_sendmsg
From: Geliang Tang <[email protected]>
Add mptcp_rate_check_app_limited() that evaluates MPTCP-level conditions (write_seq == snd_nxt, no pending dfrags, no pending retransmission) and stores the result in msk->app_limited. Called from mptcp_sendmsg() before the data copy loop. In __subflow_push_pending(), if msk->app_limited is set, call tcp_rate_check_app_limited() on the scheduled subflow, then clear the flag so it is consumed only once. This mirrors TCP's once-per-sendmsg check and prevents later pushes from re-marking the subflow while unsent dfrags are still queued, which would let BBR treat non-app-limited samples as application-limited.
--- net/mptcp/protocol.c | 22 ++++++++++++++++++++++ net/mptcp/protocol.h | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-)
net/mptcp/protocol.c +22 -0
@@ -1815,6 +1815,11 @@ static int __subflow_push_pending(struct sock *sk, struct sock *ssk,struct mptcp_data_frag *dfrag;int len, copied =0 , err =0 ; +if (msk->app_limited) { +tcp_rate_check_app_limited (ssk); + msk->app_limited =0 ; + } +while ((dfrag =mptcp_send_head (sk))) { info->sent = dfrag->already_sent; info->limit = dfrag->data_len;
@@ -2112,6 +2117,20 @@ static void mptcp_rps_record_subflows(const struct mptcp_sock *msk) } } +static void mptcp_rate_check_app_limited (struct sock *sk) +{ +struct mptcp_sock *msk =mptcp_sk (sk); +unsigned long flags, cb_flags; + + flags =READ_ONCE (msk->flags); + cb_flags =READ_ONCE (msk->cb_flags); + + msk->app_limited = msk->write_seq == msk->snd_nxt && + !mptcp_send_head (sk) && + !test_bit (MPTCP_WORK_RTX , &flags) && + !test_bit (MPTCP_RETRANSMIT , &cb_flags); +} +static int mptcp_sendmsg (struct sock *sk,struct msghdr *msg,size_t len) {struct mptcp_sock *msk =mptcp_sk (sk);
@@ -2142,6 +2161,9 @@ static int mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) timeo =sock_sndtimeo (sk, msg->msg_flags &MSG_DONTWAIT ); +/* is sending application-limited? */ +mptcp_rate_check_app_limited (sk); +if ((1 << sk->sk_state) & ~(TCPF_ESTABLISHED |TCPF_CLOSE_WAIT )) { ret =sk_stream_wait_connect (sk, &timeo);if (ret)
net/mptcp/protocol.h +2 -1
@@ -349,7 +349,8 @@ struct mptcp_sock { in_accept_queue:1, free_first:1, rcvspace_init:1, - fastclosing:1; + fastclosing:1, + app_limited:1;u32 notsent_lowat;int keepalive_cnt;int keepalive_idle;
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH mptcp-next v10 1/4] mptcp: track app-limited state in mptcp_sendmsg
Thank you for your contribution! Sashiko AI review found 4 potential issues to consider: - [Medium] mptcp: stale msk->app_limited persists past mptcp_sendmsg() into later pushes - [Medium] mptcp…
Thank you for your contribution! Sashiko AI review found 4 potential issues to consider:
- [Medium] mptcp: stale msk->app_limited persists past mptcp_sendmsg() into later pushes
- [Medium] mptcp: clearing msk->app_limited on first subflow skips other subflows
- [Low] mptcp: unlocked read of msk->cb_flags in mptcp_rate_check_app_limited()
- [Low] mptcp: overflowing u8 bitfield with app_limited grows struct mptcp_sock
--
commit e31ed458b18e6de3bbc4393082fedf86b119c7a2
Author: Geliang Tang <[email protected]>
mptcp: track app-limited state in mptcp_sendmsg
This commit adds mptcp_rate_check_app_limited() to latch MPTCP-level application-limited state in msk->app_limited at the start of mptcp_sendmsg(), and consumes it in __subflow_push_pending() by calling tcp_rate_check_app_limited() on the scheduled subflow.
Quoted 6 lines
net/mptcp/protocol.c +0
-0@@ -1815,6 +1815,11 @@ static int __subflow_push_pending(struct sock *sk, struct sock *ssk,struct mptcp_data_frag *dfrag;
net/mptcp/protocol.c static int __subflow_push_pending(struct sock *sk, struct sock *ssk, · line 1825
Quoted 10 lines
net/mptcp/protocol.c +5
-0int len, copied =0 , err =0 ; +if (msk->app_limited) { +tcp_rate_check_app_limited (ssk); + msk->app_limited =0 ; + } +while ((dfrag =mptcp_send_head (sk))) { info->sent = dfrag->already_sent; info->limit = dfrag->data_len;
[Severity: Medium]
Does clearing msk->app_limited here skip tcp_rate_check_app_limited() on other idle subflows?
When a burst after an idle gap exceeds MPTCP_SEND_BURST_SIZE (or a scheduler marks multiple subflows in one mptcp_sched_get_send() call), __mptcp_push_pending() pushes across multiple subflows, but every subflow after the first sees msk->app_limited == 0. Because mptcp_subflow_get_send() compares linger_time with strict less-than, the first idle subflow on conn_list is always picked first and clears the flag, leaving secondary subflows running BBR to treat app-limited samples as non-app-limited.
Clearing msk->app_limited before mptcp_sendmsg_frag() also loses the flag when the first scheduled subflow fails to enqueue any data, so the next subflow that actually transmits misses the check.
Quoted 11 lines
net/mptcp/protocol.c +7
-0@@ -2112,6 +2117,20 @@ static void mptcp_rps_record_subflows(const struct mptcp_sock *msk) } } +static void mptcp_rate_check_app_limited (struct sock *sk) +{ +struct mptcp_sock *msk =mptcp_sk (sk); +unsigned long flags, cb_flags; + + flags =READ_ONCE (msk->flags); + cb_flags =READ_ONCE (msk->cb_flags);
net/mptcp/protocol.c static void mptcp_rps_record_subflows(const struct mptcp_sock *msk) · line 2136
Quoted 10 lines
net/mptcp/protocol.c +7
-0+ + msk->app_limited = msk->write_seq == msk->snd_nxt && + !mptcp_send_head (sk) && + !test_bit (MPTCP_WORK_RTX , &flags) && + !test_bit (MPTCP_RETRANSMIT , &cb_flags); +} +static int mptcp_sendmsg (struct sock *sk,struct msghdr *msg,size_t len) {struct mptcp_sock *msk =mptcp_sk (sk);
[Severity: Low]
Is reading msk->cb_flags without mptcp_data_lock(sk) a data race?
mptcp_sendmsg() holds lock_sock(sk) without mptcp_data_lock(sk), while softirq and timer handlers modify msk->cb_flags with non-atomic __set_bit() under bh_lock_sock(sk) specifically when sock_owned_by_user() is true:
CPU0 CPU1 (<softirq>)mptcp_sendmsg()
lock_sock(sk)
mptcp_rate_check_app_limited()
READ_ONCE(msk->cb_flags) mptcp_retransmit_timer()
bh_lock_sock(sk)
__set_bit(MPTCP_RETRANSMIT,
&msk->cb_flags) <-- data racePairing an unmarked non-atomic __set_bit() with an unlocked READ_ONCE() violates msk->cb_flags locking and triggers KCSAN under CONFIG_KCSAN_STRICT=y.
net/mptcp/protocol.c static int mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) · line 2169
Quoted 10 lines
net/mptcp/protocol.c +3
-0@@ -2142,6 +2161,9 @@ static int mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) timeo =sock_sndtimeo (sk, msg->msg_flags &MSG_DONTWAIT ); +/* is sending application-limited? */ +mptcp_rate_check_app_limited (sk); +if ((1 << sk->sk_state) & ~(TCPF_ESTABLISHED |TCPF_CLOSE_WAIT )) { ret =sk_stream_wait_connect (sk, &timeo);if (ret)
[Severity: Medium]
Can msk->app_limited remain stale past this mptcp_sendmsg() call and falsely mark a later push as application-limited?
msk->app_limited is only cleared inside __subflow_push_pending(). Because __mptcp_sync_sndbuf() sets sk->sk_sndbuf larger than each subflow's sk_sndbuf, a prior push routinely drains msk->rtx_queue (leaving write_seq == snd_nxt and !mptcp_send_head(sk)) while filling ssk so !sk_stream_memory_free(ssk). On the next back-to-back mptcp_sendmsg(), mptcp_rate_check_app_limited() sets msk->app_limited = 1, the copy loop enqueues new dfrags, and __mptcp_push_pending() breaks out when mptcp_sched_get_send() finds no subflow with free memory.
msk->app_limited then stays 1 while unsent dfrags sit queued. When an ACK later drains ssk and triggers ack_update_msk() -> __mptcp_check_push() -> __subflow_push_pending(), it consumes the stale flag and calls tcp_rate_check_app_limited(ssk), letting BBR misclassify non-app-limited samples and degrading bandwidth estimation.
The same stale flag survives across sk_stream_wait_memory() when msk's send buffer is full, as well as early exits with copied == 0. Clearing msk->app_limited before sleeping in wait_for_memory and on exit from mptcp_sendmsg() would keep it scoped to the current send.
Quoted 5 lines
net/mptcp/protocol.h +0
-0
net/mptcp/protocol.h struct mptcp_sock { · line 356
Quoted 9 lines
net/mptcp/protocol.h +2
-1@@ -349,7 +349,8 @@ struct mptcp_sock { in_accept_queue:1, free_first:1, rcvspace_init:1, - fastclosing:1; + fastclosing:1, + app_limited:1;u32 notsent_lowat;int keepalive_cnt;int keepalive_idle;
[Severity: Low]
Does adding app_limited:1 as a 9th bit to this u8 bitfield grow struct mptcp_sock by 8 bytes?
Overflowing the 8-bit group adds 3 bytes of padding before notsent_lowat and 4 bytes of padding after maxseg before struct work_struct work, enlarging both struct mptcp_sock and struct mptcp6_sock. Placing a bool app_limited in the existing 2-byte hole between allow_subflows and subflow_id avoids any size increase.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Geliang Tang
reviewerPATCH v10 2/4 selftests: mptcp: sockopt: check app_limited
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
After a small data exchange, assert tcpi_delivery_rate_app_limited == 1 and tcpi_delivery_rate > 0 when expect_all_features() is enabled.
rate_app_limited starts at 1 (tcp_init_sock) and is cleared only by non-app-limited rate samples. The preceding commit evaluates MPTCP-level conditions in mptcp_rate_check_app_limited(), stores the result in msk->app_limited, and calls tcp_rate_check_app_limited() on each scheduled subflow during push. This marks outgoing skbs as app-limited so rate samples don't clear rate_app_limited.
The tcpi_delivery_rate > 0 check confirms a rate sample was actually measured, not just the initial value of 1.
--- tools/testing/selftests/net/mptcp/mptcp_sockopt.c | 7 +++++++ 1 file changed, 7 insertions(+)
tools/testing/selftests/net/mptcp/mptcp_sockopt.c +7 -0
@@ -635,6 +635,13 @@ static void connect_one_server(int fd, int pipefd)do_getsockopts (&s, fd, total, total);assert (s.mptcpi_rcv_delta == (uint64_t )total); + +/* app-limited accounting only checked under EXPECT_ALL_FEATURES */ +if (expect_all_features ()) { +assert (s.tcp_info.tcpi_delivery_rate_app_limited ==1 ); +assert (s.tcp_info.tcpi_delivery_rate >0 ); + } +close (fd); }
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH mptcp-next v10 2/4] selftests: mptcp: sockopt: check app_limited
Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Low] selftests: mptcp: commit message misstates app_limited subflow push behavior - [Low] selftests…
Thank you for your contribution! Sashiko AI review found 2 potential issues to consider:
- [Low] selftests: mptcp: commit message misstates app_limited subflow push behavior
- [Low] selftests: mptcp: tcpi_delivery_rate > 0 check flakes on 0-us loopback RTT
--
commit 042e6ce0b42dd2699eec6851a0abd9b2fc579482
Author: Geliang Tang <[email protected]>
selftests: mptcp: sockopt: check app_limited
This commit adds assertions in connect_one_server() to verify that tcpi_delivery_rate_app_limited is 1 and tcpi_delivery_rate is positive after a small data exchange when expect_all_features() is enabled.
Quoted 4 lines
The preceding commit evaluates MPTCP-level
conditions inmptcp_rate_check_app_limited(), stores the result inmsk->app_limited, and callstcp_rate_check_app_limited()on each scheduled subflow during push.
[Severity: Low]
Is this description of the preceding commit accurate? In commit "mptcp: track app-limited state in mptcp_sendmsg", __subflow_push_pending() clears msk->app_limited right after calling tcp_rate_check_app_limited(ssk), so it only runs on the first scheduled subflow rather than each scheduled subflow.
Quoted 5 lines
tools/testing/selftests/net/mptcp/mptcp_sockopt.c +0
-0
tools/testing/selftests/net/mptcp/mptcp_sockopt.c static void connect_one_server(int fd, int pipefd) · line 643
Quoted 9 lines
tools/testing/selftests/net/mptcp/mptcp_sockopt.c +6
-0@@ -635,6 +635,13 @@ static void connect_one_server(int fd, int pipefd)do_getsockopts (&s, fd, total, total);assert (s.mptcpi_rcv_delta == (uint64_t )total); + +/* app-limited accounting only checked under EXPECT_ALL_FEATURES */ +if (expect_all_features ()) { +assert (s.tcp_info.tcpi_delivery_rate_app_limited ==1 ); +assert (s.tcp_info.tcpi_delivery_rate >0 ); + }
[Severity: Low]
Can assert(s.tcp_info.tcpi_delivery_rate > 0) flake over loopback when the exchange finishes within a single microsecond tick?
SYN-ACK does not record a rate sample because tcp_connect() increments tp->packets_out before tcp_rate_skb_sent(), leaving the SYN's tx.delivered_mstamp at 0. connect_one_server() then sends a single small segment over loopback with no delay.
If both transmit and ACK processing read the same microsecond timestamp, rs->interval_us is 0 while tcp_update_rtt_min() clamps tcp_min_rtt(tp) to at least jiffies_to_usecs(1). tcp_rate_gen() then drops the sole rate sample, leaving tcpi_delivery_rate at 0 and aborting the test.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Geliang Tang
reviewerPATCH v10 3/4 mptcp: add sendmsg_locked to proto_ops
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
MPTCP currently provides a standard sendmsg() implementation which acquires and releases the socket lock internally. However, certain upper layers need to call the sendmsg method while the socket lock is already held.
Split the existing mptcp_sendmsg() into mptcp_sendmsg_locked() which assumes the caller holds the socket lock, and a tiny wrapper mptcp_sendmsg() that acquires the lock and calls the locked version. Add msk_owned_by_me() assertion to enforce the locking requirement. Expose .sendmsg_locked in both mptcp_stream_ops and mptcp_v6_stream_ops.
Unlike tcp_sendmsg_locked(), mptcp_sendmsg_locked() drops the MSG_SPLICE_PAGES flag from the mask. Future kTLS and sockmap support will require additional changes to call through proto_ops->sendmsg_locked instead of tcp_sendmsg_locked() directly.
--- net/mptcp/protocol.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-)
net/mptcp/protocol.c +16 -4
@@ -2131,7 +2131,7 @@ static void mptcp_rate_check_app_limited(struct sock *sk) !test_bit (MPTCP_RETRANSMIT , &cb_flags); } -static int mptcp_sendmsg (struct sock *sk,struct msghdr *msg,size_t len) +static int mptcp_sendmsg_locked (struct sock *sk,struct msghdr *msg,size_t len) {struct mptcp_sock *msk =mptcp_sk (sk);struct page_frag *pfrag;
@@ -2139,12 +2139,12 @@ static int mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)int ret =0 ;long timeo; +msk_owned_by_me (msk); +/* silently ignore everything else */ msg->msg_flags &=MSG_MORE |MSG_DONTWAIT |MSG_NOSIGNAL |MSG_FASTOPEN |MSG_EOR ; -lock_sock (sk); -mptcp_rps_record_subflows (msk); if (unlikely(inet_test_bit(DEFER_CONNECT, sk) ||
@@ -2263,7 +2263,6 @@ static int mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) } out: -release_sock (sk);return copied; do_error:
@@ -2276,6 +2275,17 @@ static int mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) goto out; } +static int mptcp_sendmsg (struct sock *sk,struct msghdr *msg,size_t len) +{ +int ret; + +lock_sock (sk); + ret =mptcp_sendmsg_locked (sk, msg, len); +release_sock (sk); + +return ret; +} +static void mptcp_rcv_space_adjust (struct mptcp_sock *msk,int copied);static void mptcp_eat_recv_skb (struct sock *sk,struct sk_buff *skb)
@@ -5094,6 +5104,7 @@ static const struct proto_ops mptcp_stream_ops = { .set_rcvlowat = mptcp_set_rcvlowat, .read_sock = mptcp_read_sock, .splice_read = mptcp_splice_read, + .sendmsg_locked = mptcp_sendmsg_locked, };static struct inet_protosw mptcp_protosw = {
@@ -5213,6 +5224,7 @@ static const struct proto_ops mptcp_v6_stream_ops = { .set_rcvlowat = mptcp_set_rcvlowat, .read_sock = mptcp_read_sock, .splice_read = mptcp_splice_read, + .sendmsg_locked = mptcp_sendmsg_locked, };static struct proto mptcp_v6_prot;
Signature · 1 line
2.55.0
Geliang Tang
reviewerPATCH v10 4/4 mptcp: update mptcp_check_readable
In reply to Geliang TangFrom: Gang Yan <[email protected]>
This patch makes mptcp_check_readable() aligned with TCP, and renames it to mptcp_stream_is_readable(). It will be used in the case of KTLS, because 'prot' will be modified, tls_sw_sock_is_readable() is expected to be called from prot->sock_is_readable().
--- net/mptcp/protocol.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
net/mptcp/protocol.c +6 -3
@@ -3738,9 +3738,11 @@ void __mptcp_unaccepted_force_close(struct sock *sk)__mptcp_destroy_sock (sk); } -static __poll_t mptcp_check_readable (struct sock *sk) +static bool mptcp_stream_is_readable (struct sock *sk) { -return mptcp_epollin_ready (sk) ?EPOLLIN |EPOLLRDNORM :0 ; +if (mptcp_epollin_ready (sk)) +return true; +return sk_is_readable (sk); }static void mptcp_check_listen_stop (struct sock *sk)
@@ -4868,7 +4870,8 @@ static __poll_t mptcp_poll(struct file *file, struct socket *sock, mask |=EPOLLIN |EPOLLRDNORM |EPOLLRDHUP ;if (state !=TCP_SYN_SENT && state !=TCP_SYN_RECV ) { - mask |=mptcp_check_readable (sk); +if (mptcp_stream_is_readable (sk)) + mask |=EPOLLIN |EPOLLRDNORM ;if (shutdown &SEND_SHUTDOWN ) mask |=EPOLLOUT |EPOLLWRNORM ;else
Signature · 1 line
2.55.0