OSDN Git Service

selftests: net: mscc: ocelot: bring up the ports automatically
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 1 Oct 2021 15:15:29 +0000 (18:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Oct 2021 13:15:57 +0000 (14:15 +0100)
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>
tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh

index f7d8454..0e19b56 100755 (executable)
@@ -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