Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests: netdevsim: fix the udp_tunnel_nic test

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: 91f430b2c49d ("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>

+9
+9
tools/testing/selftests/drivers/net/netdevsim/udp_tunnel_nic.sh
··· 270 270 echo 1 > $NSIM_DEV_SYS/new_port 271 271 fi 272 272 NSIM_NETDEV=`get_netdev_name old_netdevs` 273 + ifconfig $NSIM_NETDEV up 273 274 274 275 msg="new NIC device created" 275 276 exp0=( 0 0 0 0 ) ··· 432 431 fi 433 432 434 433 echo $port > $NSIM_DEV_SYS/new_port 434 + NSIM_NETDEV=`get_netdev_name old_netdevs` 435 435 ifconfig $NSIM_NETDEV up 436 436 437 437 overflow_table0 "overflow NIC table" ··· 490 488 fi 491 489 492 490 echo $port > $NSIM_DEV_SYS/new_port 491 + NSIM_NETDEV=`get_netdev_name old_netdevs` 493 492 ifconfig $NSIM_NETDEV up 494 493 495 494 overflow_table0 "overflow NIC table" ··· 547 544 fi 548 545 549 546 echo $port > $NSIM_DEV_SYS/new_port 547 + NSIM_NETDEV=`get_netdev_name old_netdevs` 550 548 ifconfig $NSIM_NETDEV up 551 549 552 550 overflow_table0 "destroy NIC" ··· 577 573 fi 578 574 579 575 echo $port > $NSIM_DEV_SYS/new_port 576 + NSIM_NETDEV=`get_netdev_name old_netdevs` 580 577 ifconfig $NSIM_NETDEV up 581 578 582 579 msg="create VxLANs v6" ··· 638 633 fi 639 634 640 635 echo $port > $NSIM_DEV_SYS/new_port 636 + NSIM_NETDEV=`get_netdev_name old_netdevs` 641 637 ifconfig $NSIM_NETDEV up 642 638 643 639 echo 110 > $NSIM_DEV_DFS/ports/$port/udp_ports_inject_error ··· 694 688 fi 695 689 696 690 echo $port > $NSIM_DEV_SYS/new_port 691 + NSIM_NETDEV=`get_netdev_name old_netdevs` 697 692 ifconfig $NSIM_NETDEV up 698 693 699 694 msg="create VxLANs v6" ··· 754 747 fi 755 748 756 749 echo $port > $NSIM_DEV_SYS/new_port 750 + NSIM_NETDEV=`get_netdev_name old_netdevs` 757 751 ifconfig $NSIM_NETDEV up 758 752 759 753 msg="create VxLANs v6" ··· 885 877 886 878 echo 2 > $NSIM_DEV_SYS/del_port 887 879 echo 2 > $NSIM_DEV_SYS/new_port 880 + NSIM_NETDEV=`get_netdev_name old_netdevs` 888 881 check_tables 889 882 890 883 msg="replace VxLAN in overflow table"