Skip to content

Commit 2e3c5df

Browse files
committed
Merge branch 'mptcp-more-fixes-for-6-5'
Mat Martineau says: ==================== mptcp: More fixes for 6.5 Patch 1: Better detection of ip6tables vs ip6tables-legacy tools for self tests. Fix for 6.4 and newer. Patch 2: Only generate "new listener" event if listen operation succeeds. Fix for 6.2 and newer. ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents fa29d46 + 21d9b73 commit 2e3c5df

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

net/mptcp/protocol.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3723,10 +3723,9 @@ static int mptcp_listen(struct socket *sock, int backlog)
37233723
if (!err) {
37243724
sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1);
37253725
mptcp_copy_inaddrs(sk, ssock->sk);
3726+
mptcp_event_pm_listener(ssock->sk, MPTCP_EVENT_LISTENER_CREATED);
37263727
}
37273728

3728-
mptcp_event_pm_listener(ssock->sk, MPTCP_EVENT_LISTENER_CREATED);
3729-
37303729
unlock:
37313730
release_sock(sk);
37323731
return err;

tools/testing/selftests/net/mptcp/mptcp_join.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ check_tools()
162162
elif ! iptables -V &> /dev/null; then
163163
echo "SKIP: Could not run all tests without iptables tool"
164164
exit $ksft_skip
165-
fi
166-
167-
if ! ip6tables -V &> /dev/null; then
165+
elif ! ip6tables -V &> /dev/null; then
168166
echo "SKIP: Could not run all tests without ip6tables tool"
169167
exit $ksft_skip
170168
fi

0 commit comments

Comments
 (0)