| /kernel/linux/linux-6.6/drivers/net/ethernet/mscc/ |
| D | ocelot_flower.c | 147 struct ocelot_vcap_filter *filter; in ocelot_find_vcap_filter_that_points_at() local 158 list_for_each_entry(filter, &block->rules, list) in ocelot_find_vcap_filter_that_points_at() 159 if (filter->type == OCELOT_VCAP_FILTER_PAG && in ocelot_find_vcap_filter_that_points_at() 160 filter->goto_target == chain) in ocelot_find_vcap_filter_that_points_at() 161 return filter; in ocelot_find_vcap_filter_that_points_at() 164 list_for_each_entry(filter, &ocelot->dummy_rules, list) in ocelot_find_vcap_filter_that_points_at() 165 if (filter->goto_target == chain) in ocelot_find_vcap_filter_that_points_at() 166 return filter; in ocelot_find_vcap_filter_that_points_at() 173 struct ocelot_vcap_filter *filter, in ocelot_flower_parse_ingress_vlan_modify() argument 179 if (filter->goto_target != -1) { in ocelot_flower_parse_ingress_vlan_modify() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/tc-testing/tc-tests/filters/ |
| D | cgroup.json | 4 "name": "Add cgroup filter with cmp ematch u8/link layer and drop action", 6 "filter", 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 cgroup match 'c… 17 "verifyCmd": "$TC filter show dev $DEV1 parent ffff:", 18 …"matchPattern": "^filter protocol ip pref [0-9]+ cgroup chain [0-9]+.*handle 0x1.*cmp\\(u8 at 0 la… 26 "name": "Add cgroup filter with cmp ematch u8/link layer with trans flag and pass action", 28 "filter", 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 cgroup match 'c… 39 "verifyCmd": "$TC filter show dev $DEV1 parent ffff:", 40 …"matchPattern": "^filter protocol ip pref [0-9]+ cgroup chain [0-9]+.*handle 0x1.*cmp\\(u8 at 0 la… [all …]
|
| D | fw.json | 4 "name": "Add fw filter with prio at 32-bit maxixum", 6 "filter", 15 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65535 fw action ok", 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65535 protocol all fw", 26 "name": "Add fw filter with prio exceeding 32-bit maxixum", 28 "filter", 37 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65536 fw action ok", 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65536 protocol all fw", 48 "name": "Add fw filter with action ok", 50 "filter", [all …]
|
| D | basic.json | 4 "name": "Add basic filter with cmp ematch u8/link layer and default action", 6 "filter", 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm… 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", 18 …"matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*cmp\\(u8 at… 26 "name": "Add basic filter with cmp ematch u8/link layer with trans flag and default action", 28 "filter", 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm… 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", 40 …"matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*cmp\\(u8 at… [all …]
|
| D | flow.json | 4 "name": "Add flow filter with map key and ops", 6 "filter", 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 18 …"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst … 26 "name": "Add flow filter with map key or ops", 28 "filter", 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 40 …"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst.… [all …]
|
| D | matchall.json | 4 "name": "Add ingress matchall filter for protocol ipv4 and action PASS", 6 "filter", 13 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 15 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 16 …"matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*r… 25 "name": "Add egress matchall filter for protocol ipv4 and action PASS", 27 "filter", 34 …"cmdUnderTest": "$TC filter add dev $DUMMY parent 1: handle 0x1 prio 1 protocol ip matchall action… 36 "verifyCmd": "$TC filter get dev $DUMMY parent 1: handle 1 prio 1 protocol ip matchall", 37 …"matchPattern": "^filter parent 1: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*ref … [all …]
|
| D | bpf.json | 4 "name": "Add cBPF filter with valid bytecode", 6 "filter", 7 "bpf-filter" 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 100 bpf bytecode … 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 100 bpf", 18 …"matchPattern": "filter parent ffff: protocol ip pref 100 bpf chain [0-9]+ handle 0x1.*bytecode '4… 26 "name": "Add cBPF filter with invalid bytecode", 28 "filter", 29 "bpf-filter" 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 100 bpf bytecode … [all …]
|
| D | route.json | 4 "name": "Add route filter with from and to tag", 6 "filter", 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: protocol ip prio 100 route from 1 to 10 cla… 17 "verifyCmd": "$TC filter ls dev $DEV1 parent ffff:", 26 "name": "Add route filter with fromif and to tag", 28 "filter", 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: protocol ip prio 100 route fromif $DEV1 to … 39 "verifyCmd": "$TC filter ls dev $DEV1 parent ffff:", 48 "name": "Add route filter with to flag and reclassify action", 50 "filter", [all …]
|
| D | u32.json | 6 "filter", 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", 18 …"matchPattern": "filter protocol ip pref 1 u32 chain (0[ ]+$|0 fh 800: ht divisor 1|0 fh 800::800 … 28 "filter", 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", 40 "matchPattern": "filter protocol ip pref 1 u32 chain 0", 50 "filter", 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 …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/tc-tests/filters/ |
| D | fw.json | 4 "name": "Add fw filter with prio at 32-bit maxixum", 6 "filter", 15 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65535 fw action ok", 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65535 protocol all fw", 26 "name": "Add fw filter with prio exceeding 32-bit maxixum", 28 "filter", 37 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65536 fw action ok", 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65536 protocol all fw", 48 "name": "Add fw filter with action ok", 50 "filter", [all …]
|
| D | basic.json | 4 "name": "Add basic filter with cmp ematch u8/link layer and default action", 6 "filter", 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm… 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", 18 …"matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*cmp\\(u8 at… 26 "name": "Add basic filter with cmp ematch u8/link layer with trans flag and default action", 28 "filter", 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm… 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", 40 …"matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*cmp\\(u8 at… [all …]
|
| D | matchall.json | 4 "name": "Add ingress matchall filter for protocol ipv4 and action PASS", 6 "filter", 13 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 15 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 16 …"matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*r… 25 "name": "Add egress matchall filter for protocol ipv4 and action PASS", 27 "filter", 34 …"cmdUnderTest": "$TC filter add dev $DUMMY parent 1: handle 0x1 prio 1 protocol ip matchall action… 36 "verifyCmd": "$TC filter get dev $DUMMY parent 1: handle 1 prio 1 protocol ip matchall", 37 …"matchPattern": "^filter parent 1: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*ref … [all …]
|
| D | u32.json | 6 "filter", 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", 18 …"matchPattern": "filter protocol ip pref 1 u32 chain (0[ ]+$|0 fh 800: ht divisor 1|0 fh 800::800 … 28 "filter", 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", 40 "matchPattern": "filter protocol ip pref 1 u32 chain 0", 50 "filter", 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 …]
|
| D | tests.json | 6 "filter", 14 "$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", 19 "matchPattern": "filter protocol all pref 1 matchall chain 0 handle 0x1234", 29 "filter", 35 …"cmdUnderTest": "$TC filter add dev $DEV2 protocol ip pref 1 ingress handle 0xffffffff flower acti… 37 "verifyCmd": "$TC filter show dev $DEV2 ingress", 38 "matchPattern": "filter protocol ip pref 1 flower.*handle 0xffffffff", 48 "filter", [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/mscc/ |
| D | ocelot_flower.c | 135 struct ocelot_vcap_filter *filter; in ocelot_find_vcap_filter_that_points_at() local 146 list_for_each_entry(filter, &block->rules, list) in ocelot_find_vcap_filter_that_points_at() 147 if (filter->type == OCELOT_VCAP_FILTER_PAG && in ocelot_find_vcap_filter_that_points_at() 148 filter->goto_target == chain) in ocelot_find_vcap_filter_that_points_at() 149 return filter; in ocelot_find_vcap_filter_that_points_at() 152 list_for_each_entry(filter, &ocelot->dummy_rules, list) in ocelot_find_vcap_filter_that_points_at() 153 if (filter->goto_target == chain) in ocelot_find_vcap_filter_that_points_at() 154 return filter; in ocelot_find_vcap_filter_that_points_at() 161 struct ocelot_vcap_filter *filter) in ocelot_flower_parse_action() argument 176 filter->block_id = ocelot_chain_to_block(chain, ingress); in ocelot_flower_parse_action() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
| D | tc_flower.sh | 44 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 \ 53 check_fail $? "Matched on a wrong filter" 56 check_fail $? "Did not match on correct filter" 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 \ 79 check_fail $? "Matched on a wrong filter" 82 check_fail $? "Did not match on correct filter" [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
| D | tc_flower.sh | 41 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 \ 50 check_fail $? "Matched on a wrong filter" 53 check_fail $? "Did not match on correct filter" 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 \ 76 check_fail $? "Matched on a wrong filter" 79 check_fail $? "Did not match on correct filter" [all …]
|
| /kernel/linux/linux-6.6/tools/perf/util/ |
| D | strfilter.h | 4 /* General purpose glob matching filter */ 9 /* A node of string filter */ 16 /* String filter */ 22 * strfilter__new - Create a new string filter 23 * @rules: Filter rule, which is a combination of glob expressions. 34 * @filter: Original string filter 35 * @rules: Filter rule to be appended at left of the root of 36 * @filter by using logical-or. 39 * Parse @rules and join it to the @filter by using logical-or. 42 int strfilter__or(struct strfilter *filter, [all …]
|
| /kernel/linux/linux-5.10/tools/perf/util/ |
| D | strfilter.h | 4 /* General purpose glob matching filter */ 9 /* A node of string filter */ 16 /* String filter */ 22 * strfilter__new - Create a new string filter 23 * @rules: Filter rule, which is a combination of glob expressions. 34 * @filter: Original string filter 35 * @rules: Filter rule to be appended at left of the root of 36 * @filter by using logical-or. 39 * Parse @rules and join it to the @filter by using logical-or. 42 int strfilter__or(struct strfilter *filter, [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/tc-testing/tc-tests/infra/ |
| D | actions.json | 4 "name": "Reference pedit action object in filter", 14 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 16 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 17 "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 27 "name": "Reference mpls action object in filter", 37 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 39 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 40 "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 50 "name": "Reference bpf action object in filter", 60 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
| D | tc_flower.sh | 97 # filter is matched 101 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 108 check_err $? "Single filter - did not match" 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 131 check_err $? "Single filter - did not match after delete" 133 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 143 # filter is matched 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 …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
| D | tc_flower.sh | 97 # filter is matched 101 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 108 check_err $? "Single filter - did not match" 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 131 check_err $? "Single filter - did not match after delete" 133 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 143 # filter is matched 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 …]
|
| /kernel/linux/linux-6.6/tools/perf/tests/shell/ |
| D | record_bpf_filter.sh | 23 echo "Checking BPF-filter privilege" 27 echo "bpf-filter test [Skipped permission]" 31 if ! perf record -e task-clock --filter 'period > 1' \ 34 echo "bpf-filter test [Skipped missing BPF support]" 41 echo "Basic bpf-filter test" 43 if ! perf record -e task-clock -c 10000 --filter 'ip < 0xffffffff00000000' \ 46 echo "Basic bpf-filter test [Failed record]" 54 echo "Basic bpf-filter test [Skipped unsupported kernel]" 58 echo "Basic bpf-filter test [Failed invalid output]" 62 echo "Basic bpf-filter test [Success]" [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/ |
| D | tc_restrictions.sh | 47 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 59 tc filter del block 22 protocol ip pref 1 handle 101 flower 64 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 73 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 77 tc filter del block 22 protocol ip pref 1 handle 101 flower 95 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 108 tc filter del block 22 protocol ip pref 1 handle 101 flower 113 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 123 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 130 tc filter add block 22 protocol ip pref 1 handle 101 flower \ [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
| D | tc_restrictions.sh | 44 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 56 tc filter del block 22 protocol ip pref 1 handle 101 flower 61 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 70 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 74 tc filter del block 22 protocol ip pref 1 handle 101 flower 92 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 105 tc filter del block 22 protocol ip pref 1 handle 101 flower 110 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 120 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 127 tc filter add block 22 protocol ip pref 1 handle 101 flower \ [all …]
|