Home
last modified time | relevance | path

Searched full:swp2 (Results 1 – 25 of 105) sorted by relevance

12345

/linux/tools/testing/selftests/net/forwarding/
H A Dtc_flower_l2_miss.sh14 # | | + $swp1 BR $swp2 + | |
54 ip link set dev $swp2 master br1
55 ip link set dev $swp2 up
57 tc qdisc add dev $swp2 clsact
62 tc qdisc del dev $swp2 clsact
64 ip link set dev $swp2 down
65 ip link set dev $swp2 nomaster
80 tc filter add dev $swp2 egress protocol ipv4 handle 101 pref 1 \
84 tc filter add dev $swp2 egress protocol ipv4 handle 102 pref 1 \
91 tc_check_packets "dev $swp2 egress" 101 1
[all …]
H A 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 …]
H A Dbridge_mdb_port_down.sh19 ip link set dev $swp2 down
20 bridge mdb add dev br0 port "$swp2" grp $TEST_GROUP permanent 2>/dev/null
23 ip link set dev $swp2 up
24 setup_wait_dev $swp2
28 ip link set dev $swp2 down
32 bridge mdb del dev br0 port "$swp2" grp $TEST_GROUP 2>/dev/null
35 ip link set dev $swp2 up
36 setup_wait_dev $swp2
69 ip link set dev $swp2 master br0
74 bridge link set dev $swp2 mcast_flood off
[all …]
H A Dsch_tbf_etsprio.sh17 tc qdisc replace dev $swp2 parent 10:3 handle 103: tbf \
19 tc qdisc replace dev $swp2 parent 10:2 handle 102: tbf \
32 tc qdisc add dev $swp2 root handle 10: $QDISC 3 priomap 2 1 0
34 tc qdisc del dev $swp2 root
43 tc qdisc replace dev $swp2 root handle 1: \
45 tc qdisc replace dev $swp2 parent 1:1 handle 10: \
47 tc qdisc replace dev $swp2 parent 10:3 handle 103: \
49 tc qdisc replace dev $swp2 parent 10:2 handle 102: \
51 tc qdisc replace dev $swp2 parent 10:1 handle 101: \
57 tc qdisc del dev $swp2 root
H A Dskbedit_priority.sh5 # egress of $swp2, the traffic is acted upon by an action skbedit priority. The
7 # qdisc at $swp2. The test verifies that for different priority values, the
19 # | | + $swp1 BR $swp2 + | |
62 ip link set dev $swp2 master br1
63 ip link set dev $swp2 up
66 tc qdisc add dev $swp2 clsact
67 tc qdisc add dev $swp2 root handle 10: \
73 tc qdisc del dev $swp2 root
74 tc qdisc del dev $swp2 clsact
77 ip link set dev $swp2 down
[all …]
H A Dpedit_l4port.sh4 # This test sends traffic from H1 to H2. Either on ingress of $swp1, or on egress of $swp2, the
17 # | | + $swp1 BR $swp2 + | |
62 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
[all …]
H A Dpedit_ip.sh5 # egress of $swp2, the traffic is acted upon by a pedit action. An ingress
17 # | | + $swp1 BR $swp2 + | |
61 ip link set dev $swp2 master br1
62 ip link set dev $swp2 up
65 tc qdisc add dev $swp2 clsact
70 tc qdisc del dev $swp2 clsact
73 ip link set dev $swp2 down
74 ip link set dev $swp2 nomaster
85 swp2=${NETIFS[p3]}
173 do_test_pedit_ip4 "dev $swp2 egress" "ip src" src_ip
[all …]
H A Dpedit_dsfield.sh5 # egress of $swp2, the traffic is acted upon by a pedit action. An ingress
17 # | | + $swp1 BR $swp2 + | |
68 ip link set dev $swp2 master br1
69 ip link set dev $swp2 up
72 tc qdisc add dev $swp2 clsact
77 tc qdisc del dev $swp2 clsact
80 ip link set dev $swp2 down
81 ip link set dev $swp2 nomaster
92 swp2=${NETIFS[p3]}
185 do_test_ip_dsfield "dev $swp2 egress"
[all …]
H A 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
H A Dtc_flower_port_range.sh14 # | | + $swp1 BR $swp2 + | |
54 ip link set dev $swp2 master br1
55 ip link set dev $swp2 up
59 tc qdisc add dev $swp2 clsact
64 tc qdisc del dev $swp2 clsact
68 ip link set dev $swp2 down
69 ip link set dev $swp2 nomaster
99 tc filter add dev $swp2 egress protocol $proto handle 101 pref 1 \
109 tc_check_packets "dev $swp2 egress" 101 1
116 tc_check_packets "dev $swp2 egress" 101 2
[all …]
H A Dsch_ets_core.sh13 # system to assure that there is overcommitment at $swp2. That is necessary so
43 # | | + $swp2.10 | | + $swp2.11 | | + $swp2.12 | |
47 # | + $swp2 |
216 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
[all …]
H A Dbridge_locked_port.sh48 ip link set dev $swp2 master br0
54 ip link set dev $swp2 up
59 ip link set dev $swp2 down
70 swp2=${NETIFS[p3]}
128 bridge vlan add vid 100 dev $swp2
149 bridge vlan del vid 100 dev $swp2
233 bridge fdb get $mac br br0 vlan 1 | grep -q "dev $swp2"
243 bridge fdb del $mac vlan 1 dev $swp2 master
282 bridge link set dev $swp2 learning on locked on mab on
286 bridge fdb add $unlocked_mac2 dev $swp2 vlan 1 master static
[all …]
H A Drouter_bridge_vlan_upper.sh16 # | | + $swp1 BR1 (802.1q) + $swp2 | |
74 ip link set dev $swp2 master br1
76 ip link set dev $swp2 up
81 bridge vlan add dev $swp2 vid 777
92 bridge vlan del dev $swp2 vid 777
97 ip link set dev $swp2 down nomaster
109 swp2=${NETIFS[p3]}
150 ip link set dev $swp2 nomaster
156 ip link set dev $swp2 master br1
159 bridge vlan add dev $swp2 vid 777
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Ddevlink_trap_l2_drops.sh49 ip link set dev $swp2 master br0
53 ip link set dev $swp2 up
55 tc qdisc add dev $swp2 clsact
60 tc qdisc del dev $swp2 clsact
62 ip link set dev $swp2 down
73 swp2=${NETIFS[p3]}
102 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 \
110 devlink_trap_drop_test $trap_name $swp2 101
114 devlink_trap_drop_cleanup $mz_pid $swp2 ip 1 101
128 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 \
[all …]
H A Dsch_ets.sh22 tc qdisc replace dev $swp2 root handle 3: tbf rate 1gbit \
35 devlink_port_pool_th_save $swp2 4
36 devlink_port_pool_th_set $swp2 4 12
37 devlink_tc_bind_pool_th_save $swp2 7 egress
38 devlink_tc_bind_pool_th_set $swp2 7 egress 4 5
39 devlink_tc_bind_pool_th_save $swp2 6 egress
40 devlink_tc_bind_pool_th_set $swp2 6 egress 4 5
41 devlink_tc_bind_pool_th_save $swp2 5 egress
42 devlink_tc_bind_pool_th_set $swp2 5 egress 4 5
52 devlink_tc_bind_pool_th_restore $swp2 5 egress
[all …]
H A Dqos_max_descriptors.sh5 # switch. A shaper is used in $swp2, so the traffic is limited there. Packets
31 # | | + $swp2.111 | |
34 # | + $swp2 |
107 devlink_port_pool_th_save $swp2 6
110 devlink_tc_bind_pool_th_save $swp2 1 egress
129 # $swp2
132 ip link set dev $swp2 up
133 vlan_create $swp2 111
134 ip link set dev $swp2.111 type vlan egress-qos-map 0:0 1:1
136 devlink_port_pool_th_set $swp2 6 $MAX_POOL_SIZE
[all …]
H A 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 …]
H A Dqos_pfc.sh11 # to a small pool ("PFC pool"). The traffic is forwarded to $swp2, which is
22 # $swp2, and eventually to $h2.
49 # | | | | + $swp2.111 | |
54 # | iPOOL2: 1MB static + $swp2 |
136 devlink_port_pool_th_save $swp2 6
141 devlink_tc_bind_pool_th_save $swp2 1 egress
177 # $swp2
180 ip link set dev $swp2 up
181 mtu_set $swp2 10000
182 vlan_create $swp2 111
[all …]
H A Done_armed_router.sh30 # | | + $swp2 | |
92 ip link set dev $swp2 master br0
93 ip link set dev $swp2 up
96 tc qdisc add dev $swp2 clsact
107 tc qdisc del dev $swp2 clsact
110 ip link set dev $swp2 down
111 ip link set dev $swp2 nomaster
133 # swp2
139 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 flower \
143 tc filter add dev $swp2 egress protocol ip pref 2 handle 102 flower \
[all …]
H A Dtc_restrictions.sh28 simple_if_init $swp2 192.0.2.2/24
33 simple_if_fini $swp2 192.0.2.2/24
51 tc qdisc add dev $swp2 ingress_block 22 clsact
54 tc qdisc del dev $swp2 clsact
56 tc qdisc add dev $swp2 egress_block 22 clsact
61 tc qdisc add dev $swp2 egress_block 22 clsact
79 tc qdisc del dev $swp2 clsact
97 action mirred egress redirect dev $swp2
100 tc qdisc add dev $swp2 ingress_block 22 clsact
103 tc qdisc del dev $swp2 clsact
[all …]
H A Dqos_mc_aware.sh38 # | $swp1 + + $swp2 |
41 # | | $swp1.1 + | | + $swp2.111 | |
123 ip link set dev $swp2 up
124 mtu_set $swp2 10000
129 vlan_create $swp2 111
146 ip link set dev $swp2.111 master br111
156 devlink_port_pool_th_save $swp2 0
157 devlink_port_pool_th_set $swp2 0 5
158 devlink_tc_bind_pool_th_save $swp2 1 ingress
159 devlink_tc_bind_pool_th_set $swp2 1 ingress 0 5
[all …]
H A Dqos_ets_strict.sh23 # | $swp1 + + $swp2 |
26 # | | $swp1.111 + | | + $swp2.222 | |
115 ip link set dev $swp2 up
116 mtu_set $swp2 10000
137 vlan_create $swp2 222
150 ip link set dev $swp2.222 master br222
165 devlink_port_pool_th_save $swp2 0
166 devlink_port_pool_th_set $swp2 0 6
167 devlink_tc_bind_pool_th_save $swp2 2 ingress
168 devlink_tc_bind_pool_th_set $swp2 2 ingress 0 6
[all …]
H A Dethtool_lanes.sh20 swp2=${NETIFS[p2]}
23 ip link set dev $swp2 up
25 busywait "$TIMEOUT" wait_for_port_up ethtool $swp2
34 ip link set dev $swp2 down
125 ip link set dev $swp2 up
139 ip link set dev $swp2 down
162 ethtool_set $swp2 speed $max_speed lanes $lanes autoneg off
164 ip link set dev $swp2 up
178 ip link set dev $swp2 down
181 ethtool -s $swp2 autoneg on
H A Drtnetlink.sh47 swp2=${NETIFS[p2]}
50 ip link set dev $swp2 up
57 ip link set dev $swp2 down
82 local swp2_mac=$(mac_get $swp2)
93 ip link set dev $swp2 master br1
107 ip link set dev $swp2 addr 00:11:22:33:44:55
108 check_err $? "Changing swp2's MAC address not permitted"
112 ip link set dev $swp2 addr $swp2_mac
290 ip link set dev $swp2 down
292 ip link set dev $swp2 master bond1
[all …]
/linux/tools/testing/selftests/drivers/net/hw/
H A Dethtool_extended_state.sh20 swp2=${NETIFS[p2]}
70 ip link set dev $swp2 up
72 local -a speeds_arr=($(different_speeds_get $swp1 $swp2 0 0))
77 ethtool_set $swp2 speed $speed2 autoneg off
83 msg=$(busywait $TIMEOUT ethtool_ext_state $swp2 \
89 ethtool -s $swp2 autoneg on
92 ip link set dev $swp2 down

12345