Skip to contentSkip to conversation

Squash-to: "selftests: mptcp: turn rp_filter off on each NIC"

PATCH In review Paolo Abeni 2 participants 2 messages Jun 16, 2021

Subsystems (3)
lore
Share & tools
lore

Paolo Abeni

author maintainer
#0 lore raw

PATCH 1/1 Squash-to: "selftests: mptcp: turn rp_filter off on each NIC"

"$1" is undefined in the setup loop context, $i should be used instead, otherwise setup (and tests) will fail.

---
 tools/testing/selftests/net/mptcp/simult_flows.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/testing/selftests/net/mptcp/simult_flows.sh +2 -2
index 6b6336d1c39d..fd63ebfe9a2b 100755
@@ -60,8 +60,8 @@ setup()
 	for i in "$ns1" "$ns2" "$ns3";do
 		ip netns add $i || exit $ksft_skip
 		ip -net $i link set lo up
-		ip netns exec $1 sysctl -q net.ipv4.conf.all.rp_filter=0
-		ip netns exec $1 sysctl -q net.ipv4.conf.default.rp_filter=0
+		ip netns exec $i sysctl -q net.ipv4.conf.all.rp_filter=0
+		ip netns exec $i sysctl -q net.ipv4.conf.default.rp_filter=0
 	done
 
 	ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
Signature · 1 line
2.26.3
#1 lore raw

Hi Paolo,

Quoted 4 lines · Paolo Abeni

"$1" is undefined in the setup loop context, $i should be used instead, otherwise setup (and tests) will fail.

Good catch!

- 94e9d2854eaa: "squashed" in "selftests: mptcp: turn rp_filter off on each NIC"
- 7c34dfc3461b: "Signed-off-by" + "Co-developed-by"
- Results: bddebf30244a..2f591d25eeec

Builds and tests are now in progress:

https://cirrus-ci.com/github/multipath-tcp/mptcp_net-next/export/20210616T135631
https://github.com/multipath-tcp/mptcp_net-next/actions/workflows/build-validation.yml?query=branch:export/20210616T135631

Cheers,
Matt

Signature · 2 lines
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net