Home
last modified time | relevance | path

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

12345678910>>...16

/OK3568_Linux_fs/kernel/tools/testing/selftests/net/forwarding/
H A 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 \
49 tc_check_packets "dev $h2 ingress" 101 1
52 tc_check_packets "dev $h2 ingress" 102 1
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 \
75 tc_check_packets "dev $h2 ingress" 101 1
78 tc_check_packets "dev $h2 ingress" 102 1
[all …]
H A 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 …]
H A 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 …]
H 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
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 …]
H A Dtc_actions.sh60 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
66 tc_check_packets "dev $h2 ingress" 101 1
69 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
76 tc_check_packets "dev $h2 ingress" 101 1
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 \
96 tc_check_packets "dev $swp1 ingress" 102 1
99 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
105 tc_check_packets "dev $swp1 ingress" 101 1
[all …]
H A 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 …]
H A Dtc_police.sh129 # Rule to measure bandwidth on ingress of $h2
130 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
155 # Rule to police traffic destined to $h2 on ingress of $rp1
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)
[all …]
H A 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 …]
H A Dpedit_dsfield.sh4 # This test sends traffic from H1 to H2. Either on ingress of $swp1, or on
5 # egress of $swp2, the traffic is acted upon by a pedit action. An ingress
136 tc_rule_handle_stats_get "dev $h2 ingress" 101)
158 tc filter add dev $h2 ingress handle 101 pref 1 prot $match_prot \
163 tc filter del dev $h2 ingress pref 1
182 do_test_ip_dsfield "dev $swp1 ingress"
201 do_test_ip_dscp "dev $swp1 ingress"
220 do_test_ip_ecn "dev $swp1 ingress"
231 tc filter add dev $h2 ingress handle 101 pref 1 prot ip \
237 tc filter del dev $h2 ingress pref 1
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A 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 …]
H A 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()
53 "vport[%d] configure ingress untagged allow rule, err(%d)\n", 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()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
H A Dtc_flower.sh100 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
106 tc_check_packets "dev $h2 ingress" 101 1
109 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
115 tc_check_packets "dev $h2 ingress" 101 2
121 tc_check_packets "dev $h2 ingress" 102 1
124 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
129 tc_check_packets "dev $h2 ingress" 102 2
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 \
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/tc-testing/tc-tests/filters/
H A 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 …]
H A 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"
162 "$TC qdisc add dev $DEV1 ingress"
170 "$TC qdisc del dev $DEV1 ingress"
182 "$TC qdisc add dev $DEV1 ingress",
192 "$TC qdisc del dev $DEV1 ingress",
205 "$TC qdisc add dev $DEV1 ingress"
213 "$TC qdisc del dev $DEV1 ingress"
[all …]
H A 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 …]
H A Dtests.json14 "$TC filter add dev $DEV1 protocol all pref 1 ingress handle 0x1234 matchall action ok"
16 … "cmdUnderTest": "$TC filter get dev $DEV1 protocol all pref 1 ingress handle 0x1234 matchall",
18 "verifyCmd": "$TC filter show dev $DEV1 ingress",
33 "$TC qdisc add dev $DEV2 ingress"
35 …"cmdUnderTest": "$TC filter add dev $DEV2 protocol ip pref 1 ingress handle 0xffffffff flower acti…
37 "verifyCmd": "$TC filter show dev $DEV2 ingress",
41 "$TC qdisc del dev $DEV2 ingress"
55 "$TC qdisc add dev $DEV2 ingress",
64 "$TC qdisc del dev $DEV2 ingress",
79 "$TC qdisc add dev $DEV2 ingress",
[all …]
H A Dconcurrency.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 …]
H A Dmatchall.json4 "name": "Add ingress matchall filter for protocol ipv4 and action PASS",
11 "$TC qdisc add dev $DUMMY ingress"
19 "$TC qdisc del dev $DUMMY ingress",
46 "name": "Add ingress matchall filter for protocol ipv6 and action DROP",
53 "$TC qdisc add dev $DUMMY ingress"
61 "$TC qdisc del dev $DUMMY ingress",
88 …"name": "Add ingress matchall filter for protocol ipv4 and action PASS with priority at 16-bit max…
95 "$TC qdisc add dev $DUMMY ingress"
103 "$TC qdisc del dev $DUMMY ingress",
130 …"name": "Add ingress matchall filter for protocol ipv4 and action PASS with priority exceeding 16-…
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/tc-testing/tc-tests/qdiscs/
H A Dingress.json4 "name": "Add ingress qdisc",
7 "ingress"
12 "cmdUnderTest": "$TC qdisc add dev $DUMMY ingress",
15 "matchPattern": "qdisc ingress ffff:",
18 "$TC qdisc del dev $DUMMY ingress",
24 "name": "Add ingress qdisc with unsupported argument",
27 "ingress"
32 "cmdUnderTest": "$TC qdisc add dev $DUMMY ingress foorbar",
35 "matchPattern": "qdisc ingress ffff:",
43 "name": "Add duplicate ingress qdisc",
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/tc-testing/tc-tests/actions/
H A Dnat.json4 "name": "Add nat action on ingress with default control action",
17 "cmdUnderTest": "$TC actions add action nat ingress 192.168.1.1 200.200.200.1",
20 "matchPattern": "action order [0-9]+: nat ingress 192.168.1.1/32 200.200.200.1 pass",
28 "name": "Add nat action on ingress with pipe control action",
41 "cmdUnderTest": "$TC actions add action nat ingress 1.1.1.1 2.2.2.1 pipe index 77",
44 "matchPattern": "action order [0-9]+: nat ingress 1.1.1.1/32 2.2.2.1 pipe.*index 77 ref",
52 "name": "Add nat action on ingress with continue control action",
65 …"cmdUnderTest": "$TC actions add action nat ingress 192.168.10.10 192.168.20.20 continue index 100…
68 …"matchPattern": "action order [0-9]+: nat ingress 192.168.10.10/32 192.168.20.20 continue.*index …
76 "name": "Add nat action on ingress with reclassify control action",
[all …]
H A Dmirred.json189 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo pass index 1",
192 … "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) pass.*index 1 ref",
213 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo pipe index 15",
216 …"matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) pipe.*index 15 ref",
237 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo continue index 15",
240 …"matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) continue.*index 15 …
261 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo reclassify index 150",
264 …"matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) reclassify.*index 1…
285 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo drop index 99",
288 …"matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) drop.*index 99 ref",
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/drivers/net/mlxsw/
H A Dtc_restrictions.sh42 check_err $? "Failed to create clsact with ingress block"
46 check_err $? "Failed to add drop rule to ingress bound block"
49 check_err $? "Failed to create another clsact with ingress shared block"
90 check_err $? "Failed to create clsact with ingress block"
95 check_err $? "Failed to add redirect rule to ingress bound block"
98 check_err $? "Failed to create another clsact with ingress shared block"
146 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 \
[all …]
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlxsw/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/chelsio/cxgb4/
H A 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 …]

12345678910>>...16