mptcp: Retransmit DATA_FIN
Subsystems (2)
RFC PATCH 1/1 mptcp: Retransmit DATA_FIN
With this change, the MPTCP-level retransmission timer is used to resend DATA_FIN. The retranmit timer is not stopped while waiting for a MPTCP-level ACK of DATA_FIN, and retransmitted DATA_FINs are sent on all subflows.
There are still important things to address to move this beyond a RFC patch:
1. Additional limits on the time that an MPTCP socket waits for a DATA_FIN. Do we need to support TCP_LINGER2?
2. Retransmission rate. In testing, it looks like TCP_RTO_MIN is used, so DATA_FIN is resent every 200ms. Too fast?
3. Testing. Rely on packetdrill?
Signed-off-by Mat Martineau <[email protected]>
--- net/mptcp/protocol.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
net/mptcp/protocol.c +11 -2
@@ -1032,7 +1032,8 @@ static void __mptcp_clean_una(struct sock *sk) } } -if (snd_una ==READ_ONCE (msk->snd_nxt)) { +if (snd_una ==READ_ONCE (msk->snd_nxt) && + !mptcp_data_fin_enabled (msk)) {if (msk->timer_ival)mptcp_stop_timer (sk); }else {
@@ -2247,8 +2248,16 @@ static void __mptcp_retrans(struct sock *sk)__mptcp_clean_una_wakeup (sk); dfrag =mptcp_rtx_head (sk); -if (!dfrag) +if (!dfrag) { +if (mptcp_data_fin_enabled (msk)) { +mptcp_set_timeout (sk,NULL ); +mptcp_send_ack (msk); + + goto reset_timer; + } +return ; + } ssk =mptcp_subflow_get_retrans (msk);if (!ssk)
Signature · 1 line
2.31.1