Home
last modified time | relevance | path

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

123456789

/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
Dingress_lgcy.c11 if (vport->ingress.legacy.drop_rule) { in esw_acl_ingress_lgcy_rules_destroy()
12 mlx5_del_flow_rules(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()
42 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create()
49 vport->ingress.legacy.allow_untagged_spoofchk_grp = g; in esw_acl_ingress_lgcy_groups_create()
58 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create()
65 vport->ingress.legacy.allow_untagged_only_grp = g; in esw_acl_ingress_lgcy_groups_create()
75 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create()
82 vport->ingress.legacy.allow_spoofchk_only_grp = g; in esw_acl_ingress_lgcy_groups_create()
88 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create()
[all …]
Dingress_ofld.c43 if (vport->ingress.offloads.modify_metadata_rule) { in esw_acl_ingress_prio_tag_create()
45 flow_act.modify_hdr = vport->ingress.offloads.modify_metadata; 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()
85 if (IS_ERR(vport->ingress.offloads.modify_metadata)) { in esw_acl_ingress_mod_metadata_create()
86 err = PTR_ERR(vport->ingress.offloads.modify_metadata); in esw_acl_ingress_mod_metadata_create()
94 flow_act.modify_hdr = vport->ingress.offloads.modify_metadata; in esw_acl_ingress_mod_metadata_create()
[all …]
/Linux-v6.1/tools/testing/selftests/net/forwarding/
Dmirror_gre_changes.sh75 mirror_install $swp1 ingress $tundev "matchall $tcflags"
76 tc filter add dev $h3 ingress pref 77 prot $prot \
86 tc filter del dev $h3 ingress pref 77
87 mirror_uninstall $swp1 ingress
100 mirror_install $swp1 ingress $tundev "matchall $tcflags"
101 fail_test_span_gre_dir $tundev ingress
105 quick_test_span_gre_dir $tundev ingress
106 mirror_uninstall $swp1 ingress
120 mirror_install $swp1 ingress $tundev "matchall $tcflags"
121 fail_test_span_gre_dir $tundev ingress
[all …]
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
94 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
96 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
[all …]
Dmirror_gre_vlan_bridge_1q.sh132 full_test_span_gre_dir_vlan $tundev ingress "$vlan_match" 8 0 "$what"
156 mirror_install $swp1 ingress $tundev "matchall $tcflags"
157 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
190 mirror_install $swp1 ingress $tundev "matchall $tcflags"
191 quick_test_span_gre_dir $tundev ingress
195 fail_test_span_gre_dir $tundev ingress
201 quick_test_span_gre_dir $tundev ingress
[all …]
Dtc_chains.sh38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
47 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
57 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
59 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
61 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
77 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
78 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
88 tc chain add dev $h2 ingress
97 tc chain add dev $h2 ingress chain 1
[all …]
Dmirror_gre.sh69 ingress) local src_mac=$(mac_get $h1); local dst_mac=$(mac_get $h2)
92 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
112 full_test_span_gre_dir gt4 ingress 8 0 "mirror to gretap"
118 full_test_span_gre_dir gt6 ingress 8 0 "mirror to ip6gretap"
[all …]
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
240 tc filter add dev $h2 ingress protocol ip pref 1 handle 122 flower \
242 tc filter add dev $h3 ingress protocol ip pref 1 handle 133 flower \
[all …]
Dtc_police.sh132 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
139 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes)
141 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes)
152 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
158 tc filter add dev $rp1 ingress protocol ip pref 1 handle 101 flower \
164 tc filter del dev $rp1 ingress protocol ip pref 1 handle 101 flower
189 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes)
191 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes)
207 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
212 tc filter add dev $rp1 ingress protocol ip pref 1 handle 101 flower \
[all …]
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 \
101 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 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
127 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
129 tc filter add dev $swp1 ingress protocol ip pref 3 handle 103 flower \
[all …]
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
111 tc filter add dev $edge2 ingress \
118 tc qdisc add dev $mpls2 ingress
119 tc filter add dev $mpls2 ingress \
[all …]
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
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
Dgre_multipath_nh.sh156 tc filter add dev $ul2 ingress pref 111 prot 802.1Q \
158 tc filter add dev $ul2 ingress pref 222 prot 802.1Q \
243 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)
[all …]
/Linux-v6.1/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dtc_flower.sh100 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
109 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
124 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
132 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
146 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
148 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
157 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
165 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \
174 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
182 tc filter del dev $h2 ingress protocol ip pref 3 handle 103 flower
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_flow.c35 struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) in mlxsw_sp_flow_block_lookup() argument
41 binding->ingress == ingress) in mlxsw_sp_flow_block_lookup()
55 bool ingress, in mlxsw_sp_flow_block_bind() argument
61 if (WARN_ON(mlxsw_sp_flow_block_lookup(block, mlxsw_sp_port, ingress))) in mlxsw_sp_flow_block_bind()
64 if (ingress && block->ingress_blocker_rule_count) { in mlxsw_sp_flow_block_bind()
69 if (!ingress && block->egress_blocker_rule_count) { in mlxsw_sp_flow_block_bind()
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
114 binding = mlxsw_sp_flow_block_lookup(block, mlxsw_sp_port, ingress); in mlxsw_sp_flow_block_unbind()
[all …]
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()
70 mlxsw_sp_span_analyzed_port_put(mlxsw_sp_port, mall_entry->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()
88 mlxsw_sp_span_analyzed_port_put(mlxsw_sp_port, mall_entry->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()
251 mall_entry->ingress = mlxsw_sp_flow_block_is_ingress_bound(block); in mlxsw_sp_mall_replace()
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()
[all …]
/Linux-v6.1/drivers/net/ethernet/microchip/lan966x/
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()
37 bool ingress) in lan966x_tc_matchall_del() argument
44 return lan966x_mirror_port_del(port, ingress, in lan966x_tc_matchall_del()
57 bool ingress) in lan966x_tc_matchall_stats() argument
63 lan966x_mirror_port_stats(port, &f->stats, ingress); in lan966x_tc_matchall_stats()
75 bool ingress) in lan966x_tc_matchall() argument
85 return lan966x_tc_matchall_add(port, f, ingress); in lan966x_tc_matchall()
87 return lan966x_tc_matchall_del(port, f, ingress); in lan966x_tc_matchall()
[all …]
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
71 if (!(lan966x->mirror_mask[ingress] & BIT(port->chip_port))) { in lan966x_mirror_port_del()
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()
[all …]
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_matchall.c260 tc_port_matchall->ingress.viid_mirror = pi->viid_mirror; in cxgb4_matchall_mirror_alloc()
275 if (!tc_port_matchall->ingress.viid_mirror) in cxgb4_matchall_mirror_free()
279 tc_port_matchall->ingress.viid_mirror = 0; in cxgb4_matchall_mirror_free()
290 ret = cxgb4_del_filter(dev, tc_port_matchall->ingress.tid[filter_type], in cxgb4_matchall_del_filter()
291 &tc_port_matchall->ingress.fs[filter_type]); in cxgb4_matchall_del_filter()
295 tc_port_matchall->ingress.tid[filter_type] = 0; in cxgb4_matchall_del_filter()
323 fs = &tc_port_matchall->ingress.fs[filter_type]; in cxgb4_matchall_add_filter()
343 tc_port_matchall->ingress.tid[filter_type] = fidx; in cxgb4_matchall_add_filter()
367 tc_port_matchall->ingress.state = CXGB4_MATCHALL_STATE_ENABLED; in cxgb4_matchall_alloc_filter()
396 tc_port_matchall->ingress.packets = 0; in cxgb4_matchall_free_filter()
[all …]
/Linux-v6.1/tools/testing/selftests/drivers/net/dsa/
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 \
101 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 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
127 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
129 tc filter add dev $swp1 ingress protocol ip pref 3 handle 103 flower \
[all …]
/Linux-v6.1/tools/testing/selftests/drivers/net/mlxsw/
Dmirror_gre.sh121 mirror_install $swp1 ingress $tundev "matchall $tcflags"
122 fail_test_span_gre_dir $tundev ingress
126 quick_test_span_gre_dir $tundev ingress
127 mirror_uninstall $swp1 ingress
141 mirror_install $swp1 ingress $tundev "matchall $tcflags"
142 fail_test_span_gre_dir $tundev ingress
145 quick_test_span_gre_dir $tundev ingress
146 mirror_uninstall $swp1 ingress
159 mirror_install $swp1 ingress $tundev "matchall $tcflags"
161 fail_test_span_gre_dir $tundev ingress
[all …]
Dtc_restrictions.sh149 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
154 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
156 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
177 tc filter add dev $swp1 ingress protocol all pref 1 handle 101 \
181 tc filter del dev $swp1 ingress protocol all pref 1 handle 101 matchall
204 tc filter add dev $swp1 ingress protocol ip pref 10 handle 101 flower \
207 tc filter add dev $swp1 ingress protocol all pref 9 handle 102 \
211 tc filter del dev $swp1 ingress protocol all pref 9 handle 102 matchall
213 tc filter add dev $swp1 ingress protocol all pref 11 handle 102 \
217 tc filter del dev $swp1 ingress protocol ip pref 10 handle 101 flower
[all …]
Dtc_sample.sh232 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \
250 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
263 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \
267 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
269 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \
284 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \
288 tc filter add dev $rp1 ingress protocol all pref 2 handle 102 matchall \
295 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
297 tc filter add dev $rp1 ingress protocol all pref 2 handle 102 matchall \
303 tc filter del dev $rp1 ingress protocol all pref 2 handle 102 matchall
[all …]
/Linux-v6.1/drivers/net/ethernet/marvell/prestera/
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
228 block = prestera_flow_block_get(sw, f, &register_block, ingress); in prestera_setup_flow_block_bind()
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
[all …]

123456789