]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
selftests: forwarding: Add suppport to create veth interfaces
authorDavid Ahern <dsahern@gmail.com>
Mon, 5 Mar 2018 01:37:47 +0000 (17:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Mar 2018 15:44:29 +0000 (10:44 -0500)
commit190f887c3cd0d07e53a7d44162c951451f4f5528
tree6929523f1017de3335a2e822b680ba7deeebed3c
parent955dc68cb9b23b42999cafe6df3684309bc686c6
selftests: forwarding: Add suppport to create veth interfaces

For tests using veth interfaces, the test infrastructure can create
the netdevs if they do not exist. Arguably this is a preferred approach
since the tests require p$N and p$(N+1) to be pairs.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/forwarding.config.sample
tools/testing/selftests/net/forwarding/lib.sh