Message ID | 20220329021401.1196466-2-kishen.maloor@intel.com (mailing list archive) |
---|---|
State | Accepted, archived |
Commit | 427906c8a6990412811894315f4bd8867dc5df13 |
Delegated to: | Matthieu Baerts |
Headers | show |
Series | mptcp: fixes and enhancements related to path management | expand |
Context | Check | Description |
---|---|---|
matttbe/checkpatch | warning | total: 0 errors, 1 warnings, 0 checks, 11 lines checked |
matttbe/build | warning | Build error with: make C=1 net/mptcp/bpf.o |
matttbe/KVM_Validation__normal | warning | Unstable: 1 failed test(s): selftest_mptcp_join |
matttbe/KVM_Validation__debug | warning | Unstable: 2 failed test(s): selftest_mptcp_join selftest_simult_flows |
diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h index fd82fd113113..54d2b3b2d100 100644 --- a/net/mptcp/protocol.h +++ b/net/mptcp/protocol.h @@ -806,9 +806,9 @@ static inline bool mptcp_pm_should_rm_signal(struct mptcp_sock *msk) return READ_ONCE(msk->pm.addr_signal) & BIT(MPTCP_RM_ADDR_SIGNAL); } -static inline bool mptcp_pm_is_userspace(struct mptcp_sock *msk) +static inline bool mptcp_pm_is_userspace(const struct mptcp_sock *msk) { - return READ_ONCE(msk->pm.pm_type) != MPTCP_PM_TYPE_KERNEL; + return READ_ONCE(msk->pm.pm_type) == MPTCP_PM_TYPE_USERSPACE; } static inline unsigned int mptcp_add_addr_len(int family, bool echo, bool port)
Signed-off-by: Kishen Maloor <kishen.maloor@intel.com> --- net/mptcp/protocol.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)