Home
last modified time | relevance | path

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

12345678910

/linux-6.6.21/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-6.6.21/tools/testing/selftests/net/forwarding/
Dmirror_gre_changes.sh75 mirror_install $swp1 ingress $tundev \
77 tc filter add dev $h3 ingress pref 77 prot $prot \
87 tc filter del dev $h3 ingress pref 77
88 mirror_uninstall $swp1 ingress
101 mirror_install $swp1 ingress $tundev "matchall $tcflags"
102 fail_test_span_gre_dir $tundev ingress
106 quick_test_span_gre_dir $tundev ingress
107 mirror_uninstall $swp1 ingress
121 mirror_install $swp1 ingress $tundev "matchall $tcflags"
122 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.sh65 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
74 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
84 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
86 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
95 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \
104 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
116 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
117 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
130 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
132 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 …]
Dtc_flower_cfm.sh60 tc filter add dev $h2 ingress protocol cfm pref 1 handle 101 \
62 tc filter add dev $h2 ingress protocol cfm pref 1 handle 102 \
85 tc filter del dev $h2 ingress protocol cfm pref 1 handle 101 flower
86 tc filter del dev $h2 ingress protocol cfm pref 1 handle 102 flower
96 tc filter add dev $h2 ingress protocol cfm pref 1 handle 101 \
98 tc filter add dev $h2 ingress protocol cfm pref 1 handle 102 \
100 tc filter add dev $h2 ingress protocol cfm pref 1 handle 103 \
131 tc filter del dev $h2 ingress protocol cfm pref 1 handle 101 flower
132 tc filter del dev $h2 ingress protocol cfm pref 1 handle 102 flower
133 tc filter del dev $h2 ingress protocol cfm pref 1 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
/linux-6.6.21/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dtc_flower.sh101 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
110 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
125 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
133 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
147 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
149 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
158 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
166 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \
175 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
183 tc filter del dev $h2 ingress protocol ip pref 3 handle 103 flower
[all …]
/linux-6.6.21/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 …]
/linux-6.6.21/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()
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 …]
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-6.6.21/kernel/bpf/
Dtcx.c12 bool created, ingress = attr->attach_type == BPF_TCX_INGRESS; in tcx_prog_attach() local
34 entry = tcx_entry_fetch_or_create(dev, ingress, &created); in tcx_prog_attach()
44 tcx_entry_update(dev, entry_new, ingress); in tcx_prog_attach()
46 tcx_skeys_inc(ingress); in tcx_prog_attach()
61 bool ingress = attr->attach_type == BPF_TCX_INGRESS; in tcx_prog_detach() local
73 entry = tcx_entry_fetch(dev, ingress); in tcx_prog_detach()
83 tcx_entry_update(dev, entry_new, ingress); in tcx_prog_detach()
85 tcx_skeys_dec(ingress); in tcx_prog_detach()
95 void tcx_uninstall(struct net_device *dev, bool ingress) in tcx_uninstall() argument
103 entry = tcx_entry_fetch(dev, ingress); in tcx_uninstall()
[all …]
/linux-6.6.21/include/net/
Dtcx.h26 static inline void tcx_set_ingress(struct sk_buff *skb, bool ingress) in tcx_set_ingress() argument
29 skb->tc_at_ingress = ingress; in tcx_set_ingress()
64 bool ingress) in tcx_entry_update() argument
67 if (ingress) in tcx_entry_update()
74 tcx_entry_fetch(struct net_device *dev, bool ingress) in tcx_entry_fetch() argument
77 if (ingress) in tcx_entry_fetch()
100 tcx_entry_fetch_or_create(struct net_device *dev, bool ingress, bool *created) in tcx_entry_fetch_or_create() argument
102 struct bpf_mprog_entry *entry = tcx_entry_fetch(dev, ingress); in tcx_entry_fetch_or_create()
114 static inline void tcx_skeys_inc(bool ingress) in tcx_skeys_inc() argument
117 if (ingress) in tcx_skeys_inc()
[all …]
/linux-6.6.21/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-6.6.21/tools/testing/selftests/drivers/net/dsa/
Dtc_actions.sh65 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
74 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
84 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
86 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
95 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \
104 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
116 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
117 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
130 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
132 tc filter add dev $swp1 ingress protocol ip pref 3 handle 103 flower \
[all …]
/linux-6.6.21/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-6.6.21/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 …]

12345678910