Home
last modified time | relevance | path

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

1234567

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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.sh41 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
43 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
55 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
56 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
67 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
69 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
81 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
82 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
91 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
93 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.sh130 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
137 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes)
139 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes)
150 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
156 tc filter add dev $rp1 ingress protocol ip pref 1 handle 101 flower \
162 tc filter del dev $rp1 ingress protocol ip pref 1 handle 101 flower
187 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes)
189 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes)
205 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
210 tc filter add dev $rp1 ingress protocol ip pref 1 handle 101 flower \
[all …]
Dtc_actions.sh60 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
69 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
79 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
81 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
90 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \
99 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
111 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
112 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
125 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
127 tc filter add dev $swp1 ingress protocol ip pref 3 handle 103 flower \
[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
Dmirror_vlan.sh75 test_vlan_dir ingress 8 0
99 test_tagged_vlan_dir ingress 8 0
105 slow_path_trap_install $swp1 ingress
107 trap_install $h3 ingress
111 trap_uninstall $h3 ingress
113 slow_path_trap_uninstall $swp1 ingress
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
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
Dmirror_gre_lag_lacp.sh192 trap_install $h3 ingress
193 trap_install $h4 ingress
200 trap_uninstall $h4 ingress
201 trap_uninstall $h3 ingress
220 mirror_install $swp1 ingress gt4 \
236 mirror_uninstall $swp1 ingress
261 slow_path_trap_install $swp1 ingress
267 slow_path_trap_uninstall $swp1 ingress
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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.c47 mall_entry->ingress); in mlxsw_sp_mall_port_mirror_add()
51 trigger = mall_entry->ingress ? MLXSW_SP_SPAN_TRIGGER_INGRESS : in mlxsw_sp_mall_port_mirror_add()
62 mlxsw_sp_span_analyzed_port_put(mlxsw_sp_port, mall_entry->ingress); in mlxsw_sp_mall_port_mirror_add()
76 trigger = mall_entry->ingress ? MLXSW_SP_SPAN_TRIGGER_INGRESS : in mlxsw_sp_mall_port_mirror_del()
80 mlxsw_sp_span_analyzed_port_put(mlxsw_sp_port, mall_entry->ingress); in mlxsw_sp_mall_port_mirror_del()
220 mall_entry->ingress = mlxsw_sp_flow_block_is_ingress_bound(block); in mlxsw_sp_mall_replace()
225 if (flower_prio_valid && mall_entry->ingress && in mlxsw_sp_mall_replace()
231 if (flower_prio_valid && !mall_entry->ingress && in mlxsw_sp_mall_replace()
241 if (!mall_entry->ingress) { in mlxsw_sp_mall_replace()
275 if (mall_entry->ingress) in mlxsw_sp_mall_replace()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_matchall.c212 tc_port_matchall->ingress.viid_mirror = pi->viid_mirror; in cxgb4_matchall_mirror_alloc()
227 if (!tc_port_matchall->ingress.viid_mirror) in cxgb4_matchall_mirror_free()
231 tc_port_matchall->ingress.viid_mirror = 0; in cxgb4_matchall_mirror_free()
242 ret = cxgb4_del_filter(dev, tc_port_matchall->ingress.tid[filter_type], in cxgb4_matchall_del_filter()
243 &tc_port_matchall->ingress.fs[filter_type]); in cxgb4_matchall_del_filter()
247 tc_port_matchall->ingress.tid[filter_type] = 0; in cxgb4_matchall_del_filter()
275 fs = &tc_port_matchall->ingress.fs[filter_type]; in cxgb4_matchall_add_filter()
295 tc_port_matchall->ingress.tid[filter_type] = fidx; in cxgb4_matchall_add_filter()
319 tc_port_matchall->ingress.state = CXGB4_MATCHALL_STATE_ENABLED; in cxgb4_matchall_alloc_filter()
348 tc_port_matchall->ingress.packets = 0; in cxgb4_matchall_free_filter()
[all …]
/kernel/linux/linux-5.10/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.sh146 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
151 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
153 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
173 tc filter add dev $swp1 ingress protocol all pref 1 handle 101 \
177 tc filter del dev $swp1 ingress protocol all pref 1 handle 101 matchall
200 tc filter add dev $swp1 ingress protocol ip pref 10 handle 101 flower \
203 tc filter add dev $swp1 ingress protocol all pref 9 handle 102 \
207 tc filter del dev $swp1 ingress protocol all pref 9 handle 102 matchall
209 tc filter add dev $swp1 ingress protocol all pref 11 handle 102 \
213 tc filter del dev $swp1 ingress protocol ip pref 10 handle 101 flower
[all …]
Dtc_police_occ.sh70 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
94 tc filter del dev $swp1 ingress pref 1 handle 101 flower
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/ocelot/
Dtc_flower_chains.sh135 tc filter add dev $eth ingress chain 0 pref 49152 flower \
137 tc filter add dev $eth ingress chain $(IS1 0) pref 49152 \
139 tc filter add dev $eth ingress chain $(IS1 1) pref 49152 \
141 tc filter add dev $eth ingress chain $(IS1 2) pref 49152 \
153 tc filter add dev $eth ingress chain $(IS2 0 0) pref 49152 \
172 tc filter add dev $eth0 ingress chain $(IS1 1) pref 1 \
181 tc filter add dev $eth0 ingress chain $(IS1 0) pref 2 \
186 tc filter add dev $eth0 ingress chain $(IS2 0 0) pref 1 \
254 tc filter add dev $eth0 ingress chain $(IS1 2) pref 3 \
275 tc filter del dev $eth0 ingress chain $(IS1 2) pref 3
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/
Docelot_flower.c24 static int ocelot_chain_to_block(int chain, bool ingress) in ocelot_chain_to_block() argument
28 if (!ingress) { in ocelot_chain_to_block()
86 bool ingress) in ocelot_is_goto_target_valid() argument
91 if (!ingress) in ocelot_is_goto_target_valid()
160 bool ingress, struct flow_cls_offload *f, in ocelot_flower_parse_action() argument
176 filter->block_id = ocelot_chain_to_block(chain, ingress); in ocelot_flower_parse_action()
374 if (!ocelot_is_goto_target_valid(filter->goto_target, chain, ingress) && in ocelot_flower_parse_action()
435 ocelot_flower_parse_key(struct ocelot *ocelot, int port, bool ingress, in ocelot_flower_parse_key() argument
459 if (!ingress) { in ocelot_flower_parse_key()
635 static int ocelot_flower_parse(struct ocelot *ocelot, int port, bool ingress, in ocelot_flower_parse() argument
[all …]

1234567