Home
last modified time | relevance | path

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

12345678910

/linux-6.3-rc2/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()
184 if (!vport->ingress.acl) { in esw_acl_ingress_lgcy_setup()
188 if (IS_ERR(vport->ingress.acl)) { in esw_acl_ingress_lgcy_setup()
189 err = PTR_ERR(vport->ingress.acl); in esw_acl_ingress_lgcy_setup()
190 vport->ingress.acl = NULL; in esw_acl_ingress_lgcy_setup()
243 vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec, in esw_acl_ingress_lgcy_setup()
250 vport->ingress.allow_rule = NULL; in esw_acl_ingress_lgcy_setup()
[all …]
A Dingress_ofld.c48 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()
144 if (!vport->ingress.offloads.drop_rule) in esw_acl_ingress_src_port_drop_destroy()
219 vport->ingress.offloads.drop_grp = g; in esw_acl_ingress_ofld_groups_create()
296 if (vport->ingress.offloads.drop_grp) { in esw_acl_ingress_ofld_groups_destroy()
324 if (IS_ERR(vport->ingress.acl)) { in esw_acl_ingress_ofld_setup()
325 err = PTR_ERR(vport->ingress.acl); in esw_acl_ingress_ofld_setup()
[all …]
/linux-6.3-rc2/tools/testing/selftests/net/forwarding/
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 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_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.sh139 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes)
141 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes)
189 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes)
191 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes)
259 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes)
261 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes)
269 local t0=$(tc_rule_stats_get $h3 1 ingress .bytes)
271 local t1=$(tc_rule_stats_get $h3 1 ingress .bytes)
311 local t0=$(tc_rule_stats_get $h2 1 ingress .packets)
313 local t1=$(tc_rule_stats_get $h2 1 ingress .packets)
[all …]
A Dtc_actions.sh63 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
72 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
82 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
114 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
115 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
152 tc filter del dev $swp1 ingress protocol ip pref 3 handle 103 flower
153 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
168 mirred ingress redirect dev $h1
215 action mirred ingress redirect dev $h1
[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
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/net/ethernet/microchip/lan966x/
A Dlan966x_tc_matchall.c7 bool ingress) in lan966x_tc_matchall_add() argument
21 f->cookie, ingress, in lan966x_tc_matchall_add()
25 ingress, f->common.extack); in lan966x_tc_matchall_add()
41 bool ingress) in lan966x_tc_matchall_del() argument
48 return lan966x_mirror_port_del(port, ingress, in lan966x_tc_matchall_del()
59 bool ingress) in lan966x_tc_matchall_stats() argument
65 lan966x_mirror_port_stats(port, &f->stats, ingress); in lan966x_tc_matchall_stats()
77 bool ingress) in lan966x_tc_matchall() argument
81 return lan966x_tc_matchall_add(port, f, ingress); in lan966x_tc_matchall()
83 return lan966x_tc_matchall_del(port, f, ingress); in lan966x_tc_matchall()
[all …]
A Dlan966x_mirror.c8 bool ingress, in lan966x_mirror_port_add() argument
22 if (lan966x->mirror_mask[ingress] & BIT(port->chip_port)) { in lan966x_mirror_port_add()
41 lan966x->mirror_mask[ingress] |= BIT(port->chip_port); in lan966x_mirror_port_add()
46 if (ingress) { in lan966x_mirror_port_add()
57 if (ingress) in lan966x_mirror_port_add()
66 bool ingress, in lan966x_mirror_port_del() argument
77 lan966x->mirror_mask[ingress] &= ~BIT(port->chip_port); in lan966x_mirror_port_del()
79 if (ingress) { in lan966x_mirror_port_del()
95 if (ingress) in lan966x_mirror_port_del()
105 bool ingress) in lan966x_mirror_port_stats() argument
[all …]
A Dlan966x_tc.c66 void *cb_priv, bool ingress) in lan966x_tc_block_cb() argument
72 return lan966x_tc_matchall(port, type_data, ingress); in lan966x_tc_block_cb()
74 return lan966x_tc_flower(port, type_data, ingress); in lan966x_tc_block_cb()
96 bool ingress; in lan966x_tc_setup_block() local
101 ingress = true; in lan966x_tc_setup_block()
104 ingress = false; in lan966x_tc_setup_block()
110 cb, port, port, ingress); in lan966x_tc_setup_block()
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_tc_matchall.c279 tc_port_matchall->ingress.viid_mirror = 0; in cxgb4_matchall_mirror_free()
396 tc_port_matchall->ingress.packets = 0; in cxgb4_matchall_free_filter()
397 tc_port_matchall->ingress.bytes = 0; in cxgb4_matchall_free_filter()
398 tc_port_matchall->ingress.last_used = 0; in cxgb4_matchall_free_filter()
405 bool ingress) in cxgb4_tc_matchall_replace() argument
414 if (ingress) { in cxgb4_tc_matchall_replace()
415 if (tc_port_matchall->ingress.state == in cxgb4_tc_matchall_replace()
446 bool ingress) in cxgb4_tc_matchall_destroy() argument
453 if (ingress) { in cxgb4_tc_matchall_destroy()
487 ingress = &tc_port_matchall->ingress; in cxgb4_tc_matchall_stats()
[all …]
/linux-6.3-rc2/tools/testing/selftests/drivers/net/dsa/
A Dtc_actions.sh63 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
72 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
82 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
114 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
115 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
152 tc filter del dev $swp1 ingress protocol ip pref 3 handle 103 flower
153 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
168 mirred ingress redirect dev $h1
215 action mirred ingress redirect dev $h1
[all …]
/linux-6.3-rc2/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_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 …]
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 …]
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/
A Dprestera_flow.c81 bool ingress) in prestera_flow_block_create() argument
96 block->ingress = ingress; in prestera_flow_block_create()
176 bool ingress) in prestera_flow_block_get() argument
184 block = prestera_flow_block_create(sw, f->net, ingress); in prestera_flow_block_get()
220 struct flow_block_offload *f, bool ingress) in prestera_setup_flow_block_bind() argument
243 if (ingress) in prestera_setup_flow_block_bind()
257 struct flow_block_offload *f, bool ingress) in prestera_setup_flow_block_unbind() argument
281 if (ingress) in prestera_setup_flow_block_unbind()
289 bool ingress) in prestera_setup_flow_block_clsact() argument
295 return prestera_setup_flow_block_bind(port, f, ingress); in prestera_setup_flow_block_clsact()
[all …]

Completed in 30 milliseconds

12345678910