Home
last modified time | relevance | path

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

123456

/Linux-v6.6/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.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
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 |
46 # | | + $swp1.111 $swp3.111 + | | + $swp4.111 | |
133 devlink_port_pool_th_save $swp1 1
138 devlink_tc_bind_pool_th_save $swp1 1 ingress
158 # $swp1
161 ip link set dev $swp1 up
[all …]
/Linux-v6.6/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 |
179 ip -n $ns link add name swp1 up type dummy
180 ip -n $ns link set dev swp1 master br0
181 bridge -n $ns vlan add vid 10 dev swp1 untagged
251 run_cmd "tc -n sw1 qdisc replace dev swp1 clsact"
252 …run_cmd "tc -n sw1 filter replace dev swp1 egress pref 1 handle 101 proto ip flower src_mac $smac …
257 run_cmd "bridge -n sw1 fdb replace $dmac dev swp1 master static vlan 10"
259 # Initial state - check that packets are forwarded out of swp1 when it
263 tc_check_packets sw1 "dev swp1 egress" 101 1
[all …]
/Linux-v6.6/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.sh42 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 …]
Dtc_tunnel_key.sh47 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 …]
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 …]
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 …]
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 …]
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 …]
/Linux-v6.6/tools/testing/selftests/drivers/net/dsa/
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.sh42 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 …]
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 …]

123456