Home
last modified time | relevance | path

Searched refs:swp1 (Results 1 – 25 of 107) sorted by relevance

12345

/Linux-v6.1/tools/testing/selftests/drivers/net/mlxsw/
Drtnetlink.sh46 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 …]
Dtc_restrictions.sh27 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 …]
Dethtool_lanes.sh18 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
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
128 check_lanes $swp1 $lanes $max_speed
[all …]
Dq_in_q_veto.sh25 swp1=${NETIFS[p1]}
28 ip link set dev $swp1 up
39 ip link set dev $swp1 down
53 ip link set dev $swp1 master br0
73 ip link add name $swp1.100 link $swp1 type vlan \
77 ip link add name $swp1.100 link $swp1 type vlan \
92 ip link set dev $swp1 master br0
95 ip link add name $swp1.100 link $swp1 type vlan \
99 ip link add name $swp1.100 link $swp1 type vlan \
114 ip link set dev $swp1 down
[all …]
Dqos_max_descriptors.sh106 devlink_port_pool_th_save $swp1 1
109 devlink_tc_bind_pool_th_save $swp1 1 ingress
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
125 tc qdisc replace dev $swp1 root handle 1: \
127 dcb buffer set dev $swp1 prio-buffer all:0 1:1
148 ip link set dev $swp1.111 master br1
[all …]
Degress_vid_classification.sh102 ip link set dev $swp1 up
103 tc qdisc add dev $swp1 clsact
139 tc qdisc del dev $swp1 clsact
140 ip link set dev $swp1 down
146 swp1=${NETIFS[p2]}
203 vlan_create $swp1 10
204 ip link set dev $swp1.10 master br0
213 tc filter add dev $swp1 egress protocol ip pref 1 handle 101 \
219 tc_check_at_least_x_packets "dev $swp1 egress" 101 10
224 tc filter del dev $swp1 egress
[all …]
Dqos_defprio.sh80 ip link set dev $swp1 up
81 ip addr add dev $swp1 192.0.2.2/28
86 defprio_flush $swp1
87 ip addr del dev $swp1 192.0.2.2/28
88 ip link set dev $swp1 down
94 swp1=${NETIFS[p2]}
127 defprio_install $swp1 $prio_install
129 local t0=$(ethtool_stats_get $swp1 rx_frames_prio_$prio_observe)
132 ethtool_stats_get $swp1 rx_frames_prio_$prio_observe)
137 defprio_uninstall $swp1 $prio_install
[all …]
Dtc_police_occ.sh28 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 …]
Dqos_pfc.sh134 devlink_port_pool_th_save $swp1 1
139 devlink_tc_bind_pool_th_save $swp1 1 ingress
162 ip link set dev $swp1 up
163 mtu_set $swp1 10000
164 vlan_create $swp1 111
165 ip link set dev $swp1.111 type vlan ingress-qos-map 0:0 1:1
167 devlink_port_pool_th_set $swp1 1 $_10MB
168 devlink_tc_bind_pool_th_set $swp1 1 ingress 1 $_10MB
172 tc qdisc replace dev $swp1 root handle 1: \
174 dcb buffer set dev $swp1 prio-buffer all:0 1:1
[all …]
Dtc_action_hw_stats.sh30 simple_if_init $swp1 192.0.2.2/24
31 tc qdisc add dev $swp1 clsact
36 tc qdisc del dev $swp1 clsact
37 simple_if_fini $swp1 192.0.2.2/24
51 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
63 tc_check_packets "dev $swp1 ingress" 101 $expected_packet_count
66 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
85 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
100 swp1=${NETIFS[p2]}
103 swp1mac=$(mac_get $swp1)
/Linux-v6.1/tools/testing/selftests/drivers/net/dsa/
Dtc_actions.sh39 simple_if_init $swp1 192.0.2.2/24
40 tc qdisc add dev $swp1 clsact
49 tc qdisc del dev $swp1 clsact
50 simple_if_fini $swp1 192.0.2.2/24
71 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
81 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
92 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \
98 tc_check_packets "dev $swp1 ingress" 102 1
101 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
107 tc_check_packets "dev $swp1 ingress" 101 1
[all …]
Dbridge_locked_port.sh37 ip link set dev $swp1 master br0
40 bridge link set dev $swp1 learning off
43 ip link set dev $swp1 up
50 ip link set dev $swp1 down
58 swp1=${NETIFS[p2]}
92 bridge link set dev $swp1 locked on
97 bridge fdb add `mac_get $h1` dev $swp1 master static
102 bridge link set dev $swp1 locked off
103 bridge fdb del `mac_get $h1` dev $swp1 master static
117 bridge vlan add vid 100 dev $swp1
[all …]
Dbridge_vlan_aware.sh36 ip link set dev $swp1 master br0
40 ip link set dev $swp1 up
47 ip link set dev $swp1 down
55 swp1=${NETIFS[p2]}
92 learning_test "br0" $swp1 $h1 $h2
104 log_info "Add and delete a VLAN on bridge port $swp1"
106 bridge vlan add vid 10 dev $swp1
107 bridge vlan del vid 10 dev $swp1
121 bridge fdb add de:ad:be:ef:13:37 dev $swp1 master extern_learn vlan 1
123 bridge fdb show brport $swp1 | grep -q de:ad:be:ef:13:37
[all …]
Dbridge_mld.sh93 ip link set dev $swp1 master br0
97 ip link set dev $swp1 up
107 ip link set dev $swp1 down
115 swp1=${NETIFS[p2]}
216 mldv2cleanup $swp1
237 mldv2cleanup $swp1
258 mldv2cleanup $swp1
272 mldv2cleanup $swp1
319 mldv2cleanup $swp1
342 mldv2cleanup $swp1
[all …]
/Linux-v6.1/tools/testing/selftests/net/forwarding/
Dtc_actions.sh39 simple_if_init $swp1 192.0.2.2/24
40 tc qdisc add dev $swp1 clsact
49 tc qdisc del dev $swp1 clsact
50 simple_if_fini $swp1 192.0.2.2/24
71 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
81 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
92 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \
98 tc_check_packets "dev $swp1 ingress" 102 1
101 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
107 tc_check_packets "dev $swp1 ingress" 101 1
[all …]
Dbridge_locked_port.sh37 ip link set dev $swp1 master br0
40 bridge link set dev $swp1 learning off
43 ip link set dev $swp1 up
50 ip link set dev $swp1 down
58 swp1=${NETIFS[p2]}
92 bridge link set dev $swp1 locked on
97 bridge fdb add `mac_get $h1` dev $swp1 master static
102 bridge link set dev $swp1 locked off
103 bridge fdb del `mac_get $h1` dev $swp1 master static
117 bridge vlan add vid 100 dev $swp1
[all …]
Dmirror_gre_changes.sh28 swp1=${NETIFS[p2]}
75 mirror_install $swp1 ingress $tundev "matchall $tcflags"
87 mirror_uninstall $swp1 ingress
100 mirror_install $swp1 ingress $tundev "matchall $tcflags"
106 mirror_uninstall $swp1 ingress
120 mirror_install $swp1 ingress $tundev "matchall $tcflags"
130 mirror_uninstall $swp1 ingress
146 mirror_install $swp1 ingress $tundev "matchall $tcflags"
151 mirror_uninstall $swp1 ingress
167 mirror_install $swp1 ingress $tundev "matchall $tcflags"
[all …]
Dmirror_gre.sh30 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 …]
Dbridge_vlan_aware.sh36 ip link set dev $swp1 master br0
40 ip link set dev $swp1 up
47 ip link set dev $swp1 down
55 swp1=${NETIFS[p2]}
92 learning_test "br0" $swp1 $h1 $h2
104 log_info "Add and delete a VLAN on bridge port $swp1"
106 bridge vlan add vid 10 dev $swp1
107 bridge vlan del vid 10 dev $swp1
121 bridge fdb add de:ad:be:ef:13:37 dev $swp1 master extern_learn vlan 1
123 bridge fdb show brport $swp1 | grep -q de:ad:be:ef:13:37
[all …]
Dmirror_gre_bridge_1q_lag.sh132 ip link set dev $swp1 up
133 tc qdisc add dev $swp1 clsact
134 vlan_create $swp1 333 "" 192.0.2.2/28
135 vlan_create $swp1 555 "" 192.0.2.17/28
168 vlan_destroy $swp1 555
169 vlan_destroy $swp1 333
170 tc qdisc del dev $swp1 clsact
171 ip link set dev $swp1 down
177 swp1=${NETIFS[p2]}
228 tc filter add dev $swp1 ingress pref 999 \
[all …]
Dethtool_extended_state.sh18 swp1=${NETIFS[p1]}
51 ip link set dev $swp1 up
53 msg=$(busywait $TIMEOUT ethtool_ext_state $swp1 \
59 ip link set dev $swp1 down
68 ip link set dev $swp1 up
71 local -a speeds_arr=($(different_speeds_get $swp1 $swp2 0 0))
75 ethtool_set $swp1 speed $speed1 autoneg off
78 msg=$(busywait $TIMEOUT ethtool_ext_state $swp1 \
89 ethtool -s $swp1 autoneg on
92 ip link set dev $swp1 down
Dmirror_vlan.sh22 swp1=${NETIFS[p2]}
39 bridge vlan add dev $swp1 vid 111
66 mirror_install $swp1 $direction $swp3.555 "matchall $tcflags"
68 mirror_uninstall $swp1 $direction
87 mirror_install $swp1 $direction $swp3.555 "matchall $tcflags"
92 mirror_uninstall $swp1 $direction
105 slow_path_trap_install $swp1 ingress
106 slow_path_trap_install $swp1 egress
112 slow_path_trap_uninstall $swp1 egress
113 slow_path_trap_uninstall $swp1 ingress
Dtc_vlan_modify.sh41 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 …]
Dbridge_mld.sh93 ip link set dev $swp1 master br0
97 ip link set dev $swp1 up
107 ip link set dev $swp1 down
115 swp1=${NETIFS[p2]}
216 mldv2cleanup $swp1
237 mldv2cleanup $swp1
258 mldv2cleanup $swp1
272 mldv2cleanup $swp1
319 mldv2cleanup $swp1
342 mldv2cleanup $swp1
[all …]
/Linux-v6.1/tools/testing/selftests/drivers/net/ocelot/
Dtc_flower_chains.sh15 swp1=${NETIFS[p2]}
141 ip link set $swp1 up
146 create_tcam_skeleton $swp1
149 ip link set $swp1 master br0
159 tc filter add dev $swp1 ingress chain $(IS1 1) pref 1 \
164 tc filter add dev $swp1 egress chain $(ES0) pref 1 \
168 tc filter add dev $swp1 ingress chain $(IS1 0) pref 2 \
173 tc filter add dev $swp1 ingress chain $(IS2 0 0) pref 1 \
183 tc qdisc del dev $swp1 clsact
244 bridge vlan add dev $swp1 vid 200
[all …]

12345