selftests: netdevsim: fix the udp_tunnel_nic test
[ Upstream commit 0879020a7817e7ce636372c016b4528f541c9f4d ]
This test is missing a whole bunch of checks for interface
renaming and one ifup. Presumably it was only used on a system
with renaming disabled and NetworkManager running.
Fixes: 91f430b2c4
("selftests: net: add a test for UDP tunnel info infra")
Acked-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240123060529.1033912-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
cec65f09c4
commit
4b4dcb3f42
@ -269,6 +269,7 @@ for port in 0 1; do
|
||||
echo 1 > $NSIM_DEV_SYS/new_port
|
||||
fi
|
||||
NSIM_NETDEV=`get_netdev_name old_netdevs`
|
||||
ifconfig $NSIM_NETDEV up
|
||||
|
||||
msg="new NIC device created"
|
||||
exp0=( 0 0 0 0 )
|
||||
@ -430,6 +431,7 @@ for port in 0 1; do
|
||||
fi
|
||||
|
||||
echo $port > $NSIM_DEV_SYS/new_port
|
||||
NSIM_NETDEV=`get_netdev_name old_netdevs`
|
||||
ifconfig $NSIM_NETDEV up
|
||||
|
||||
overflow_table0 "overflow NIC table"
|
||||
@ -487,6 +489,7 @@ for port in 0 1; do
|
||||
fi
|
||||
|
||||
echo $port > $NSIM_DEV_SYS/new_port
|
||||
NSIM_NETDEV=`get_netdev_name old_netdevs`
|
||||
ifconfig $NSIM_NETDEV up
|
||||
|
||||
overflow_table0 "overflow NIC table"
|
||||
@ -543,6 +546,7 @@ for port in 0 1; do
|
||||
fi
|
||||
|
||||
echo $port > $NSIM_DEV_SYS/new_port
|
||||
NSIM_NETDEV=`get_netdev_name old_netdevs`
|
||||
ifconfig $NSIM_NETDEV up
|
||||
|
||||
overflow_table0 "destroy NIC"
|
||||
@ -572,6 +576,7 @@ for port in 0 1; do
|
||||
fi
|
||||
|
||||
echo $port > $NSIM_DEV_SYS/new_port
|
||||
NSIM_NETDEV=`get_netdev_name old_netdevs`
|
||||
ifconfig $NSIM_NETDEV up
|
||||
|
||||
msg="create VxLANs v6"
|
||||
@ -632,6 +637,7 @@ for port in 0 1; do
|
||||
fi
|
||||
|
||||
echo $port > $NSIM_DEV_SYS/new_port
|
||||
NSIM_NETDEV=`get_netdev_name old_netdevs`
|
||||
ifconfig $NSIM_NETDEV up
|
||||
|
||||
echo 110 > $NSIM_DEV_DFS/ports/$port/udp_ports_inject_error
|
||||
@ -687,6 +693,7 @@ for port in 0 1; do
|
||||
fi
|
||||
|
||||
echo $port > $NSIM_DEV_SYS/new_port
|
||||
NSIM_NETDEV=`get_netdev_name old_netdevs`
|
||||
ifconfig $NSIM_NETDEV up
|
||||
|
||||
msg="create VxLANs v6"
|
||||
@ -746,6 +753,7 @@ for port in 0 1; do
|
||||
fi
|
||||
|
||||
echo $port > $NSIM_DEV_SYS/new_port
|
||||
NSIM_NETDEV=`get_netdev_name old_netdevs`
|
||||
ifconfig $NSIM_NETDEV up
|
||||
|
||||
msg="create VxLANs v6"
|
||||
@ -876,6 +884,7 @@ msg="re-add a port"
|
||||
|
||||
echo 2 > $NSIM_DEV_SYS/del_port
|
||||
echo 2 > $NSIM_DEV_SYS/new_port
|
||||
NSIM_NETDEV=`get_netdev_name old_netdevs`
|
||||
check_tables
|
||||
|
||||
msg="replace VxLAN in overflow table"
|
||||
|
Loading…
Reference in New Issue
Block a user