Skip to contentSkip to conversation

selftest/net/forwarding: declare NETIFS p9 p10

PATCH Applied Hangbin Liu 3 participants 3 messages Dec 13, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftest/net/forwarding: declare NETIFS p9 p10

The resent GRE selftests defined NUM_NETIFS=10. If the users copy forwarding.config.sample to forwarding.config directly, they will get error "Command line is not complete" when run the GRE tests, because create_netif_veth() failed with no interface name defined.

Fix it by extending the NETIFS with p9 and p10.

Fixes 2800f2485417 ("selftests: forwarding: Test multipath hashing on inner IP pkts for GRE tunnel")
---
 tools/testing/selftests/net/forwarding/forwarding.config.sample | 2 ++
 1 file changed, 2 insertions(+)
tools/testing/selftests/net/forwarding/forwarding.config.sample +2 -0
index bf17e485684f..b0980a2efa31 100644
@@ -13,6 +13,8 @@ NETIFS[p5]=veth4
 NETIFS[p6]=veth5
 NETIFS[p7]=veth6
 NETIFS[p8]=veth7
+NETIFS[p9]=veth8
+NETIFS[p10]=veth9
 
 # Port that does not have a cable connected.
 NETIF_NO_CABLE=eth8
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Hangbin Liu

The resent GRE selftests defined NUM_NETIFS=10. If the users copy

s/resent/recent/

Quoted 8 lines

forwarding.config.sample to forwarding.config directly, they will get error "Command line is not complete" when run the GRE tests, because create_netif_veth() failed with no interface name defined.

Fix it by extending the NETIFS with p9 and p10.

Fixes 2800f2485417 ("selftests: forwarding: Test multipath hashing on inner IP pkts for GRE tunnel")
#2 lore raw
In reply to Hangbin Liu
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 8 lines · On Mon, 13 Dec 2021 16:36:00 +0800 you wrote:

The resent GRE selftests defined NUM_NETIFS=10. If the users copy forwarding.config.sample to forwarding.config directly, they will get error "Command line is not complete" when run the GRE tests, because create_netif_veth() failed with no interface name defined.

Fix it by extending the NETIFS with p9 and p10.

[...]

Here is the summary with links:
- [net] selftest/net/forwarding: declare NETIFS p9 p10

    https://git.kernel.org/netdev/net/c/71da1aec2152

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html