mptcp: introducing a helper into active reset logic
authorJason Xing <kernelxing@tencent.com>
Thu, 25 Apr 2024 03:13:39 +0000 (11:13 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Fri, 26 Apr 2024 13:34:00 +0000 (15:34 +0200)
commit215d40248bde5562a21e4c6cdeaeca0495c9365a
tree726795dc19b0e8b382ca82c213227cdda6bd07b8
parent3e140491dd80d8643261a21efde3ce2ff6fb9fdf
mptcp: introducing a helper into active reset logic

Since we have mapped every mptcp reset reason definition in enum
sk_rst_reason, introducing a new helper can cover some missing places
where we have already set the subflow->reset_reason.

Note: using SK_RST_REASON_NOT_SPECIFIED is the same as
SK_RST_REASON_MPTCP_RST_EUNSPEC. They are both unknown. So we can convert
it directly.

Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c