Home
last modified time | relevance | path

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

12345678910>>...24

/openbmc/linux/tools/testing/selftests/net/forwarding/
H A 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 …]
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 \
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 …]
H A 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 …]
H A Dtc_actions.sh65 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
71 tc_check_packets "dev $h2 ingress" 101 1
74 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
81 tc_check_packets "dev $h2 ingress" 101 1
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 \
101 tc_check_packets "dev $swp1 ingress" 102 1
104 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
110 tc_check_packets "dev $swp1 ingress" 101 1
[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_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 …]
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 …]
/openbmc/linux/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.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 …]
/openbmc/linux/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 …]
/openbmc/linux/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 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 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 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 …]
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 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 …]
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 …]
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
H A 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 …]
/openbmc/linux/tools/testing/selftests/drivers/net/dsa/
H A Dtc_actions.sh65 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
71 tc_check_packets "dev $h2 ingress" 101 1
74 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
81 tc_check_packets "dev $h2 ingress" 101 1
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 \
101 tc_check_packets "dev $swp1 ingress" 102 1
104 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
110 tc_check_packets "dev $swp1 ingress" 101 1
[all …]
/openbmc/linux/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 …]
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/
H A 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 …]
/openbmc/linux/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 …]
/openbmc/linux/tools/testing/selftests/tc-testing/tc-tests/infra/
H A Dactions.json11 "$TC qdisc add dev $DUMMY ingress",
20 "$TC qdisc del dev $DUMMY ingress",
34 "$TC qdisc add dev $DUMMY ingress",
43 "$TC qdisc del dev $DUMMY ingress",
57 "$TC qdisc add dev $DUMMY ingress",
66 "$TC qdisc del dev $DUMMY ingress",
80 "$TC qdisc add dev $DUMMY ingress",
89 "$TC qdisc del dev $DUMMY ingress",
103 "$TC qdisc add dev $DUMMY ingress",
112 "$TC qdisc del dev $DUMMY ingress",
[all …]

12345678910>>...24