提交 6852911b 编写于 作者: H Hangbin Liu 提交者: Zheng Zengkai

selftest/net/forwarding: declare NETIFS p9 p10

stable inclusion
from stable-v5.10.88
commit cac0fd4b9bd385b96b6548dcda7e22e03d2694b2
bugzilla: 186058 https://gitee.com/openeuler/kernel/issues/I4QW6A

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cac0fd4b9bd385b96b6548dcda7e22e03d2694b2

--------------------------------

[ Upstream commit 71da1aec ]

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: 2800f248 ("selftests: forwarding: Test multipath hashing on inner IP pkts for GRE tunnel")
Signed-off-by: NHangbin Liu <liuhangbin@gmail.com>
Reviewed-by: NIdo Schimmel <idosch@nvidia.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 2d02cfd5
...@@ -13,6 +13,8 @@ NETIFS[p5]=veth4 ...@@ -13,6 +13,8 @@ NETIFS[p5]=veth4
NETIFS[p6]=veth5 NETIFS[p6]=veth5
NETIFS[p7]=veth6 NETIFS[p7]=veth6
NETIFS[p8]=veth7 NETIFS[p8]=veth7
NETIFS[p9]=veth8
NETIFS[p10]=veth9
# Port that does not have a cable connected. # Port that does not have a cable connected.
NETIF_NO_CABLE=eth8 NETIF_NO_CABLE=eth8
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册