selftests/net: Improve bind_bhash.sh to accommodate predictable network interface...
authorJuntong Deng <juntong.deng@outlook.com>
Wed, 6 Sep 2023 16:26:03 +0000 (00:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Sep 2023 17:49:29 +0000 (18:49 +0100)
commitced33ca07d8d99435ca3320c740ea947843005ca
treef0ee5c7b979b307c240e59312e246d534441bf5c
parentac28b1ec6135649b5d78b028e47264cb3ebca5ea
selftests/net: Improve bind_bhash.sh to accommodate predictable network interface names

Starting with v197, systemd uses predictable interface network names,
the traditional interface naming scheme (eth0) is deprecated, therefore
it cannot be assumed that the eth0 interface exists on the host.

This modification makes the bind_bhash test program run in a separate
network namespace and no longer needs to consider the name of the
network interface on the host.

Signed-off-by: Juntong Deng <juntong.deng@outlook.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/bind_bhash.sh