Home
last modified time | relevance | path

Searched refs:swp2 (Results 1 – 25 of 62) sorted by relevance

123

/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dsch_ets.sh24 ethtool -s $swp2 speed 1000 autoneg off
34 devlink_port_pool_th_save $swp2 4
35 devlink_port_pool_th_set $swp2 4 12
36 devlink_tc_bind_pool_th_save $swp2 7 egress
37 devlink_tc_bind_pool_th_set $swp2 7 egress 4 5
38 devlink_tc_bind_pool_th_save $swp2 6 egress
39 devlink_tc_bind_pool_th_set $swp2 6 egress 4 5
40 devlink_tc_bind_pool_th_save $swp2 5 egress
41 devlink_tc_bind_pool_th_set $swp2 5 egress 4 5
51 devlink_tc_bind_pool_th_restore $swp2 5 egress
[all …]
Ddevlink_trap_l2_drops.sh48 ip link set dev $swp2 master br0
52 ip link set dev $swp2 up
54 tc qdisc add dev $swp2 clsact
59 tc qdisc del dev $swp2 clsact
61 ip link set dev $swp2 down
72 swp2=${NETIFS[p3]}
101 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 \
109 devlink_trap_drop_test $trap_name $swp2 101
113 devlink_trap_drop_cleanup $mz_pid $swp2 ip 1 101
127 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 \
[all …]
Ddevlink_trap_acl_drops.sh42 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 …]
Dqos_pfc.sh135 devlink_port_pool_th_save $swp2 6
140 devlink_tc_bind_pool_th_save $swp2 1 egress
179 ip link set dev $swp2 up
180 mtu_set $swp2 10000
181 vlan_create $swp2 111
182 ip link set dev $swp2.111 type vlan egress-qos-map 0:0 1:1
184 devlink_port_pool_th_set $swp2 6 $_10MB
185 devlink_tc_bind_pool_th_set $swp2 1 egress 6 $_10MB
188 tc qdisc replace dev $swp2 root handle 1: \
190 tc qdisc replace dev $swp2 parent 1:7 handle 17: \
[all …]
Dqos_mc_aware.sh123 ip link set dev $swp2 up
124 mtu_set $swp2 10000
129 vlan_create $swp2 111
143 ip link set dev $swp2.111 master br111
153 devlink_port_pool_th_save $swp2 0
154 devlink_port_pool_th_set $swp2 0 5
155 devlink_tc_bind_pool_th_save $swp2 1 ingress
156 devlink_tc_bind_pool_th_set $swp2 1 ingress 0 5
166 devlink_tc_bind_pool_th_restore $swp2 1 ingress
167 devlink_port_pool_th_restore $swp2 0
[all …]
Done_armed_router.sh91 ip link set dev $swp2 master br0
92 ip link set dev $swp2 up
95 tc qdisc add dev $swp2 clsact
106 tc qdisc del dev $swp2 clsact
109 ip link set dev $swp2 down
110 ip link set dev $swp2 nomaster
138 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 flower \
142 tc filter add dev $swp2 egress protocol ip pref 2 handle 102 flower \
158 tc_check_packets "dev $swp2 egress" 101 0
165 tc_check_packets "dev $swp2 egress" 102 10
[all …]
Dqos_ets_strict.sh115 ip link set dev $swp2 up
116 mtu_set $swp2 10000
136 vlan_create $swp2 222
145 ip link set dev $swp2.222 master br222
160 devlink_port_pool_th_save $swp2 0
161 devlink_port_pool_th_set $swp2 0 6
162 devlink_tc_bind_pool_th_save $swp2 2 ingress
163 devlink_tc_bind_pool_th_set $swp2 2 ingress 0 6
179 devlink_tc_bind_pool_th_restore $swp2 2 ingress
180 devlink_port_pool_th_restore $swp2 0
[all …]
Dqos_dscp_router.sh110 __simple_if_init $swp2 v$swp1 192.0.2.17/28
113 tc qdisc add dev $swp2 clsact
116 lldptool -T -i $swp2 -V APP $(dscp_map 0) >/dev/null
118 lldpad_app_wait_set $swp2
123 lldptool -T -i $swp2 -V APP -d $(dscp_map 0) >/dev/null
127 tc qdisc del dev $swp2 clsact
130 __simple_if_fini $swp2 192.0.2.17/28
139 swp2=${NETIFS[p3]}
268 lldptool -T -i $swp2 -V APP -d $(dscp_map 0) >/dev/null
273 lldptool -T -i $swp2 -V APP $(dscp_map 0) >/dev/null
[all …]
Drtnetlink.sh42 swp2=${NETIFS[p2]}
45 ip link set dev $swp2 up
52 ip link set dev $swp2 down
59 local swp2_mac=$(mac_get $swp2)
66 ip addr flush dev $swp2
77 ip addr add dev $swp2 192.0.2.2/28 &>/dev/null
79 ip addr add dev $swp2 192.0.2.2/28 2>&1 >/dev/null \
83 ip link set dev $swp2 addr 00:11:22:33:44:66
85 ip addr add dev $swp2 192.0.2.2/28 &>/dev/null
90 ip link set dev $swp2 addr 00:11:22:33:00:66 &>/dev/null
[all …]
Dtc_restrictions.sh25 simple_if_init $swp2 192.0.2.2/24
30 simple_if_fini $swp2 192.0.2.2/24
48 tc qdisc add dev $swp2 ingress_block 22 clsact
51 tc qdisc del dev $swp2 clsact
53 tc qdisc add dev $swp2 egress_block 22 clsact
58 tc qdisc add dev $swp2 egress_block 22 clsact
76 tc qdisc del dev $swp2 clsact
94 action mirred egress redirect dev $swp2
97 tc qdisc add dev $swp2 ingress_block 22 clsact
100 tc qdisc del dev $swp2 clsact
[all …]
Dqos_dscp_bridge.sh81 ip link set dev $swp2 master br1
82 ip link set dev $swp2 up
85 lldptool -T -i $swp2 -V APP $(dscp_map 20) >/dev/null
87 lldpad_app_wait_set $swp2
92 lldptool -T -i $swp2 -V APP -d $(dscp_map 20) >/dev/null
96 ip link set dev $swp2 down
97 ip link set dev $swp2 nomaster
108 swp2=${NETIFS[p3]}
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dskbedit_priority.sh60 ip link set dev $swp2 master br1
61 ip link set dev $swp2 up
64 tc qdisc add dev $swp2 clsact
65 tc qdisc add dev $swp2 root handle 10: \
71 tc qdisc del dev $swp2 root
72 tc qdisc del dev $swp2 clsact
75 ip link set dev $swp2 down
76 ip link set dev $swp2 nomaster
87 swp2=${NETIFS[p3]}
124 local pkt0=$(qdisc_parent_stats_get $swp2 $classid .packets)
[all …]
Dtc_vlan_modify.sh42 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 …]
Dpedit_dsfield.sh66 ip link set dev $swp2 master br1
67 ip link set dev $swp2 up
70 tc qdisc add dev $swp2 clsact
75 tc qdisc del dev $swp2 clsact
78 ip link set dev $swp2 down
79 ip link set dev $swp2 nomaster
90 swp2=${NETIFS[p3]}
183 do_test_ip_dsfield "dev $swp2 egress"
202 do_test_ip_dscp "dev $swp2 egress"
221 do_test_ip_ecn "dev $swp2 egress"
[all …]
Dpedit_l4port.sh62 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 …]
Dtc_shblocks.sh36 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
Dethtool_extended_state.sh17 swp2=${NETIFS[p2]}
59 ip link set dev $swp2 up
61 local -a speeds_arr=($(different_speeds_get $swp1 $swp2 0 0))
66 ethtool_set $swp2 speed $speed2 autoneg off
72 ethtool_extended_state_check $swp2 "Autoneg" \
77 ethtool -s $swp2 autoneg on
80 ip link set dev $swp2 down
Dsch_ets_core.sh216 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
Dbridge_vlan_aware.sh36 ip link set dev $swp2 master br0
40 ip link set dev $swp2 up
45 ip link set dev $swp2 down
56 swp2=${NETIFS[p3]}
96 flood_test $swp2 $h1 $h2
135 bridge fdb show brport $swp2 | grep -q de:ad:be:ef:13:37
140 bridge fdb del de:ad:be:ef:13:37 dev $swp2 master vlan 1 &> /dev/null
Dbridge_vlan_unaware.sh34 ip link set dev $swp2 master br0
38 ip link set dev $swp2 up
43 ip link set dev $swp2 down
54 swp2=${NETIFS[p3]}
94 flood_test $swp2 $h1 $h2
Dsch_tbf_etsprio.sh14 tc qdisc replace dev $swp2 parent 10:3 handle 103: tbf \
16 tc qdisc replace dev $swp2 parent 10:2 handle 102: tbf \
27 tc qdisc add dev $swp2 root handle 10: $QDISC 3 priomap 2 1 0
29 tc qdisc del dev $swp2 root
Dbridge_port_isolation.sh44 ip link set dev $swp2 master br0
49 ip link set dev $swp2 type bridge_slave isolated on
50 check_err $? "Can't set isolation on port $swp2"
56 ip link set dev $swp2 up
63 ip link set dev $swp2 down
74 swp2=${NETIFS[p3]}
Dtc_actions.sh40 simple_if_init $swp2 192.0.2.1/24
45 simple_if_fini $swp2 192.0.2.1/24
71 action mirred egress $action dev $swp2
129 dev $swp2
161 swp2=${NETIFS[p3]}
168 swp2origmac=$(mac_get $swp2)
170 ip link set $swp2 address $h1mac
189 ip link set $swp2 address $swp2origmac
Drouter_bridge.sh48 ip link set dev $swp2 up
49 __addr_add_del $swp2 add 192.0.2.129/28 2001:db8:2::1/64
54 __addr_add_del $swp2 del 192.0.2.129/28 2001:db8:2::1/64
55 ip link set dev $swp2 down
69 swp2=${NETIFS[p3]}
Dsch_ets.sh25 tc qdisc add dev $swp2 root handle 1: tbf \
33 tc qdisc del dev $swp2 root
43 qdisc_parent_stats_get $swp2 10:$((stream + 1)) .bytes

123