Home
last modified time | relevance | path

Searched refs:ingress (Results 1 – 25 of 174) sorted by relevance

1234567

/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
A Dingress_lgcy.c11 if (vport->ingress.legacy.drop_rule) { in esw_acl_ingress_lgcy_rules_destroy()
13 vport->ingress.legacy.drop_rule = NULL; in esw_acl_ingress_lgcy_rules_destroy()
95 vport->ingress.legacy.drop_grp = g; in esw_acl_ingress_lgcy_groups_create()
133 if (vport->ingress.legacy.drop_grp) { in esw_acl_ingress_lgcy_groups_destroy()
181 if (!vport->ingress.acl) { in esw_acl_ingress_lgcy_setup()
185 if (IS_ERR(vport->ingress.acl)) { in esw_acl_ingress_lgcy_setup()
186 err = PTR_ERR(vport->ingress.acl); in esw_acl_ingress_lgcy_setup()
187 vport->ingress.acl = NULL; in esw_acl_ingress_lgcy_setup()
224 vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec, in esw_acl_ingress_lgcy_setup()
231 vport->ingress.allow_rule = NULL; in esw_acl_ingress_lgcy_setup()
[all …]
A Dingress_ofld.c43 if (vport->ingress.offloads.modify_metadata_rule) { in esw_acl_ingress_prio_tag_create()
48 vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec, in esw_acl_ingress_prio_tag_create()
50 if (IS_ERR(vport->ingress.allow_rule)) { in esw_acl_ingress_prio_tag_create()
51 err = PTR_ERR(vport->ingress.allow_rule); in esw_acl_ingress_prio_tag_create()
55 vport->ingress.allow_rule = NULL; in esw_acl_ingress_prio_tag_create()
82 vport->ingress.offloads.modify_metadata = in esw_acl_ingress_mod_metadata_create()
95 vport->ingress.offloads.modify_metadata_rule = in esw_acl_ingress_mod_metadata_create()
96 mlx5_add_flow_rules(vport->ingress.acl, in esw_acl_ingress_mod_metadata_create()
261 if (IS_ERR(vport->ingress.acl)) { in esw_acl_ingress_ofld_setup()
262 err = PTR_ERR(vport->ingress.acl); in esw_acl_ingress_ofld_setup()
[all …]
/linux/tools/testing/selftests/net/forwarding/
A Dtc_flower.sh44 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
46 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
58 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
59 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
70 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
72 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
85 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
110 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
118 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
[all …]
A Dmirror_gre_changes.sh86 tc filter del dev $h3 ingress pref 77
87 mirror_uninstall $swp1 ingress
101 fail_test_span_gre_dir $tundev ingress
106 mirror_uninstall $swp1 ingress
121 fail_test_span_gre_dir $tundev ingress
130 mirror_uninstall $swp1 ingress
151 mirror_uninstall $swp1 ingress
177 mirror_uninstall $swp1 ingress
180 mirror_uninstall $swp1 ingress
203 mirror_uninstall $swp1 ingress
[all …]
A Dmirror_gre_vlan_bridge_1q.sh157 quick_test_span_gre_dir $tundev ingress
162 fail_test_span_gre_dir $tundev ingress
166 quick_test_span_gre_dir $tundev ingress
168 mirror_uninstall $swp1 ingress
191 quick_test_span_gre_dir $tundev ingress
195 fail_test_span_gre_dir $tundev ingress
203 mirror_uninstall $swp1 ingress
247 mirror_uninstall $swp1 ingress
297 mirror_uninstall $swp1 ingress
324 slow_path_trap_install $swp1 ingress
[all …]
A Dtc_chains.sh88 tc chain add dev $h2 ingress
97 tc chain add dev $h2 ingress chain 1
115 tc chain del dev $h2 ingress
118 tc chain del dev $h2 ingress chain 1
128 tc chain add dev $h2 ingress protocol ip \
130 tc chain add dev $h2 ingress chain 1 protocol ip \
133 tc filter add dev $h2 ingress protocol ip pref 1 handle 1101 \
137 tc filter add dev $h2 ingress protocol ip pref 1 handle 1102 \
154 tc filter del dev $h2 ingress protocol ip pref 1 handle 1102 \
159 tc chain del dev $h2 ingress chain 1
[all …]
A Dmirror_gre.sh92 mirror_install $swp1 ingress gt4 "matchall $tcflags"
94 quick_test_span_gre_dir gt4 ingress
97 mirror_uninstall $swp1 ingress
98 fail_test_span_gre_dir gt4 ingress
101 mirror_install $swp1 ingress gt4 "matchall $tcflags"
103 quick_test_span_gre_dir gt4 ingress
106 mirror_uninstall $swp1 ingress
124 test_span_gre_mac gt4 ingress "mirror to gretap"
130 test_span_gre_mac gt6 ingress "mirror to ip6gretap"
136 slow_path_trap_install $swp1 ingress
[all …]
A Drouter_multicast.sh50 tc qdisc add dev $h1 ingress
55 tc qdisc del dev $h1 ingress
76 tc qdisc add dev $h2 ingress
81 tc qdisc del dev $h2 ingress
102 tc qdisc add dev $h3 ingress
107 tc qdisc del dev $h3 ingress
132 tc qdisc add dev $rp3 ingress
137 tc qdisc del dev $rp3 ingress
357 tc filter del dev $h3 ingress protocol ip pref 1 handle 1 flower
358 tc filter del dev $h2 ingress protocol ip pref 1 handle 1 flower
[all …]
A Dtc_police.sh137 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes)
139 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes)
187 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes)
189 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes)
257 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes)
259 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes)
267 local t0=$(tc_rule_stats_get $h3 1 ingress .bytes)
269 local t1=$(tc_rule_stats_get $h3 1 ingress .bytes)
287 police_mirror_common_test $rp1 ingress "police rx and mirror"
309 local t0=$(tc_rule_stats_get $h2 1 ingress .packets)
[all …]
A Dtc_actions.sh62 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
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 \
83 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
92 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \
113 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
114 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
151 tc filter del dev $swp1 ingress protocol ip pref 3 handle 103 flower
152 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
153 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
[all …]
A Dtc_mpls_l2vpn.sh81 tc qdisc add dev $edge1 ingress
82 tc filter add dev $edge1 ingress \
89 tc qdisc add dev $mpls1 ingress
90 tc filter add dev $mpls1 ingress \
102 tc qdisc del dev $mpls1 ingress
105 tc qdisc del dev $edge1 ingress
110 tc qdisc add dev $edge2 ingress
118 tc qdisc add dev $mpls2 ingress
119 tc filter add dev $mpls2 ingress \
131 tc qdisc del dev $mpls2 ingress
[all …]
A Dmirror_gre_nh.sh78 mirror_install $swp1 ingress gt4 "matchall $tcflags"
84 fail_test_span_gre_dir gt4 ingress
87 quick_test_span_gre_dir gt4 ingress
90 mirror_uninstall $swp1 ingress
98 mirror_install $swp1 ingress gt6 "matchall $tcflags"
99 quick_test_span_gre_dir gt6 ingress
100 mirror_uninstall $swp1 ingress
107 slow_path_trap_install $swp1 ingress
113 slow_path_trap_uninstall $swp1 ingress
A Dmirror_gre_lib.sh64 tc filter add dev $h3 ingress pref 77 prot 802.1q \
68 tc filter del dev $h3 ingress pref 77
111 mirror_install $swp1 ingress $tundev "matchall $tcflags"
112 quick_test_span_gre_dir_ips $tundev ingress $ip1 $ip2
116 fail_test_span_gre_dir_ips $tundev ingress $ip1 $ip2
120 quick_test_span_gre_dir_ips $tundev ingress $ip1 $ip2
122 mirror_uninstall $swp1 ingress
A Dgre_multipath_nh.sh243 local t0_111=$(tc_rule_stats_get $ul2 111 ingress)
244 local t0_222=$(tc_rule_stats_get $ul2 222 ingress)
250 local t1_111=$(tc_rule_stats_get $ul2 111 ingress)
251 local t1_222=$(tc_rule_stats_get $ul2 222 ingress)
270 local t0_111=$(tc_rule_stats_get $ul2 111 ingress)
271 local t0_222=$(tc_rule_stats_get $ul2 222 ingress)
278 local t1_111=$(tc_rule_stats_get $ul2 111 ingress)
279 local t1_222=$(tc_rule_stats_get $ul2 222 ingress)
298 local t0_111=$(tc_rule_stats_get $ul2 111 ingress)
299 local t0_222=$(tc_rule_stats_get $ul2 222 ingress)
[all …]
A Dgre_multipath_nh_res.sh246 local t0_111=$(tc_rule_stats_get $ul2 111 ingress)
247 local t0_222=$(tc_rule_stats_get $ul2 222 ingress)
253 local t1_111=$(tc_rule_stats_get $ul2 111 ingress)
254 local t1_222=$(tc_rule_stats_get $ul2 222 ingress)
274 local t0_111=$(tc_rule_stats_get $ul2 111 ingress)
275 local t0_222=$(tc_rule_stats_get $ul2 222 ingress)
282 local t1_111=$(tc_rule_stats_get $ul2 111 ingress)
283 local t1_222=$(tc_rule_stats_get $ul2 222 ingress)
303 local t0_111=$(tc_rule_stats_get $ul2 111 ingress)
304 local t0_222=$(tc_rule_stats_get $ul2 222 ingress)
[all …]
A Dmirror_gre_bridge_1q_lag.sh195 trap_install $h3 ingress
196 trap_install $h4 ingress
203 trap_uninstall $h4 ingress
204 trap_uninstall $h3 ingress
227 tc filter add dev $swp1 ingress pref 999 \
230 mirror_install $swp1 ingress gt4 \
250 mirror_uninstall $swp1 ingress
251 tc filter del dev $swp1 ingress pref 999
268 slow_path_trap_install $swp1 ingress
274 slow_path_trap_uninstall $swp1 ingress
A Dmirror_gre_neigh.sh69 fail_test_span_gre_dir $tundev ingress
71 quick_test_span_gre_dir $tundev ingress
79 test_span_gre_neigh 192.0.2.130 gt4 ingress "mirror to gretap"
85 test_span_gre_neigh 2001:db8:2::2 gt6 ingress "mirror to ip6gretap"
91 slow_path_trap_install $swp1 ingress
97 slow_path_trap_uninstall $swp1 ingress
/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
A Dtc_flower.sh285 tc filter del dev $h2 ingress protocol ip pref $index \
894 tc chain add dev $h2 ingress chain 4
900 tc filter add dev $h2 ingress chain $i protocol ip \
907 tc filter add dev $h2 ingress protocol ip \
910 tc filter add dev $h2 ingress chain 1 protocol ip \
913 tc filter add dev $h2 ingress chain 2 protocol ip \
916 tc filter add dev $h2 ingress chain 3 protocol ip \
919 tc filter add dev $h2 ingress chain 4 protocol ip \
936 tc filter del dev $h2 ingress chain $i \
939 tc filter del dev $h2 ingress chain $i \
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_flow.c41 binding->ingress == ingress) in mlxsw_sp_flow_block_lookup()
55 bool ingress, in mlxsw_sp_flow_block_bind() argument
84 binding->ingress = ingress; in mlxsw_sp_flow_block_bind()
92 if (ingress) in mlxsw_sp_flow_block_bind()
110 bool ingress) in mlxsw_sp_flow_block_unbind() argument
120 if (ingress) in mlxsw_sp_flow_block_unbind()
203 bool ingress) in mlxsw_sp_setup_tc_block_bind() argument
234 if (ingress) in mlxsw_sp_setup_tc_block_bind()
254 bool ingress) in mlxsw_sp_setup_tc_block_unbind() argument
266 if (ingress) in mlxsw_sp_setup_tc_block_unbind()
[all …]
A Dspectrum_matchall.c50 mall_entry->ingress); in mlxsw_sp_mall_port_mirror_add()
56 trigger = mall_entry->ingress ? MLXSW_SP_SPAN_TRIGGER_INGRESS : in mlxsw_sp_mall_port_mirror_add()
84 trigger = mall_entry->ingress ? MLXSW_SP_SPAN_TRIGGER_INGRESS : in mlxsw_sp_mall_port_mirror_del()
111 if (mall_entry->ingress) in mlxsw_sp_mall_port_sample_add()
140 if (mall_entry->ingress) in mlxsw_sp_mall_port_sample_del()
253 if (flower_prio_valid && mall_entry->ingress && in mlxsw_sp_mall_replace()
259 if (flower_prio_valid && !mall_entry->ingress && in mlxsw_sp_mall_replace()
293 if (mall_entry->ingress) in mlxsw_sp_mall_replace()
323 if (mall_entry->ingress) in mlxsw_sp_mall_destroy()
386 if (!mall_entry->ingress) { in mlxsw_sp1_mall_sample_add()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_tc_matchall.c240 tc_port_matchall->ingress.viid_mirror = 0; in cxgb4_matchall_mirror_free()
357 tc_port_matchall->ingress.packets = 0; in cxgb4_matchall_free_filter()
358 tc_port_matchall->ingress.bytes = 0; in cxgb4_matchall_free_filter()
359 tc_port_matchall->ingress.last_used = 0; in cxgb4_matchall_free_filter()
366 bool ingress) in cxgb4_tc_matchall_replace() argument
375 if (ingress) { in cxgb4_tc_matchall_replace()
376 if (tc_port_matchall->ingress.state == in cxgb4_tc_matchall_replace()
407 bool ingress) in cxgb4_tc_matchall_destroy() argument
414 if (ingress) { in cxgb4_tc_matchall_destroy()
448 ingress = &tc_port_matchall->ingress; in cxgb4_tc_matchall_stats()
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/
A Dmirror_gre.sh122 fail_test_span_gre_dir $tundev ingress
126 quick_test_span_gre_dir $tundev ingress
127 mirror_uninstall $swp1 ingress
142 fail_test_span_gre_dir $tundev ingress
145 quick_test_span_gre_dir $tundev ingress
146 mirror_uninstall $swp1 ingress
161 fail_test_span_gre_dir $tundev ingress
163 quick_test_span_gre_dir $tundev ingress
165 mirror_uninstall $swp1 ingress
180 slow_path_trap_install $swp1 ingress
[all …]
A Dtc_sample.sh250 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
267 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
295 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
303 tc filter del dev $rp1 ingress protocol all pref 2 handle 102 matchall
323 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
556 tc filter add dev $rp1 ingress protocol ip pref 1 handle 101 flower \
560 tc filter add dev $rp1 ingress protocol ip pref 2 handle 102 flower \
570 tc filter del dev $rp1 ingress protocol ip pref 2 handle 102 flower
571 tc filter del dev $rp1 ingress protocol ip pref 1 handle 101 flower
626 __tc_sample_acl_rate_test ingress $rp1
[all …]
A Dtc_restrictions.sh177 tc filter add dev $swp1 ingress protocol all pref 1 handle 101 \
207 tc filter add dev $swp1 ingress protocol all pref 9 handle 102 \
219 tc filter add dev $swp1 ingress protocol all pref 9 handle 102 \
302 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \
318 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \
323 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \
328 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \
335 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \
342 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \
347 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \
[all …]
/linux/tools/testing/selftests/net/
A Dbareudp.sh205 tc -netns "${NS1}" qdisc add dev veth10 ingress
206 tc -netns "${NS2}" qdisc add dev veth23 ingress
401 tc -netns "${NS1}" filter add dev veth10 ingress protocol ipv4 \
405 tc -netns "${NS2}" filter add dev veth23 ingress protocol ipv4 \
414 tc -netns "${NS1}" filter add dev veth10 ingress protocol ipv6 \
418 tc -netns "${NS2}" filter add dev veth23 ingress protocol ipv6 \
430 tc -netns "${NS1}" filter add dev veth10 ingress protocol mpls_uc \
445 tc -netns "${NS1}" filter delete dev veth10 ingress
446 tc -netns "${NS2}" filter delete dev veth23 ingress
490 tc -netns "${NS1}" filter delete dev veth10 ingress
[all …]

Completed in 44 milliseconds

1234567