summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-10-01 17:15:29 +0200
committerDavid S. Miller <davem@davemloft.net>2021-10-02 15:15:57 +0200
commit239f163ceabb8ee176396476de7d2b6b5261af39 (patch)
treeacb935230ccb7353beeb9fc923d0607f27ae1744 /tools/testing/selftests/drivers
parentnet: dsa: tag_ocelot: set the classified VLAN during xmit (diff)
downloadlinux-239f163ceabb8ee176396476de7d2b6b5261af39.tar.xz
linux-239f163ceabb8ee176396476de7d2b6b5261af39.zip
selftests: net: mscc: ocelot: bring up the ports automatically
Looks like when I wrote the selftests I was using a network manager that brought up the ports automatically. In order to not rely on that, let the script open them up. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/drivers')
-rwxr-xr-xtools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh b/tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh
index f7d84549cc3e..0e19b56effe6 100755
--- a/tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh
+++ b/tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh
@@ -156,6 +156,11 @@ create_tcam_skeleton()
setup_prepare()
{
+ ip link set $eth0 up
+ ip link set $eth1 up
+ ip link set $eth2 up
+ ip link set $eth3 up
+
create_tcam_skeleton $eth0
ip link add br0 type bridge