Skip to content

Commit

Permalink
selftest/net/forwarding: declare NETIFS p9 p10
Browse files Browse the repository at this point in the history
[ Upstream commit 71da1ae ]

The recent 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: 2800f24 ("selftests: forwarding: Test multipath hashing on inner IP pkts for GRE tunnel")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
liuhangbin authored and gregkh committed Dec 22, 2021
1 parent 81fbdd4 commit cac0fd4
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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
Expand Down

0 comments on commit cac0fd4

Please sign in to comment.