Skip to content

Commit 78dd8ad

Browse files
committed
Merge branch 'mptcp-misc-fixes-for-v6-17-rc6'
Matthieu Baerts says: ==================== mptcp: misc fixes for v6.17-rc6 Here are various unrelated fixes: - Patch 1: Fix a wrong attribute type in the MPTCP Netlink specs. A fix for v6.7. - Patch 2: Avoid mentioning a deprecated MPTCP sysctl knob in the doc. A fix for v6.15. - Patch 3: Handle new warnings from ShellCheck v0.11.0. This prevents some warnings reported by some CIs. If it is not a good material for 'net', please drop. ==================== Link: https://patch.msgid.link/20250908-net-mptcp-misc-fixes-6-17-rc5-v1-0-5f2168a66079@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2 parents 648de37 + ef1bd93 commit 78dd8ad

9 files changed

Lines changed: 14 additions & 13 deletions

File tree

Documentation/netlink/specs/mptcp_pm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ attribute-sets:
256256
type: u32
257257
-
258258
name: if-idx
259-
type: u32
259+
type: s32
260260
-
261261
name: reset-reason
262262
type: u32

Documentation/networking/mptcp.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ address announcements. Typically, it is the client side that initiates subflows,
6060
and the server side that announces additional addresses via the ``ADD_ADDR`` and
6161
``REMOVE_ADDR`` options.
6262

63-
Path managers are controlled by the ``net.mptcp.pm_type`` sysctl knob -- see
64-
mptcp-sysctl.rst. There are two types: the in-kernel one (type ``0``) where the
65-
same rules are applied for all the connections (see: ``ip mptcp``) ; and the
66-
userspace one (type ``1``), controlled by a userspace daemon (i.e. `mptcpd
63+
Path managers are controlled by the ``net.mptcp.path_manager`` sysctl knob --
64+
see mptcp-sysctl.rst. There are two types: the in-kernel one (``kernel``) where
65+
the same rules are applied for all the connections (see: ``ip mptcp``) ; and the
66+
userspace one (``userspace``), controlled by a userspace daemon (i.e. `mptcpd
6767
<https://mptcpd.mptcp.dev/>`_) where different rules can be applied for each
6868
connection. The path managers can be controlled via a Netlink API; see
6969
netlink_spec/mptcp_pm.rst.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ flush_pids()
2828
}
2929

3030
# This function is used in the cleanup trap
31-
#shellcheck disable=SC2317
31+
#shellcheck disable=SC2317,SC2329
3232
cleanup()
3333
{
3434
ip netns pids "${ns}" | xargs --no-run-if-empty kill -SIGKILL &>/dev/null

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ ns4=""
134134
TEST_GROUP=""
135135

136136
# This function is used in the cleanup trap
137-
#shellcheck disable=SC2317
137+
#shellcheck disable=SC2317,SC2329
138138
cleanup()
139139
{
140140
rm -f "$cin_disconnect"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# ShellCheck incorrectly believes that most of the code here is unreachable
1010
# because it's invoked by variable name, see how the "tests" array is used
11-
#shellcheck disable=SC2317
11+
#shellcheck disable=SC2317,SC2329
1212

1313
. "$(dirname "${0}")/mptcp_lib.sh"
1414

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ init()
9595
}
9696

9797
# This function is used in the cleanup trap
98-
#shellcheck disable=SC2317
98+
#shellcheck disable=SC2317,SC2329
9999
cleanup()
100100
{
101101
mptcp_lib_ns_exit "${ns1}" "${ns2}" "${ns_sbox}"

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ns1=""
3232
err=$(mktemp)
3333

3434
# This function is used in the cleanup trap
35-
#shellcheck disable=SC2317
35+
#shellcheck disable=SC2317,SC2329
3636
cleanup()
3737
{
3838
rm -f "${err}"
@@ -70,8 +70,9 @@ format_endpoints() {
7070
mptcp_lib_pm_nl_format_endpoints "${@}"
7171
}
7272

73+
# This function is invoked indirectly
74+
#shellcheck disable=SC2317,SC2329
7375
get_endpoint() {
74-
# shellcheck disable=SC2317 # invoked indirectly
7576
mptcp_lib_pm_nl_get_endpoint "${ns1}" "${@}"
7677
}
7778

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ usage() {
3535
}
3636

3737
# This function is used in the cleanup trap
38-
#shellcheck disable=SC2317
38+
#shellcheck disable=SC2317,SC2329
3939
cleanup()
4040
{
4141
rm -f "$cout" "$sout"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ test_fail()
9494
}
9595

9696
# This function is used in the cleanup trap
97-
#shellcheck disable=SC2317
97+
#shellcheck disable=SC2317,SC2329
9898
cleanup()
9999
{
100100
print_title "Cleanup"

0 commit comments

Comments
 (0)