linux/tools/testing/selftests/drivers/net/netdevsim
Amit Cohen 9ee53e3753 selftests: netdevsim: Test route offload failure notifications
Add cases to verify that when debugfs variable "fail_route_offload" is
set, notification with "rt_offload_failed" flag is received.

Extend the existing cases to verify that when sysctl
"fib_notify_on_flag_change" is set to 2, the kernel emits notifications
only for failed route installation.

$ ./fib_notifications.sh
TEST: IPv4 route addition				[ OK ]
TEST: IPv4 route deletion				[ OK ]
TEST: IPv4 route replacement				[ OK ]
TEST: IPv4 route offload failed				[ OK ]
TEST: IPv6 route addition				[ OK ]
TEST: IPv6 route deletion				[ OK ]
TEST: IPv6 route replacement				[ OK ]
TEST: IPv6 route offload failed				[ OK ]

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-02-08 16:47:03 -08:00
..
devlink.sh netdevsim: add support for flash_update overwrite mask 2020-09-25 17:20:57 -07:00
devlink_in_netns.sh selftests: test creating netdevsim inside network namespace 2019-10-05 16:34:15 -07:00
devlink_trap.sh selftests: netdevsim: Always initialize 'RET' variable 2020-05-22 16:05:42 -07:00
ethtool-coalesce.sh selftests: add ring and coalesce selftests 2020-11-20 12:51:54 -08:00
ethtool-common.sh selftests: refactor get_netdev_name function 2020-11-20 12:51:54 -08:00
ethtool-pause.sh selftests: extract common functions in ethtool-common.sh 2020-11-20 12:51:54 -08:00
ethtool-ring.sh selftests: add ring and coalesce selftests 2020-11-20 12:51:54 -08:00
fib.sh selftests: Extend fib tests to run with and without flags notifications 2021-02-02 17:45:59 -08:00
fib_notifications.sh selftests: netdevsim: Test route offload failure notifications 2021-02-08 16:47:03 -08:00
nexthop.sh selftests: netdevsim: Add test for nexthop offload API 2020-11-06 11:28:50 -08:00
udp_tunnel_nic.sh selftests: net: add a test for static UDP tunnel ports 2020-09-28 12:50:12 -07:00