Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Drtnetlink.sh41 swp1=${NETIFS[p1]}
44 ip link set dev $swp1 up
53 ip link set dev $swp1 down
58 local swp1_mac=$(mac_get $swp1)
65 ip addr flush dev $swp1
69 ip addr add dev $swp1 192.0.2.1/28
72 ip link set dev $swp1 addr 00:11:22:33:44:55
99 ip addr del dev $swp1 192.0.2.1/28
102 ip link set dev $swp1 addr $swp1_mac
112 ip link set dev $swp1 master vrf-test
[all …]
Dtc_restrictions.sh24 simple_if_init $swp1 192.0.2.1/24
31 simple_if_fini $swp1 192.0.2.1/24
41 tc qdisc add dev $swp1 ingress_block 22 clsact
65 tc qdisc del dev $swp1 clsact
67 tc qdisc add dev $swp1 egress_block 22 clsact
77 tc qdisc del dev $swp1 clsact
89 tc qdisc add dev $swp1 ingress_block 22 clsact
115 tc qdisc del dev $swp1 clsact
117 tc qdisc add dev $swp1 egress_block 22 clsact
132 tc qdisc del dev $swp1 clsact
[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 …]
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 __mlnx_qos -i $swp1 --prio2buffer=0,1,0,0,0,0,0,0 >/dev/null
[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 …]
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)
Dqos_ets_strict.sh112 ip link set dev $swp1 up
113 mtu_set $swp1 10000
135 vlan_create $swp1 111
141 ip link set dev $swp1.111 master br111
155 devlink_port_pool_th_save $swp1 0
156 devlink_port_pool_th_set $swp1 0 6
157 devlink_tc_bind_pool_th_save $swp1 1 ingress
158 devlink_tc_bind_pool_th_set $swp1 1 ingress 0 6
182 devlink_tc_bind_pool_th_restore $swp1 1 ingress
183 devlink_port_pool_th_restore $swp1 0
[all …]
Ddevlink_trap_tunnel_vxlan.sh65 ip link set dev br1 address $(mac_get $swp1)
68 tc qdisc add dev $swp1 clsact
69 ip link set dev $swp1 master br1
70 ip link set dev $swp1 up
90 ip link set dev $swp1 down
91 ip link set dev $swp1 nomaster
92 tc qdisc del dev $swp1 clsact
111 swp1=${NETIFS[p2]}
169 tc filter add dev $swp1 egress protocol ip pref 1 handle 101 \
181 tc_check_packets "dev $swp1 egress" 101 0
[all …]
Ddevlink_trap_tunnel_ipip.sh67 __addr_add_del $swp1 add 192.0.2.2/28
68 tc qdisc add dev $swp1 clsact
69 ip link set dev $swp1 up
88 ip link set dev $swp1 down
89 tc qdisc del dev $swp1 clsact
90 __addr_add_del $swp1 del 192.0.2.2/28
96 swp1=${NETIFS[p2]}
150 tc filter add dev $swp1 egress protocol ip pref 1 handle 101 \
165 tc_check_packets "dev $swp1 egress" 101 0
171 tc filter del dev $swp1 egress protocol ip pref 1 handle 101 flower
[all …]
Dqos_mc_aware.sh120 ip link set dev $swp1 up
121 mtu_set $swp1 10000
138 ip link set dev $swp1 master br1
148 devlink_port_pool_th_save $swp1 0
149 devlink_port_pool_th_set $swp1 0 5
150 devlink_tc_bind_pool_th_save $swp1 0 ingress
151 devlink_tc_bind_pool_th_set $swp1 0 ingress 0 5
169 devlink_tc_bind_pool_th_restore $swp1 0 ingress
170 devlink_port_pool_th_restore $swp1 0
187 mtu_restore $swp1
[all …]
Dtc_police_scale.sh17 simple_if_init $swp1
18 tc qdisc add dev $swp1 clsact
23 tc qdisc del dev $swp1 clsact
24 simple_if_fini $swp1
43 filter add dev $swp1 ingress \
63 offload_count=$(tc -j filter show dev $swp1 ingress |
85 swp1=${NETIFS[p2]}
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dtc_actions.sh37 simple_if_init $swp1 192.0.2.2/24
38 tc qdisc add dev $swp1 clsact
47 tc qdisc del dev $swp1 clsact
48 simple_if_fini $swp1 192.0.2.2/24
69 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
79 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
90 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \
96 tc_check_packets "dev $swp1 ingress" 102 1
99 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
105 tc_check_packets "dev $swp1 ingress" 101 1
[all …]
Dmirror_gre_changes.sh28 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 …]
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 …]
Dethtool_extended_state.sh16 swp1=${NETIFS[p1]}
44 ip link set dev $swp1 up
47 ethtool_extended_state_check $swp1 "Autoneg" "No partner detected"
51 ip link set dev $swp1 down
58 ip link set dev $swp1 up
61 local -a speeds_arr=($(different_speeds_get $swp1 $swp2 0 0))
65 ethtool_set $swp1 speed $speed1 autoneg off
69 ethtool_extended_state_check $swp1 "Autoneg" \
78 ethtool -s $swp1 autoneg on
81 ip link set dev $swp1 down
Dbridge_vlan_aware.sh35 ip link set dev $swp1 master br0
39 ip link set dev $swp1 up
46 ip link set dev $swp1 down
54 swp1=${NETIFS[p2]}
91 learning_test "br0" $swp1 $h1 $h2
103 log_info "Add and delete a VLAN on bridge port $swp1"
105 bridge vlan add vid 10 dev $swp1
106 bridge vlan del vid 10 dev $swp1
120 bridge fdb add de:ad:be:ef:13:37 dev $swp1 master extern_learn vlan 1
122 bridge fdb show brport $swp1 | grep -q de:ad:be:ef:13:37
[all …]
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
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
167 vlan_destroy $swp1 555
168 vlan_destroy $swp1 333
169 tc qdisc del dev $swp1 clsact
170 ip link set dev $swp1 down
176 swp1=${NETIFS[p2]}
227 tc filter add dev $swp1 ingress pref 999 \
[all …]
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 …]
Dmirror_gre_lag_lacp.sh141 ip link set dev $swp1 up
142 tc qdisc add dev $swp1 clsact
143 vlan_create $swp1 333 "" 192.0.2.2/28
144 vlan_create $swp1 555 "" 192.0.2.17/28
167 vlan_destroy $swp1 555
168 vlan_destroy $swp1 333
169 tc qdisc del dev $swp1 clsact
170 ip link set dev $swp1 down
176 swp1=${NETIFS[p2]}
220 mirror_install $swp1 ingress gt4 \
[all …]
Dpedit_dsfield.sh64 ip link set dev $swp1 master br1
65 ip link set dev $swp1 up
69 tc qdisc add dev $swp1 clsact
76 tc qdisc del dev $swp1 clsact
80 ip link set dev $swp1 down
81 ip link set dev $swp1 nomaster
88 swp1=${NETIFS[p2]}
182 do_test_ip_dsfield "dev $swp1 ingress"
201 do_test_ip_dscp "dev $swp1 ingress"
220 do_test_ip_ecn "dev $swp1 ingress"
[all …]
Dpedit_l4port.sh60 ip link set dev $swp1 master br1
61 ip link set dev $swp1 up
65 tc qdisc add dev $swp1 clsact
72 tc qdisc del dev $swp1 clsact
76 ip link set dev $swp1 down
77 ip link set dev $swp1 nomaster
84 swp1=${NETIFS[p2]}
171 do_test_pedit_l4port "dev $swp1 ingress" udp sport src_port
177 do_test_pedit_l4port "dev $swp1 ingress" udp dport dst_port
183 do_test_pedit_l4port "dev $swp1 ingress" tcp sport src_port
[all …]
Dmirror_gre_nh.sh24 swp1=${NETIFS[p2]}
78 mirror_install $swp1 ingress gt4 "matchall $tcflags"
90 mirror_uninstall $swp1 ingress
98 mirror_install $swp1 ingress gt6 "matchall $tcflags"
100 mirror_uninstall $swp1 ingress
107 slow_path_trap_install $swp1 ingress
108 slow_path_trap_install $swp1 egress
112 slow_path_trap_uninstall $swp1 egress
113 slow_path_trap_uninstall $swp1 ingress
Dmirror_gre_vlan_bridge_1q.sh78 swp1=${NETIFS[p2]}
156 mirror_install $swp1 ingress $tundev "matchall $tcflags"
168 mirror_uninstall $swp1 ingress
190 mirror_install $swp1 ingress $tundev "matchall $tcflags"
203 mirror_uninstall $swp1 ingress
225 mirror_install $swp1 ingress $tundev "matchall $tcflags"
246 mirror_uninstall $swp1 ingress
269 mirror_install $swp1 ingress $tundev "matchall $tcflags"
296 mirror_uninstall $swp1 ingress
323 slow_path_trap_install $swp1 ingress
[all …]
Dmirror_gre_bound.sh103 ip link set dev $swp1 master br1
104 ip link set dev $swp1 up
109 tc qdisc add dev $swp1 clsact
146 tc qdisc del dev $swp1 clsact
148 ip link set dev $swp1 down
156 swp1=${NETIFS[p2]}
202 slow_path_trap_install $swp1 ingress
203 slow_path_trap_install $swp1 egress
207 slow_path_trap_uninstall $swp1 egress
208 slow_path_trap_uninstall $swp1 ingress

123