Home
last modified time | relevance | path

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

123

/tools/testing/selftests/drivers/net/mlxsw/
Drtnetlink.sh48 swp1=${NETIFS[p1]}
51 ip link set dev $swp1 up
60 ip link set dev $swp1 down
65 local swp1_mac=$(mac_get $swp1)
72 ip addr flush dev $swp1
76 ip addr add dev $swp1 192.0.2.1/28
79 ip link set dev $swp1 addr 00:11:22:33:44:55
106 ip addr del dev $swp1 192.0.2.1/28
109 ip link set dev $swp1 addr $swp1_mac
119 ip link set dev $swp1 master vrf-test
[all …]
Dtc_restrictions.sh26 simple_if_init $swp1 192.0.2.1/24
33 simple_if_fini $swp1 192.0.2.1/24
43 tc qdisc add dev $swp1 ingress_block 22 clsact
67 tc qdisc del dev $swp1 clsact
69 tc qdisc add dev $swp1 egress_block 22 clsact
79 tc qdisc del dev $swp1 clsact
91 tc qdisc add dev $swp1 ingress_block 22 clsact
117 tc qdisc del dev $swp1 clsact
119 tc qdisc add dev $swp1 egress_block 22 clsact
134 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 …]
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 …]
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 …]
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)
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]}
Dqos_pfc.sh137 devlink_port_pool_th_save $swp1 1
142 devlink_tc_bind_pool_th_save $swp1 1 ingress
165 ip link set dev $swp1 up
166 mtu_set $swp1 10000
167 vlan_create $swp1 111
168 ip link set dev $swp1.111 type vlan ingress-qos-map 0:0 1:1
170 devlink_port_pool_th_set $swp1 1 $_10MB
171 devlink_tc_bind_pool_th_set $swp1 1 ingress 1 $_10MB
175 tc qdisc replace dev $swp1 root handle 1: \
177 dcb buffer set dev $swp1 prio-buffer all:0 1:1
[all …]
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 …]
Dsch_ets.sh30 devlink_port_pool_th_save $swp1 0
31 devlink_port_pool_th_set $swp1 0 12
32 devlink_tc_bind_pool_th_save $swp1 0 ingress
33 devlink_tc_bind_pool_th_set $swp1 0 ingress 0 12
55 devlink_tc_bind_pool_th_restore $swp1 0 ingress
56 devlink_port_pool_th_restore $swp1 0
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 …]
/tools/testing/selftests/net/forwarding/
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
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 …]
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 …]
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
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_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 …]
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_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 …]
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 …]
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 …]
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 …]
Dbridge_sticky_fdb.sh13 ip link set dev $swp1 master br0
18 ip link set dev $swp1 up
27 ip link set dev $swp1 down
36 swp1=${NETIFS[p2]}
51 bridge fdb add $TEST_MAC dev $swp1 master static sticky
53 bridge fdb del $TEST_MAC dev $swp1 vlan 1 master static sticky
55 bridge -j fdb show br br0 brport $swp1\
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 …]

123