Home
last modified time | relevance | path

Searched full:filter (Results 1 – 25 of 2684) sorted by relevance

12345678910>>...108

/linux-5.10/tools/testing/selftests/tc-testing/tc-tests/filters/
Dfw.json4 "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 …]
Dbasic.json4 "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 …]
Dmatchall.json4 "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 …]
Du32.json6 "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 …]
Dtests.json6 "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 …]
Dconcurrency.json6 "filter",
17 "verifyCmd": "$TC -s filter show dev $DEV2 ingress",
18 "matchPattern": "filter protocol ip pref 1 flower chain 0 handle",
29 "filter",
42 "verifyCmd": "$TC -s filter show dev $DEV2 ingress",
43 "matchPattern": "filter protocol ip pref 1 flower chain 0 handle",
54 "filter",
67 "verifyCmd": "$TC -s filter show dev $DEV2 ingress",
68 "matchPattern": "filter protocol ip pref 1 flower chain 0 handle",
79 "filter",
[all …]
/linux-5.10/drivers/net/ethernet/mscc/
Docelot_flower.c121 struct ocelot_vcap_filter *filter; in ocelot_find_vcap_filter_that_points_at() local
132 list_for_each_entry(filter, &block->rules, list) in ocelot_find_vcap_filter_that_points_at()
133 if (filter->type == OCELOT_VCAP_FILTER_PAG && in ocelot_find_vcap_filter_that_points_at()
134 filter->goto_target == chain) in ocelot_find_vcap_filter_that_points_at()
135 return filter; in ocelot_find_vcap_filter_that_points_at()
138 list_for_each_entry(filter, &ocelot->dummy_rules, list) in ocelot_find_vcap_filter_that_points_at()
139 if (filter->goto_target == chain) in ocelot_find_vcap_filter_that_points_at()
140 return filter; in ocelot_find_vcap_filter_that_points_at()
147 struct ocelot_vcap_filter *filter) in ocelot_flower_parse_action() argument
162 filter->block_id = ocelot_chain_to_block(chain, ingress); in ocelot_flower_parse_action()
[all …]
Docelot_vcap.c331 struct ocelot_vcap_filter *filter) in is2_action_set() argument
334 struct ocelot_vcap_action *a = &filter->action; in is2_action_set()
345 struct ocelot_vcap_filter *filter) in is2_entry_set() argument
348 struct ocelot_vcap_key_vlan *tag = &filter->vlan; in is2_entry_set()
365 if (filter->prio != 0) in is2_entry_set()
370 vcap_key_set(vcap, &data, VCAP_IS2_HK_PAG, filter->pag, 0xff); in is2_entry_set()
372 (filter->lookup == 0) ? OCELOT_VCAP_BIT_1 : in is2_entry_set()
375 ~filter->ingress_port_mask); in is2_entry_set()
379 vcap_key_bit_set(vcap, &data, VCAP_IS2_HK_L2_MC, filter->dmac_mc); in is2_entry_set()
380 vcap_key_bit_set(vcap, &data, VCAP_IS2_HK_L2_BC, filter->dmac_bc); in is2_entry_set()
[all …]
/linux-5.10/tools/testing/selftests/net/forwarding/
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 \
50 check_fail $? "Matched on a wrong filter"
53 check_err $? "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_err $? "Did not match on correct filter"
[all …]
Dtc_chains.sh38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
45 check_fail $? "matched on filter in unreachable chain"
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 \
68 check_fail $? "Matched on a wrong filter"
71 check_err $? "Did not match on correct filter with goto chain action"
74 check_err $? "Did not match on correct filter in chain 1"
76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
[all …]
/linux-5.10/tools/perf/util/
Dstrfilter.h4 /* 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 …]
Dstrfilter.c30 void strfilter__delete(struct strfilter *filter) in strfilter__delete() argument
32 if (filter) { in strfilter__delete()
33 strfilter_node__delete(filter->root); in strfilter__delete()
34 free(filter); in strfilter__delete()
157 * Parse filter rule and return new strfilter.
162 struct strfilter *filter = zalloc(sizeof(*filter)); in strfilter__new() local
165 if (filter) in strfilter__new()
166 filter->root = strfilter_node__new(rules, &ep); in strfilter__new()
168 if (!filter || !filter->root || *ep != '\0') { in strfilter__new()
171 strfilter__delete(filter); in strfilter__new()
[all …]
/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dtc_flower.sh96 # filter is matched
100 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
107 check_err $? "Single filter - did not match"
109 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
124 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
130 check_err $? "Single filter - did not match after delete"
132 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
142 # filter is matched
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 …]
/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dtc_restrictions.sh44 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 …]
/linux-5.10/kernel/
Dseccomp.c38 #include <linux/filter.h>
62 /* The struct pid of the task whose filter triggered the notification */
65 /* The "cookie" for this request; this is unique for this filter. */
136 * filter->notify_lock.
150 * A filter's reference count is incremented for each directly
151 * attached task, once for the dependent filter, and if
153 * the filter can be freed.
154 * @users: A filter's @users count is incremented for each directly
155 * attached task (filter installation, fork(), thread_sync),
156 * and once for the dependent filter (tracked in filter->prev).
[all …]
/linux-5.10/tools/lib/traceevent/Documentation/
Dlibtraceevent-filter.txt9 Event filter related APIs.
32 Filters can be attached to traced events. They can be used to filter out various
37 The _tep_filter_alloc()_ function creates a new event filter. The _tep_ argument
40 The _tep_filter_free()_ function frees an event filter and all resources that it
43 The _tep_filter_reset()_ function removes all rules from an event filter and
47 _filter_str_ argument is the filter string, that contains the rule.
57 The _tep_filter_copy()_ function copies a _source_ filter into a _dest_ filter.
71 filter, or NULL in case of an error.
77 The _tep_event_filtered()_ function returns 1 if the filter is found for given
86 _pass:[TEP_ERRNO__FILTER_MATCH]_ - filter found for event, the record matches.
[all …]
/linux-5.10/include/media/
Ddmxdev.h41 * enum dmxdev_type - type of demux filter type.
43 * @DMXDEV_TYPE_NONE: no filter set.
44 * @DMXDEV_TYPE_SEC: section filter.
45 * @DMXDEV_TYPE_PES: Program Elementary Stream (PES) filter.
56 * @DMXDEV_STATE_FREE: indicates that the filter is freed.
57 * @DMXDEV_STATE_ALLOCATED: indicates that the filter was allocated
59 * @DMXDEV_STATE_SET: indicates that the filter parameters are set.
60 * @DMXDEV_STATE_GO: indicates that the filter is running.
62 * and the filter is now disabled.
91 * struct dmxdev_filter - digital TV dmxdev filter
[all …]
/linux-5.10/tools/lib/traceevent/
Dparse-filter.c106 find_filter_type(struct tep_event_filter *filter, int id) in find_filter_type() argument
113 filter_type = bsearch(&key, filter->event_filters, in find_filter_type()
114 filter->filters, in find_filter_type()
115 sizeof(*filter->event_filters), in find_filter_type()
122 add_filter_type(struct tep_event_filter *filter, int id) in add_filter_type() argument
127 filter_type = find_filter_type(filter, id); in add_filter_type()
131 filter_type = realloc(filter->event_filters, in add_filter_type()
132 sizeof(*filter->event_filters) * in add_filter_type()
133 (filter->filters + 1)); in add_filter_type()
137 filter->event_filters = filter_type; in add_filter_type()
[all …]
/linux-5.10/block/
Dscsi_ioctl.c110 static void blk_set_cmd_filter_defaults(struct blk_cmd_filter *filter) in blk_set_cmd_filter_defaults() argument
113 __set_bit(TEST_UNIT_READY, filter->read_ok); in blk_set_cmd_filter_defaults()
114 __set_bit(REQUEST_SENSE, filter->read_ok); in blk_set_cmd_filter_defaults()
115 __set_bit(READ_6, filter->read_ok); in blk_set_cmd_filter_defaults()
116 __set_bit(READ_10, filter->read_ok); in blk_set_cmd_filter_defaults()
117 __set_bit(READ_12, filter->read_ok); in blk_set_cmd_filter_defaults()
118 __set_bit(READ_16, filter->read_ok); in blk_set_cmd_filter_defaults()
119 __set_bit(READ_BUFFER, filter->read_ok); in blk_set_cmd_filter_defaults()
120 __set_bit(READ_DEFECT_DATA, filter->read_ok); in blk_set_cmd_filter_defaults()
121 __set_bit(READ_CAPACITY, filter->read_ok); in blk_set_cmd_filter_defaults()
[all …]
/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_fltr.c8 * ice_fltr_free_list - free filter lists helper
12 * Helper function to free filter lists previously created using
26 * ice_fltr_add_entry_to_list - allocate and add filter entry to list
28 * @info: filter info struct that gets added to the passed in list
125 * ice_fltr_add_mac_to_list - add MAC filter info to exsisting list
127 * @list: list to add filter info to
129 * @action: filter action
150 * ice_fltr_add_vlan_to_list - add VLAN filter info to exsisting list
152 * @list: list to add filter info to
154 * @action: filter action
[all …]
/linux-5.10/kernel/trace/
Dtrace_events_filter.c18 "### global filter ###\n" \
66 C(INVALID_FILTER, "Meaningless filter expression"), \
70 C(NO_FILTER, "No filter found")
94 * prog_entry - a singe entry in the filter program
657 /* Filter predicate for fixed sized arrays of characters */
670 /* Filter predicate for char * pointers */
685 * Filter predicate for dynamic sized arrays of characters.
709 /* Filter predicate for CPUs. */
735 /* Filter predicate for COMM. */
896 int filter_match_preds(struct event_filter *filter, void *rec) in filter_match_preds() argument
[all …]
/linux-5.10/drivers/infiniband/hw/usnic/
Dusnic_fwd.h91 usnic_fwd_alloc_flow(struct usnic_fwd_dev *ufdev, struct filter *filter,
97 static inline void usnic_fwd_init_usnic_filter(struct filter *filter, in usnic_fwd_init_usnic_filter() argument
100 filter->type = FILTER_USNIC_ID; in usnic_fwd_init_usnic_filter()
101 filter->u.usnic.ethtype = ETH_P_IBOE; in usnic_fwd_init_usnic_filter()
102 filter->u.usnic.flags = FILTER_FIELD_USNIC_ETHTYPE | in usnic_fwd_init_usnic_filter()
105 filter->u.usnic.proto_version = (USNIC_ROCE_GRH_VER << in usnic_fwd_init_usnic_filter()
108 filter->u.usnic.usnic_id = usnic_id; in usnic_fwd_init_usnic_filter()
111 static inline void usnic_fwd_init_udp_filter(struct filter *filter, in usnic_fwd_init_udp_filter() argument
114 filter->type = FILTER_IPV4_5TUPLE; in usnic_fwd_init_udp_filter()
115 filter->u.ipv4.flags = FILTER_FIELD_5TUP_PROTO; in usnic_fwd_init_udp_filter()
[all …]
/linux-5.10/tools/perf/tests/
Dhists_filter.c71 /* make sure it has no filter at first */ in add_hist_entries()
167 /* now applying thread filter for 'bash' */ in test__hists_filter()
172 pr_info("Histogram for thread filter\n"); in test__hists_filter()
184 /* but filter stats are changed */ in test__hists_filter()
185 TEST_ASSERT_VAL("Unmatched nr samples for thread filter", in test__hists_filter()
187 TEST_ASSERT_VAL("Unmatched nr hist entries for thread filter", in test__hists_filter()
189 TEST_ASSERT_VAL("Unmatched total period for thread filter", in test__hists_filter()
192 /* remove thread filter first */ in test__hists_filter()
196 /* now applying dso filter for 'kernel' */ in test__hists_filter()
201 pr_info("Histogram for dso filter\n"); in test__hists_filter()
[all …]
/linux-5.10/drivers/media/dvb-core/
Ddmxdev.c388 struct dmx_section_filter *filter, in dvb_dmxdev_section_callback() argument
391 struct dmxdev_filter *dmxdevfilter = filter->priv; in dvb_dmxdev_section_callback()
486 /* stop feed but only mark the specified filter as stopped (state set) */
508 /* start feed associated with the specified filter */
509 static int dvb_dmxdev_feed_start(struct dmxdev_filter *filter) in dvb_dmxdev_feed_start() argument
514 dvb_dmxdev_filter_state_set(filter, DMXDEV_STATE_GO); in dvb_dmxdev_feed_start()
516 switch (filter->type) { in dvb_dmxdev_feed_start()
518 return filter->feed.sec->start_filtering(filter->feed.sec); in dvb_dmxdev_feed_start()
520 list_for_each_entry(feed, &filter->feed.ts, next) { in dvb_dmxdev_feed_start()
523 dvb_dmxdev_feed_stop(filter); in dvb_dmxdev_feed_start()
[all …]
/linux-5.10/tools/testing/selftests/bpf/
Dtest_flow_dissector.sh73 tc filter del dev lo ingress pref 1337 2> /dev/null
108 tc filter add dev lo parent ffff: protocol ip pref 1337 flower ip_proto \
111 # Send 10 IPv4/UDP packets from port 8. Filter should not drop any.
113 # Send 10 IPv4/UDP packets from port 9. Filter should drop all.
115 # Send 10 IPv4/UDP packets from port 10. Filter should not drop any.
119 # Send 10 IPv4/IPv4/UDP packets from port 8. Filter should not drop any.
122 # Send 10 IPv4/IPv4/UDP packets from port 9. Filter should drop all.
125 # Send 10 IPv4/IPv4/UDP packets from port 10. Filter should not drop any.
130 # Send 10 IPv4/GRE/IPv4/UDP packets from port 8. Filter should not drop any.
133 # Send 10 IPv4/GRE/IPv4/UDP packets from port 9. Filter should drop all.
[all …]

12345678910>>...108