mptcp: use mptcp_check_fallback helper
authorGeliang Tang <geliang.tang@suse.com>
Wed, 25 Oct 2023 23:37:06 +0000 (16:37 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 27 Oct 2023 15:47:30 +0000 (08:47 -0700)
commit83d580ddbe1b3297c346b24070c23fcf6698393c
tree3b76ccb3328944eafd97561a8d24c0856a6850b0
parent74cbb0c65b2963c1f1b51e2426cf0774ed828bc0
mptcp: use mptcp_check_fallback helper

Use __mptcp_check_fallback() helper defined in net/mptcp/protocol.h,
instead of open-coding it in both __mptcp_do_fallback() and
mptcp_diag_fill_info().

Reviewed-by: Matthieu Baerts <matttbe@kernel.org>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20231025-send-net-next-20231025-v1-5-db8f25f798eb@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.h
net/mptcp/sockopt.c