Home
last modified time | relevance | path

Searched full:swp1 (Results 1 – 25 of 126) sorted by relevance

123456

/linux-6.12.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 …]
Dq_in_q_veto.sh25 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 …]
Dethtool_lanes.sh19 swp1=${NETIFS[p1]}
22 ip link set dev $swp1 up
28 busywait $TIMEOUT sh -c "ethtool $swp1 | grep -q Lanes:"
35 ip link set dev $swp1 down
49 check_err $? "swp1 advertise $max_speed and $lanes, devs sync to $chosen_lanes"
66 ethtool -s $swp1 speed $max_speed lanes $unsupported_lanes $autoneg_str &> /dev/null
113 local -a linkmodes_params=($(dev_linkmodes_params_get $swp1 1))
114 local -a max_values=($(max_speed_and_lanes_get $swp1 "${linkmodes_params[@]}"))
123 ethtool_set $swp1 speed $max_speed lanes $lanes
124 ip link set dev $swp1 up
[all …]
Dqos_max_descriptors.sh23 # | + $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 …]
Dqos_defprio.sh4 # 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 …]
Drif_lag.sh19 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 …]
Dport_range_occ.sh29 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 …]
Degress_vid_classification.sh19 # | 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 …]
Drif_lag_vlan.sh19 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 …]
Dqos_pfc.sh8 # - 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 |
45 # | | + $swp1.111 $swp3.111 + | | + $swp4.111 | |
135 devlink_port_pool_th_save $swp1 1
140 devlink_tc_bind_pool_th_save $swp1 1 ingress
160 # $swp1
163 ip link set dev $swp1 up
[all …]
Ddevlink_trap_l2_drops.sh48 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 …]
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)
/linux-6.12.1/tools/testing/selftests/net/
Dtest_bridge_backup_port.sh6 # 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 …]
/linux-6.12.1/tools/testing/selftests/net/forwarding/
Dbridge_locked_port.sh47 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 …]
Dtc_actions.sh43 simple_if_init $swp1 192.0.2.2/24
44 tc qdisc add dev $swp1 clsact
53 tc qdisc del dev $swp1 clsact
54 simple_if_fini $swp1 192.0.2.2/24
75 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
85 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
96 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \
102 tc_check_packets "dev $swp1 ingress" 102 1
105 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
111 tc_check_packets "dev $swp1 ingress" 101 1
[all …]
Dtc_tunnel_key.sh45 simple_if_init $swp1 192.0.2.2/24
46 tc qdisc add dev $swp1 clsact
53 tc qdisc del dev $swp1 clsact
54 simple_if_fini $swp1 192.0.2.2/24
60 swp1=${NETIFS[p2]}
68 swp1origmac=$(mac_get $swp1)
70 ip link set $swp1 address $h2mac
96 ip link set $swp1 address $swp1origmac
104 tc filter add dev $swp1 ingress protocol ip pref 100 handle 100 \
107 tc filter add dev $swp1 ingress protocol ip pref 101 handle 101 \
[all …]
Dbridge_mdb.sh20 # | | + $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 …]
Dbridge_mdb_max.sh20 # | | + $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 …]
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 …]
Drouter_bridge_1d.sh15 # | SW + $swp1 + $swp2 |
22 # | | + $swp1.100 BR1 (802.1d) | | + $swp1.200 BR2 (802.1d) | |
83 ip link set dev $swp1 up
85 vlan_create $swp1 100
87 ip link set dev br1 address $(mac_get $swp1.100)
88 ip link set dev $swp1.100 master br1
92 vlan_create $swp1 200
94 ip link set dev br2 address $(mac_get $swp1.200)
95 ip link set dev $swp1.200 master br2
111 ip link set dev $swp1.200 nomaster
[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"
107 mirror_uninstall $swp1 ingress
121 mirror_install $swp1 ingress $tundev "matchall"
131 mirror_uninstall $swp1 ingress
147 mirror_install $swp1 ingress $tundev "matchall"
152 mirror_uninstall $swp1 ingress
168 mirror_install $swp1 ingress $tundev "matchall"
[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 …]
/linux-6.12.1/tools/testing/selftests/drivers/net/microchip/
Dksz9477_qos.sh22 swp1=${NETIFS[p2]}
62 ip link set ${swp1} up
64 sysctl_set net.ipv6.conf.${swp1}.disable_ipv6 1
69 ip link set ${swp1} master br0
78 sysctl_restore net.ipv6.conf.${swp1}.disable_ipv6
196 local swp1_stats=$(ip -s -j link show dev ${swp1})
206 local swp1_rx_hi_before=$(ethtool_stats_get ${swp1} "rx_hi")
231 local swp1_stats=$(ip -s -j link show dev ${swp1})
248 local swp1_rx_hi_after=$(ethtool_stats_get ${swp1} "rx_hi")
251 # Test if any packets were received on swp1, we will rx before and after
[all …]

123456