Home
last modified time | relevance | path

Searched full:ingress (Results 1 – 25 of 592) sorted by relevance

12345678910>>...24

/linux-6.12.1/tools/testing/selftests/net/forwarding/
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 \
52 tc_check_packets "dev $h2 ingress" 101 1
55 tc_check_packets "dev $h2 ingress" 102 0
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 \
78 tc_check_packets "dev $h2 ingress" 101 1
81 tc_check_packets "dev $h2 ingress" 102 0
[all …]
Dtc_chains.sh38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
44 tc_check_packets "dev $h2 ingress" 1101 1
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 \
67 tc_check_packets "dev $h2 ingress" 102 1
70 tc_check_packets "dev $h2 ingress" 101 1
73 tc_check_packets "dev $h2 ingress" 1101 1
76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
[all …]
Dtc_actions.sh66 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
72 tc_check_packets "dev $h2 ingress" 101 1
75 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
82 tc_check_packets "dev $h2 ingress" 101 1
85 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
87 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
96 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \
102 tc_check_packets "dev $swp1 ingress" 102 1
105 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
111 tc_check_packets "dev $swp1 ingress" 101 1
[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 \
70 tc_check_packets "dev $h2 ingress" 101 1
73 tc_check_packets "dev $h2 ingress" 102 0
79 tc_check_packets "dev $h2 ingress" 101 1
82 tc_check_packets "dev $h2 ingress" 102 1
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 \
[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.sh131 # Rule to measure bandwidth on ingress of $h2
132 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
157 # Rule to police traffic destined to $h2 on ingress of $rp1
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)
[all …]
Dtc_mpls_l2vpn.sh15 # | -ingress: |
21 # | | -ingress: |
31 # | -ingress: |
37 # | | -ingress: |
81 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
[all …]
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"
107 mirror_uninstall $swp1 ingress
121 mirror_install $swp1 ingress $tundev "matchall"
131 mirror_uninstall $swp1 ingress
147 mirror_install $swp1 ingress $tundev "matchall"
152 mirror_uninstall $swp1 ingress
[all …]
/linux-6.12.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()
45 esw_warn(dev, "vport[%d] ingress create untagged spoofchk flow group, err(%d)\n", 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()
61 esw_warn(dev, "vport[%d] ingress create untagged flow group, err(%d)\n", 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()
[all …]
Dingress_ofld.c46 if (vport->ingress.offloads.modify_metadata_rule) { in esw_acl_ingress_prio_tag_create()
48 flow_act.modify_hdr = vport->ingress.offloads.modify_metadata; in esw_acl_ingress_prio_tag_create()
51 vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec, in esw_acl_ingress_prio_tag_create()
53 if (IS_ERR(vport->ingress.allow_rule)) { in esw_acl_ingress_prio_tag_create()
54 err = PTR_ERR(vport->ingress.allow_rule); in esw_acl_ingress_prio_tag_create()
56 "vport[%d] configure ingress untagged allow rule, err(%d)\n", in esw_acl_ingress_prio_tag_create()
58 vport->ingress.allow_rule = NULL; in esw_acl_ingress_prio_tag_create()
85 vport->ingress.offloads.modify_metadata = in esw_acl_ingress_mod_metadata_create()
88 if (IS_ERR(vport->ingress.offloads.modify_metadata)) { in esw_acl_ingress_mod_metadata_create()
89 err = PTR_ERR(vport->ingress.offloads.modify_metadata); in esw_acl_ingress_mod_metadata_create()
[all …]
/linux-6.12.1/tools/testing/selftests/tc-testing/tc-tests/qdiscs/
Dingress.json4 "name": "Add ingress qdisc",
7 "ingress"
14 "cmdUnderTest": "$TC qdisc add dev $DUMMY ingress",
17 "matchPattern": "qdisc ingress ffff:",
20 "$TC qdisc del dev $DUMMY ingress"
25 "name": "Add ingress qdisc with unsupported argument",
28 "ingress"
35 "cmdUnderTest": "$TC qdisc add dev $DUMMY ingress foorbar",
38 "matchPattern": "qdisc ingress ffff:",
45 "name": "Add duplicate ingress qdisc",
[all …]
/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dtc_flower.sh101 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
107 tc_check_packets "dev $h2 ingress" 101 1
110 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
116 tc_check_packets "dev $h2 ingress" 101 2
122 tc_check_packets "dev $h2 ingress" 102 1
125 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
130 tc_check_packets "dev $h2 ingress" 102 2
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 \
[all …]
/linux-6.12.1/tools/testing/selftests/tc-testing/tc-tests/filters/
Dflower.json12 "$TC qdisc add dev $DEV2 ingress",
17 "verifyCmd": "$TC -s filter show dev $DEV2 ingress",
21 "$TC qdisc del dev $DEV2 ingress",
35 "$TC qdisc add dev $DEV2 ingress",
42 "verifyCmd": "$TC -s filter show dev $DEV2 ingress",
46 "$TC qdisc del dev $DEV2 ingress",
60 "$TC qdisc add dev $DEV2 ingress",
67 "verifyCmd": "$TC -s filter show dev $DEV2 ingress",
71 "$TC qdisc del dev $DEV2 ingress",
85 "$TC qdisc add dev $DEV2 ingress",
[all …]
Du32.json13 "$TC qdisc add dev $DEV1 ingress"
15 …"cmdUnderTest": "$TC filter add dev $DEV1 ingress protocol ip prio 1 u32 match ip src 127.0.0.1/32…
17 "verifyCmd": "$TC filter show dev $DEV1 ingress",
21 "$TC qdisc del dev $DEV1 ingress"
35 "$TC qdisc add dev $DEV1 ingress"
37 …"cmdUnderTest": "$TC filter replace dev $DEV1 ingress protocol ip prio 1 u32 match ip src 127.0.0.…
39 "verifyCmd": "$TC filter show dev $DEV1 ingress",
43 "$TC qdisc del dev $DEV1 ingress"
57 "$TC qdisc add dev $DEV1 ingress",
58 …"$TC filter add dev $DEV1 ingress protocol ip prio 1 u32 match ip src 127.0.0.3/32 flowid 1:3 acti…
[all …]
Dfw.json13 "$TC qdisc add dev $DEV1 ingress"
21 "$TC qdisc del dev $DEV1 ingress"
35 "$TC qdisc add dev $DEV1 ingress"
43 "$TC qdisc del dev $DEV1 ingress"
57 "$TC qdisc add dev $DEV1 ingress"
65 "$TC qdisc del dev $DEV1 ingress"
79 "$TC qdisc add dev $DEV1 ingress",
88 "$TC qdisc del dev $DEV1 ingress"
102 "$TC qdisc add dev $DEV1 ingress"
110 "$TC qdisc del dev $DEV1 ingress"
[all …]
Dcgroup.json13 "$TC qdisc add dev $DEV1 ingress"
21 "$TC qdisc del dev $DEV1 ingress"
35 "$TC qdisc add dev $DEV1 ingress"
43 "$TC qdisc del dev $DEV1 ingress"
57 "$TC qdisc add dev $DEV1 ingress"
65 "$TC qdisc del dev $DEV1 ingress"
79 "$TC qdisc add dev $DEV1 ingress"
87 "$TC qdisc del dev $DEV1 ingress"
101 "$TC qdisc add dev $DEV1 ingress"
109 "$TC qdisc del dev $DEV1 ingress"
[all …]
Dbasic.json13 "$TC qdisc add dev $DEV1 ingress"
21 "$TC qdisc del dev $DEV1 ingress"
35 "$TC qdisc add dev $DEV1 ingress"
43 "$TC qdisc del dev $DEV1 ingress"
57 "$TC qdisc add dev $DEV1 ingress"
65 "$TC qdisc del dev $DEV1 ingress"
79 "$TC qdisc add dev $DEV1 ingress"
87 "$TC qdisc del dev $DEV1 ingress"
101 "$TC qdisc add dev $DEV1 ingress"
109 "$TC qdisc del dev $DEV1 ingress"
[all …]
Dflow.json13 "$TC qdisc add dev $DEV1 ingress"
21 "$TC qdisc del dev $DEV1 ingress"
35 "$TC qdisc add dev $DEV1 ingress"
43 "$TC qdisc del dev $DEV1 ingress"
57 "$TC qdisc add dev $DEV1 ingress"
65 "$TC qdisc del dev $DEV1 ingress"
79 "$TC qdisc add dev $DEV1 ingress"
87 "$TC qdisc del dev $DEV1 ingress"
101 "$TC qdisc add dev $DEV1 ingress"
109 "$TC qdisc del dev $DEV1 ingress"
[all …]
Dmatchall.json4 "name": "Add ingress matchall filter for protocol ipv4 and action PASS",
13 "$TC qdisc add dev $DUMMY ingress"
21 "$TC qdisc del dev $DUMMY ingress"
48 "name": "Add ingress matchall filter for protocol ipv6 and action DROP",
57 "$TC qdisc add dev $DUMMY ingress"
65 "$TC qdisc del dev $DUMMY ingress"
92 …"name": "Add ingress matchall filter for protocol ipv4 and action PASS with priority at 16-bit max…
101 "$TC qdisc add dev $DUMMY ingress"
109 "$TC qdisc del dev $DUMMY ingress"
136 …"name": "Add ingress matchall filter for protocol ipv4 and action PASS with priority exceeding 16-…
[all …]
/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/
Dtc_restrictions.sh45 check_err $? "Failed to create clsact with ingress block"
49 check_err $? "Failed to add drop rule to ingress bound block"
52 check_err $? "Failed to create another clsact with ingress shared block"
93 check_err $? "Failed to create clsact with ingress block"
98 check_err $? "Failed to add redirect rule to ingress bound block"
101 check_err $? "Failed to create another clsact with ingress shared block"
149 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 \
[all …]
/linux-6.12.1/tools/testing/selftests/tc-testing/tc-tests/actions/
Dnat.json4 "name": "Add nat action on ingress with default control action",
20 "cmdUnderTest": "$TC actions add action nat ingress 192.168.1.1 200.200.200.1",
23 "matchPattern": "action order [0-9]+: nat ingress 192.168.1.1/32 200.200.200.1 pass",
31 "name": "Add nat action on ingress with pipe control action",
47 "cmdUnderTest": "$TC actions add action nat ingress 1.1.1.1 2.2.2.1 pipe index 77",
50 "matchPattern": "action order [0-9]+: nat ingress 1.1.1.1/32 2.2.2.1 pipe.*index 77 ref",
58 "name": "Add nat action on ingress with continue control action",
74 …"cmdUnderTest": "$TC actions add action nat ingress 192.168.10.10 192.168.20.20 continue index 100…
77 …"matchPattern": "action order [0-9]+: nat ingress 192.168.10.10/32 192.168.20.20 continue.*index …
85 "name": "Add nat action on ingress with reclassify control action",
[all …]
/linux-6.12.1/tools/testing/selftests/tc-testing/tc-tests/infra/
Dactions.json13 "$TC qdisc add dev $DUMMY ingress",
22 "$TC qdisc del dev $DUMMY ingress"
36 "$TC qdisc add dev $DUMMY ingress",
45 "$TC qdisc del dev $DUMMY ingress"
59 "$TC qdisc add dev $DUMMY ingress",
68 "$TC qdisc del dev $DUMMY ingress"
82 "$TC qdisc add dev $DUMMY ingress",
91 "$TC qdisc del dev $DUMMY ingress"
105 "$TC qdisc add dev $DUMMY ingress",
114 "$TC qdisc del dev $DUMMY ingress"
[all …]
/linux-6.12.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()
65 …NL_SET_ERR_MSG_MOD(extack, "Block cannot be bound to ingress because it contains unsupported rules… 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
[all …]
/linux-6.12.1/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.12.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 …]

12345678910>>...24