/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | rtnetlink.sh | 46 swp1=${NETIFS[p1]} 49 ip link set dev $swp1 up 58 ip link set dev $swp1 down 68 ip link set dev $swp1 master vrf-test 87 ip addr add dev $swp1 192.0.2.1/28 115 ip addr del dev $swp1 192.0.2.1/28 127 ip link set dev $swp1 master br0 152 ip link set dev $swp1 master br0 164 ip -6 address add 2001:db8:1::1/64 dev $swp1 165 ip -6 address del 2001:db8:1::1/64 dev $swp1 [all …]
|
H A D | tc_restrictions.sh | 27 simple_if_init $swp1 192.0.2.1/24 34 simple_if_fini $swp1 192.0.2.1/24 44 tc qdisc add dev $swp1 ingress_block 22 clsact 68 tc qdisc del dev $swp1 clsact 70 tc qdisc add dev $swp1 egress_block 22 clsact 80 tc qdisc del dev $swp1 clsact 92 tc qdisc add dev $swp1 ingress_block 22 clsact 118 tc qdisc del dev $swp1 clsact 120 tc qdisc add dev $swp1 egress_block 22 clsact 135 tc qdisc del dev $swp1 clsact [all …]
|
H A D | q_in_q_veto.sh | 25 swp1=${NETIFS[p1]} 28 ip link set dev $swp1 up 39 ip link set dev $swp1 down 54 ip link set dev $swp1 master br0 74 ip link add name $swp1.100 link $swp1 type vlan \ 78 ip link add name $swp1.100 link $swp1 type vlan \ 94 ip link set dev $swp1 master br0 97 ip link add name $swp1.100 link $swp1 type vlan \ 101 ip link add name $swp1.100 link $swp1 type vlan \ 116 ip link set dev $swp1 down [all …]
|
H A D | ethtool_lanes.sh | 18 swp1=${NETIFS[p1]} 21 ip link set dev $swp1 up 27 local lanes_exist=$(ethtool $swp1 | grep 'Lanes:') 34 ip link set dev $swp1 down 48 check_err $? "swp1 advertise $max_speed and $lanes, devs sync to $chosen_lanes" 65 ethtool -s $swp1 speed $max_speed lanes $unsupported_lanes $autoneg_str &> /dev/null 112 local -a linkmodes_params=($(dev_linkmodes_params_get $swp1 1)) 113 local -a max_values=($(max_speed_and_lanes_get $swp1 "${linkmodes_params[@]}")) 122 ethtool_set $swp1 speed $max_speed lanes $lanes 123 ip link set dev $swp1 up [all …]
|
H A D | qos_max_descriptors.sh | 23 # | + $swp1 | 27 # | | + $swp1.111 | | 106 devlink_port_pool_th_save $swp1 1 109 devlink_tc_bind_pool_th_save $swp1 1 ingress 115 # $swp1 118 ip link set dev $swp1 up 119 vlan_create $swp1 111 120 ip link set dev $swp1.111 type vlan ingress-qos-map 0:0 1:1 122 devlink_port_pool_th_set $swp1 1 16 123 devlink_tc_bind_pool_th_set $swp1 1 ingress 1 16 [all …]
|
H A D | qos_defprio.sh | 4 # Test for port-default priority. Non-IP packets ingress $swp1 and are 16 # | + $swp1 | 44 ip link set dev $swp1 up 45 ip addr add dev $swp1 192.0.2.2/28 50 dcb app flush dev $swp1 default-prio 51 ip addr del dev $swp1 192.0.2.2/28 52 ip link set dev $swp1 down 58 swp1=${NETIFS[p2]} 91 dcb app add dev $swp1 default-prio $prio_install 93 local t0=$(ethtool_stats_get $swp1 rx_frames_prio_$prio_observe) [all …]
|
H A D | rif_lag.sh | 19 swp1=${NETIFS[p1]} 24 ip link set dev lag1 address $(mac_get $swp1) 30 ip link set dev $swp1 master lag1 31 ip link set dev $swp1 up 44 ip link set dev $swp1 nomaster 45 ip link set dev $swp1 down 72 ip link set dev $swp1 nomaster 88 ip link set dev $swp1 down 89 ip link set dev $swp1 master lag1 90 ip link set dev $swp1 up [all …]
|
H A D | port_range_occ.sh | 29 simple_if_init $swp1 30 tc qdisc add dev $swp1 clsact 35 tc qdisc del dev $swp1 clsact 36 simple_if_fini $swp1 42 swp1=${NETIFS[p2]} 73 tc filter add dev $swp1 ingress pref 1 handle 101 proto ip \ 79 tc filter add dev $swp1 ingress pref 1 handle 102 proto ip \ 82 tc filter add dev $swp1 ingress pref 2 handle 103 proto ipv6 \ 85 tc filter add dev $swp1 ingress pref 2 handle 104 proto ipv6 \ 91 tc filter del dev $swp1 ingress pref 2 handle 104 flower [all …]
|
H A D | rif_lag_vlan.sh | 19 swp1=${NETIFS[p1]} 24 ip link set dev lag1 address $(mac_get $swp1) 30 ip link set dev $swp1 master lag1 31 ip link set dev $swp1 up 53 ip link set dev $swp1 nomaster 54 ip link set dev $swp1 down 82 ip link set dev $swp1 nomaster 98 ip link set dev $swp1 down 99 ip link set dev $swp1 master lag1 100 ip link set dev $swp1 up [all …]
|
H A D | egress_vid_classification.sh | 19 # | SW $swp1 + + $swp2 | 22 # | | $swp1.10 + + $swp2.10 | | 101 ip link set dev $swp1 up 102 tc qdisc add dev $swp1 clsact 138 tc qdisc del dev $swp1 clsact 139 ip link set dev $swp1 down 145 swp1=${NETIFS[p2]} 200 # First add {port, VID}->FID for swp1.10, then add a RIF and verify that 202 vlan_create $swp1 10 203 ip link set dev $swp1.10 master br0 [all …]
|
H A D | devlink_trap_l2_drops.sh | 48 ip link set dev $swp1 master br0 52 ip link set dev $swp1 up 63 ip link set dev $swp1 down 71 swp1=${NETIFS[p2]} 126 bridge vlan add vid 1 dev $swp1 untagged master 137 bridge vlan add vid 1 dev $swp1 pvid untagged master 198 bridge vlan add vid $vid dev $swp1 master 215 bridge vlan del vid $vid dev $swp1 master 228 bridge vlan add vid $vid dev $swp1 master 229 ip link set dev $swp1 type bridge_slave state $state [all …]
|
H A D | qos_pfc.sh | 8 # - the stream first ingresses through $swp1, where it is forwarded to $swp3 15 # - since $swp3 now can't send traffic, the traffic ingressing $swp1 is kept at 24 # - if PFC works, all lossless flow packets that ingress through $swp1 should 26 # discrepancy between the speeds of $swp1 and $h2. 40 # | + $swp1 $swp3 + + $swp4 | 46 # | | + $swp1.111 $swp3.111 + | | + $swp4.111 | | 136 devlink_port_pool_th_save $swp1 1 141 devlink_tc_bind_pool_th_save $swp1 1 ingress 161 # $swp1 164 ip link set dev $swp1 up [all …]
|
H A D | tc_police_occ.sh | 28 simple_if_init $swp1 29 tc qdisc add dev $swp1 clsact 34 tc qdisc del dev $swp1 clsact 35 simple_if_fini $swp1 41 swp1=${NETIFS[p2]} 70 tc filter add dev $swp1 ingress pref 1 handle 101 proto ip \ 76 tc filter del dev $swp1 ingress pref 1 handle 101 flower 80 tc filter add dev $swp1 ingress pref 1 handle 101 proto ip \ 84 tc filter add dev $swp1 ingress pref 2 handle 102 proto ip \ 90 tc filter del dev $swp1 ingress pref 2 handle 102 flower [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | test_bridge_backup_port.sh | 6 # VXLAN. The test checks that when the switch port (swp1) is down, traffic is 12 # | + swp1 + vx0 | | + swp1 + vx0 | 186 ip -n $ns link add name swp1 up type dummy 187 ip -n $ns link set dev swp1 master br0 188 bridge -n $ns vlan add vid 10 dev swp1 untagged 254 run_cmd "tc -n $sw1 qdisc replace dev swp1 clsact" 255 …run_cmd "tc -n $sw1 filter replace dev swp1 egress pref 1 handle 101 proto ip flower src_mac $smac… 260 run_cmd "bridge -n $sw1 fdb replace $dmac dev swp1 master static vlan 10" 262 # Initial state - check that packets are forwarded out of swp1 when it 266 tc_check_packets $sw1 "dev swp1 egress" 101 1 [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | bridge_locked_port.sh | 47 ip link set dev $swp1 master br0 50 bridge link set dev $swp1 learning off 53 ip link set dev $swp1 up 60 ip link set dev $swp1 down 68 swp1=${NETIFS[p2]} 102 bridge link set dev $swp1 locked on 107 bridge fdb add `mac_get $h1` dev $swp1 master static 112 bridge link set dev $swp1 locked off 113 bridge fdb del `mac_get $h1` dev $swp1 master static 127 bridge vlan add vid 100 dev $swp1 [all …]
|
H A D | tc_actions.sh | 42 simple_if_init $swp1 192.0.2.2/24 43 tc qdisc add dev $swp1 clsact 52 tc qdisc del dev $swp1 clsact 53 simple_if_fini $swp1 192.0.2.2/24 74 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 84 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 95 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \ 101 tc_check_packets "dev $swp1 ingress" 102 1 104 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 110 tc_check_packets "dev $swp1 ingress" 101 1 [all …]
|
H A D | tc_tunnel_key.sh | 47 simple_if_init $swp1 192.0.2.2/24 48 tc qdisc add dev $swp1 clsact 55 tc qdisc del dev $swp1 clsact 56 simple_if_fini $swp1 192.0.2.2/24 62 swp1=${NETIFS[p2]} 70 swp1origmac=$(mac_get $swp1) 72 ip link set $swp1 address $h2mac 98 ip link set $swp1 address $swp1origmac 106 tc filter add dev $swp1 ingress protocol ip pref 100 handle 100 \ 109 tc filter add dev $swp1 ingress protocol ip pref 101 handle 101 \ [all …]
|
H A D | bridge_mdb_max.sh | 20 # | | + $swp1 BR0 (802.1q) + $swp2 | | 74 ip link set dev $swp1 master br0 75 ip link set dev $swp1 up 76 bridge link set dev $swp1 fastleave on 95 ip link set dev $swp1 master br0 96 ip link set dev $swp1 up 97 bridge link set dev $swp1 fastleave on 98 bridge vlan add vid 10 dev $swp1 99 bridge vlan add vid 20 dev $swp1 121 ip link set dev $swp1 down [all …]
|
H A D | bridge_mdb.sh | 20 # | | + $swp1 BR0 (802.1q) + $swp2 | | 73 ip link set dev $swp1 master br0 74 ip link set dev $swp1 up 75 bridge vlan add vid 10 dev $swp1 76 bridge vlan add vid 20 dev $swp1 97 bridge vlan del vid 20 dev $swp1 98 bridge vlan del vid 10 dev $swp1 99 ip link set dev $swp1 down 100 ip link set dev $swp1 nomaster 111 swp1=${NETIFS[p2]} [all …]
|
H A D | mirror_gre_changes.sh | 28 swp1=${NETIFS[p2]} 75 mirror_install $swp1 ingress $tundev \ 88 mirror_uninstall $swp1 ingress 101 mirror_install $swp1 ingress $tundev "matchall $tcflags" 107 mirror_uninstall $swp1 ingress 121 mirror_install $swp1 ingress $tundev "matchall $tcflags" 131 mirror_uninstall $swp1 ingress 147 mirror_install $swp1 ingress $tundev "matchall $tcflags" 152 mirror_uninstall $swp1 ingress 168 mirror_install $swp1 ingress $tundev "matchall $tcflags" [all …]
|
H A D | mirror_gre.sh | 30 swp1=${NETIFS[p2]} 77 mirror_install $swp1 $direction $tundev "matchall $tcflags" 83 mirror_uninstall $swp1 $direction 92 mirror_install $swp1 ingress gt4 "matchall $tcflags" 93 mirror_install $swp1 egress gt6 "matchall $tcflags" 97 mirror_uninstall $swp1 ingress 101 mirror_install $swp1 ingress gt4 "matchall $tcflags" 102 mirror_uninstall $swp1 egress 106 mirror_uninstall $swp1 ingress 136 slow_path_trap_install $swp1 ingress [all …]
|
H A D | tc_vlan_modify.sh | 41 ip link set dev $swp1 master br0 45 ip link set dev $swp1 up 48 bridge vlan add dev $swp1 vid 85 52 bridge vlan add dev $swp1 vid 65 54 tc qdisc add dev $swp1 clsact 61 tc qdisc del dev $swp1 clsact 63 bridge vlan del vid 65 dev $swp1 67 bridge vlan del vid 85 dev $swp1 70 ip link set dev $swp1 down 78 swp1=${NETIFS[p2]} [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/dsa/ |
H A D | bridge_locked_port.sh | 47 ip link set dev $swp1 master br0 50 bridge link set dev $swp1 learning off 53 ip link set dev $swp1 up 60 ip link set dev $swp1 down 68 swp1=${NETIFS[p2]} 102 bridge link set dev $swp1 locked on 107 bridge fdb add `mac_get $h1` dev $swp1 master static 112 bridge link set dev $swp1 locked off 113 bridge fdb del `mac_get $h1` dev $swp1 master static 127 bridge vlan add vid 100 dev $swp1 [all …]
|
H A D | tc_actions.sh | 42 simple_if_init $swp1 192.0.2.2/24 43 tc qdisc add dev $swp1 clsact 52 tc qdisc del dev $swp1 clsact 53 simple_if_fini $swp1 192.0.2.2/24 74 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 84 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 95 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \ 101 tc_check_packets "dev $swp1 ingress" 102 1 104 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 110 tc_check_packets "dev $swp1 ingress" 101 1 [all …]
|
H A D | bridge_mdb.sh | 20 # | | + $swp1 BR0 (802.1q) + $swp2 | | 73 ip link set dev $swp1 master br0 74 ip link set dev $swp1 up 75 bridge vlan add vid 10 dev $swp1 76 bridge vlan add vid 20 dev $swp1 97 bridge vlan del vid 20 dev $swp1 98 bridge vlan del vid 10 dev $swp1 99 ip link set dev $swp1 down 100 ip link set dev $swp1 nomaster 111 swp1=${NETIFS[p2]} [all …]
|