/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | tc_flower_l2_miss.sh | 54 ip link set dev $swp2 master br1 55 ip link set dev $swp2 up 57 tc qdisc add dev $swp2 clsact 62 tc qdisc del dev $swp2 clsact 64 ip link set dev $swp2 down 65 ip link set dev $swp2 nomaster 80 tc filter add dev $swp2 egress protocol ipv4 handle 101 pref 1 \ 84 tc filter add dev $swp2 egress protocol ipv4 handle 102 pref 1 \ 91 tc_check_packets "dev $swp2 egress" 101 1 94 tc_check_packets "dev $swp2 egress" 102 0 [all …]
|
H A D | bridge_mdb_port_down.sh | 19 ip link set dev $swp2 down 20 bridge mdb add dev br0 port "$swp2" grp $TEST_GROUP permanent 2>/dev/null 23 ip link set dev $swp2 up 24 setup_wait_dev $swp2 28 ip link set dev $swp2 down 32 bridge mdb del dev br0 port "$swp2" grp $TEST_GROUP 2>/dev/null 35 ip link set dev $swp2 up 36 setup_wait_dev $swp2 69 ip link set dev $swp2 master br0 74 bridge link set dev $swp2 mcast_flood off [all …]
|
H A D | sch_tbf_etsprio.sh | 17 tc qdisc replace dev $swp2 parent 10:3 handle 103: tbf \ 19 tc qdisc replace dev $swp2 parent 10:2 handle 102: tbf \ 32 tc qdisc add dev $swp2 root handle 10: $QDISC 3 priomap 2 1 0 34 tc qdisc del dev $swp2 root 43 tc qdisc replace dev $swp2 root handle 1: \ 45 tc qdisc replace dev $swp2 parent 1:1 handle 10: \ 47 tc qdisc replace dev $swp2 parent 10:3 handle 103: \ 49 tc qdisc replace dev $swp2 parent 10:2 handle 102: \ 51 tc qdisc replace dev $swp2 parent 10:1 handle 101: \ 57 tc qdisc del dev $swp2 root
|
H A D | skbedit_priority.sh | 62 ip link set dev $swp2 master br1 63 ip link set dev $swp2 up 66 tc qdisc add dev $swp2 clsact 67 tc qdisc add dev $swp2 root handle 10: \ 73 tc qdisc del dev $swp2 root 74 tc qdisc del dev $swp2 clsact 77 ip link set dev $swp2 down 78 ip link set dev $swp2 nomaster 89 swp2=${NETIFS[p3]} 126 local pkt0=$(qdisc_parent_stats_get $swp2 $classid .packets) [all …]
|
H A D | tc_vlan_modify.sh | 42 ip link set dev $swp2 master br0 46 ip link set dev $swp2 up 49 bridge vlan add dev $swp2 vid 65 51 bridge vlan add dev $swp2 vid 85 55 tc qdisc add dev $swp2 clsact 60 tc qdisc del dev $swp2 clsact 64 bridge vlan del vid 85 dev $swp2 66 bridge vlan del vid 65 dev $swp2 69 ip link set dev $swp2 down 80 swp2=${NETIFS[p3]} [all …]
|
H A D | pedit_dsfield.sh | 68 ip link set dev $swp2 master br1 69 ip link set dev $swp2 up 72 tc qdisc add dev $swp2 clsact 77 tc qdisc del dev $swp2 clsact 80 ip link set dev $swp2 down 81 ip link set dev $swp2 nomaster 92 swp2=${NETIFS[p3]} 185 do_test_ip_dsfield "dev $swp2 egress" 204 do_test_ip_dscp "dev $swp2 egress" 223 do_test_ip_ecn "dev $swp2 egress" [all …]
|
H A D | pedit_ip.sh | 61 ip link set dev $swp2 master br1 62 ip link set dev $swp2 up 65 tc qdisc add dev $swp2 clsact 70 tc qdisc del dev $swp2 clsact 73 ip link set dev $swp2 down 74 ip link set dev $swp2 nomaster 85 swp2=${NETIFS[p3]} 173 do_test_pedit_ip4 "dev $swp2 egress" "ip src" src_ip 179 do_test_pedit_ip4 "dev $swp2 egress" "ip dst" dst_ip 185 do_test_pedit_ip6 "dev $swp2 egress" "ip6 src" src_ip [all …]
|
H A D | pedit_l4port.sh | 62 ip link set dev $swp2 master br1 63 ip link set dev $swp2 up 66 tc qdisc add dev $swp2 clsact 71 tc qdisc del dev $swp2 clsact 74 ip link set dev $swp2 down 75 ip link set dev $swp2 nomaster 86 swp2=${NETIFS[p3]} 172 do_test_pedit_l4port "dev $swp2 egress" udp sport src_port 178 do_test_pedit_l4port "dev $swp2 egress" udp dport dst_port 184 do_test_pedit_l4port "dev $swp2 egress" tcp sport src_port [all …]
|
H A D | tc_flower_port_range.sh | 54 ip link set dev $swp2 master br1 55 ip link set dev $swp2 up 59 tc qdisc add dev $swp2 clsact 64 tc qdisc del dev $swp2 clsact 68 ip link set dev $swp2 down 69 ip link set dev $swp2 nomaster 99 tc filter add dev $swp2 egress protocol $proto handle 101 pref 1 \ 109 tc_check_packets "dev $swp2 egress" 101 1 116 tc_check_packets "dev $swp2 egress" 101 2 123 tc_check_packets "dev $swp2 egress" 101 3 [all …]
|
H A D | tc_shblocks.sh | 36 simple_if_init $swp2 192.0.2.2/24 37 tc qdisc add dev $swp2 ingress_block 22 egress_block 23 clsact 42 tc qdisc del dev $swp2 clsact 43 simple_if_fini $swp2 192.0.2.2/24 80 $tcflags indev $swp2 dst_mac $swmac action drop 105 swp2=${NETIFS[p3]} 112 swp2origmac=$(mac_get $swp2) 113 ip link set $swp2 address $swmac 132 ip link set $swp2 address $swp2origmac
|
H A D | sch_ets_core.sh | 216 ip link set dev $swp2 up 217 mtu_set $swp2 9900 223 vlan_create $swp2 1$i 227 ip link set dev $swp2.1$i master br1$i 231 ip link set dev $swp2.1$i up 243 vlan_destroy $swp2 1$i 247 mtu_restore $swp2 248 ip link set dev $swp2 down 259 swp2=${NETIFS[p3]} 262 put=$swp2
|
H A D | ethtool_extended_state.sh | 19 swp2=${NETIFS[p2]} 69 ip link set dev $swp2 up 71 local -a speeds_arr=($(different_speeds_get $swp1 $swp2 0 0)) 76 ethtool_set $swp2 speed $speed2 autoneg off 82 msg=$(busywait $TIMEOUT ethtool_ext_state $swp2 \ 88 ethtool -s $swp2 autoneg on 91 ip link set dev $swp2 down
|
H A D | router_bridge_vlan_upper.sh | 74 ip link set dev $swp2 master br1 76 ip link set dev $swp2 up 81 bridge vlan add dev $swp2 vid 777 92 bridge vlan del dev $swp2 vid 777 97 ip link set dev $swp2 down nomaster 109 swp2=${NETIFS[p3]} 150 ip link set dev $swp2 nomaster 156 ip link set dev $swp2 master br1 159 bridge vlan add dev $swp2 vid 777
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | sch_ets.sh | 22 tc qdisc replace dev $swp2 root handle 3: tbf rate 1gbit \ 35 devlink_port_pool_th_save $swp2 4 36 devlink_port_pool_th_set $swp2 4 12 37 devlink_tc_bind_pool_th_save $swp2 7 egress 38 devlink_tc_bind_pool_th_set $swp2 7 egress 4 5 39 devlink_tc_bind_pool_th_save $swp2 6 egress 40 devlink_tc_bind_pool_th_set $swp2 6 egress 4 5 41 devlink_tc_bind_pool_th_save $swp2 5 egress 42 devlink_tc_bind_pool_th_set $swp2 5 egress 4 5 52 devlink_tc_bind_pool_th_restore $swp2 5 egress [all …]
|
H A D | devlink_trap_l2_drops.sh | 49 ip link set dev $swp2 master br0 53 ip link set dev $swp2 up 55 tc qdisc add dev $swp2 clsact 60 tc qdisc del dev $swp2 clsact 62 ip link set dev $swp2 down 73 swp2=${NETIFS[p3]} 102 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 \ 110 devlink_trap_drop_test $trap_name $swp2 101 114 devlink_trap_drop_cleanup $mz_pid $swp2 ip 1 101 128 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 \ [all …]
|
H A D | qos_max_descriptors.sh | 107 devlink_port_pool_th_save $swp2 6 110 devlink_tc_bind_pool_th_save $swp2 1 egress 132 ip link set dev $swp2 up 133 vlan_create $swp2 111 134 ip link set dev $swp2.111 type vlan egress-qos-map 0:0 1:1 136 devlink_port_pool_th_set $swp2 6 $MAX_POOL_SIZE 137 devlink_tc_bind_pool_th_set $swp2 1 egress 6 $MAX_POOL_SIZE 139 tc qdisc replace dev $swp2 root handle 1: tbf rate $SHAPER_RATE \ 141 tc qdisc replace dev $swp2 parent 1:1 handle 11: \ 151 ip link set dev $swp2.111 master br1 [all …]
|
H A D | devlink_trap_acl_drops.sh | 42 ip link set dev $swp2 master br0 46 ip link set dev $swp2 up 49 tc qdisc add dev $swp2 clsact 54 tc qdisc del dev $swp2 clsact 57 ip link set dev $swp2 down 68 swp2=${NETIFS[p3]} 98 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 \ 110 devlink_trap_drop_test ingress_flow_action_drop $swp2 101 116 devlink_trap_drop_cleanup $mz_pid $swp2 ip 1 101 123 tc filter add dev $swp2 egress protocol ip pref 2 handle 102 \ [all …]
|
H A D | qos_mc_aware.sh | 123 ip link set dev $swp2 up 124 mtu_set $swp2 10000 129 vlan_create $swp2 111 146 ip link set dev $swp2.111 master br111 156 devlink_port_pool_th_save $swp2 0 157 devlink_port_pool_th_set $swp2 0 5 158 devlink_tc_bind_pool_th_save $swp2 1 ingress 159 devlink_tc_bind_pool_th_set $swp2 1 ingress 0 5 169 devlink_tc_bind_pool_th_restore $swp2 1 ingress 170 devlink_port_pool_th_restore $swp2 0 [all …]
|
H A D | qos_pfc.sh | 137 devlink_port_pool_th_save $swp2 6 142 devlink_tc_bind_pool_th_save $swp2 1 egress 181 ip link set dev $swp2 up 182 mtu_set $swp2 10000 183 vlan_create $swp2 111 184 ip link set dev $swp2.111 type vlan egress-qos-map 0:0 1:1 186 devlink_port_pool_th_set $swp2 6 $_10MB 187 devlink_tc_bind_pool_th_set $swp2 1 egress 6 $_10MB 190 tc qdisc replace dev $swp2 root handle 1: \ 192 tc qdisc replace dev $swp2 parent 1:7 handle 17: \ [all …]
|
H A D | one_armed_router.sh | 92 ip link set dev $swp2 master br0 93 ip link set dev $swp2 up 96 tc qdisc add dev $swp2 clsact 107 tc qdisc del dev $swp2 clsact 110 ip link set dev $swp2 down 111 ip link set dev $swp2 nomaster 139 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 flower \ 143 tc filter add dev $swp2 egress protocol ip pref 2 handle 102 flower \ 159 tc_check_packets "dev $swp2 egress" 101 0 166 tc_check_packets "dev $swp2 egress" 102 10 [all …]
|
H A D | qos_ets_strict.sh | 115 ip link set dev $swp2 up 116 mtu_set $swp2 10000 137 vlan_create $swp2 222 150 ip link set dev $swp2.222 master br222 165 devlink_port_pool_th_save $swp2 0 166 devlink_port_pool_th_set $swp2 0 6 167 devlink_tc_bind_pool_th_save $swp2 2 ingress 168 devlink_tc_bind_pool_th_set $swp2 2 ingress 0 6 184 devlink_tc_bind_pool_th_restore $swp2 2 ingress 185 devlink_port_pool_th_restore $swp2 0 [all …]
|
H A D | ethtool_lanes.sh | 19 swp2=${NETIFS[p2]} 22 ip link set dev $swp2 up 24 busywait "$TIMEOUT" wait_for_port_up ethtool $swp2 33 ip link set dev $swp2 down 124 ip link set dev $swp2 up 125 busywait "$TIMEOUT" wait_for_port_up ethtool $swp2 137 ip link set dev $swp2 down 160 ethtool_set $swp2 speed $max_speed lanes $lanes autoneg off 162 ip link set dev $swp2 up 163 busywait "$TIMEOUT" wait_for_port_up ethtool $swp2 [all …]
|
H A D | tc_restrictions.sh | 28 simple_if_init $swp2 192.0.2.2/24 33 simple_if_fini $swp2 192.0.2.2/24 51 tc qdisc add dev $swp2 ingress_block 22 clsact 54 tc qdisc del dev $swp2 clsact 56 tc qdisc add dev $swp2 egress_block 22 clsact 61 tc qdisc add dev $swp2 egress_block 22 clsact 79 tc qdisc del dev $swp2 clsact 97 action mirred egress redirect dev $swp2 100 tc qdisc add dev $swp2 ingress_block 22 clsact 103 tc qdisc del dev $swp2 clsact [all …]
|
H A D | qos_dscp_router.sh | 100 __simple_if_init $swp2 v$swp1 192.0.2.17/28 103 tc qdisc add dev $swp2 clsact 106 dcb app add dev $swp2 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 111 dcb app del dev $swp2 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 114 tc qdisc del dev $swp2 clsact 117 __simple_if_fini $swp2 192.0.2.17/28 126 swp2=${NETIFS[p3]} 255 dcb app del dev $swp2 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 259 dcb app add dev $swp2 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7
|
/openbmc/linux/tools/testing/selftests/drivers/net/ocelot/ |
H A D | tc_flower_chains.sh | 16 swp2=${NETIFS[p3]} 142 ip link set $swp2 up 150 ip link set $swp2 master br0 165 flower skip_sw indev $swp2 \ 246 bridge vlan add dev $swp2 vid 300 270 bridge vlan del dev $swp2 vid 300 283 tc qdisc add dev $swp2 clsact 287 bridge vlan add dev $swp2 vid 200 289 tc filter add dev $swp2 egress chain $(ES0) pref 3 \ 306 tc filter del dev $swp2 egress chain $(ES0) pref 3 [all …]
|