Home
last modified time | relevance | path

Searched refs:filter (Results 1 – 25 of 1066) sorted by relevance

12345678910>>...43

/linux/drivers/net/ethernet/mscc/
H A Docelot_flower.c147 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 …]
H A Docelot_mrp.c39 struct ocelot_vcap_filter *filter; in ocelot_mrp_del_vcap() local
42 filter = ocelot_vcap_block_find_filter_by_id(block_vcap_is2, id, in ocelot_mrp_del_vcap()
44 if (!filter) in ocelot_mrp_del_vcap()
47 return ocelot_vcap_filter_del(ocelot, filter); in ocelot_mrp_del_vcap()
54 struct ocelot_vcap_filter *filter; in ocelot_mrp_redirect_add_vcap() local
57 filter = kzalloc(sizeof(*filter), GFP_KERNEL); in ocelot_mrp_redirect_add_vcap()
58 if (!filter) in ocelot_mrp_redirect_add_vcap()
61 filter->key_type = OCELOT_VCAP_KEY_ETYPE; in ocelot_mrp_redirect_add_vcap()
62 filter->prio = 1; in ocelot_mrp_redirect_add_vcap()
63 filter->id.cookie = OCELOT_VCAP_IS2_MRP_REDIRECT(ocelot, src_port); in ocelot_mrp_redirect_add_vcap()
[all …]
H A 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()
346 struct ocelot_vcap_filter *filter) in is2_entry_set() argument
349 struct ocelot_vcap_key_vlan *tag = &filter->vlan; in is2_entry_set()
366 if (filter->prio != 0) in is2_entry_set()
371 vcap_key_set(vcap, &data, VCAP_IS2_HK_PAG, filter->pag, 0xff); in is2_entry_set()
373 (filter->lookup == 0) ? OCELOT_VCAP_BIT_1 : in is2_entry_set()
376 ~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/kernel/
H A Dseccomp.c280 static int seccomp_check_filter(struct sock_filter *filter, unsigned int flen) in seccomp_check_filter() argument
284 struct sock_filter *ftest = &filter[pc]; in seccomp_check_filter()
412 READ_ONCE(current->seccomp.filter); in seccomp_run_filters()
511 is_ancestor(thread->seccomp.filter, in seccomp_can_sync_threads()
512 caller->seccomp.filter))) in seccomp_can_sync_threads()
526 static inline void seccomp_filter_free(struct seccomp_filter *filter) in seccomp_filter_free() argument
528 if (filter) { in seccomp_filter_free()
529 bpf_prog_destroy(filter->prog); in seccomp_filter_free()
530 kfree(filter); in seccomp_filter_free()
580 orig = tsk->seccomp.filter; in seccomp_filter_release()
[all …]
/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 \
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 \
84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
85 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
94 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
96 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
[all …]
H A Dtc_actions.sh66 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
75 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
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 \
105 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
117 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
118 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
131 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
133 tc filter add dev $swp1 ingress protocol ip pref 3 handle 103 flower \
[all …]
H A Drouter_multicast.sh240 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 \
266 tc filter del dev $h3 ingress protocol ip pref 1 handle 133 flower
267 tc filter del dev $h2 ingress protocol ip pref 1 handle 122 flower
280 tc filter add dev $h2 ingress protocol ipv6 pref 1 handle 122 flower \
282 tc filter add dev $h3 ingress protocol ipv6 pref 1 handle 133 flower \
306 tc filter del dev $h3 ingress protocol ipv6 pref 1 handle 133 flower
307 tc filter del dev $h2 ingress protocol ipv6 pref 1 handle 122 flower
323 tc filter add dev $h1 ingress protocol ip pref 1 handle 1 flower \
325 tc filter add dev $h2 ingress protocol ip pref 1 handle 1 flower \
[all …]
H A Dtc_police.sh132 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
152 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
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
170 tc filter add dev $rp2 egress protocol ip pref 1 handle 101 flower \
176 tc filter del dev $rp2 egress protocol ip pref 1 handle 101 flower
207 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
212 tc filter add dev $rp1 ingress protocol ip pref 1 handle 101 flower \
219 tc filter add dev $rp2 egress protocol ip pref 1 handle 101 flower \
227 tc filter del dev $rp2 egress protocol ip pref 1 handle 101 flower
[all …]
/linux/drivers/infiniband/hw/usnic/
H A 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 …]
H A Dusnic_fwd.c160 struct filter *filter) in validate_filter_locked() argument
165 if (filter->type == FILTER_IPV4_5TUPLE) { in validate_filter_locked()
166 if (!(filter->u.ipv4.flags & FILTER_FIELD_5TUP_DST_AD)) in validate_filter_locked()
168 if (!(filter->u.ipv4.flags & FILTER_FIELD_5TUP_DST_PT)) in validate_filter_locked()
172 else if (filter->u.ipv4.dst_port == 0) in validate_filter_locked()
174 else if (ntohl(ufdev->inaddr) != filter->u.ipv4.dst_addr) in validate_filter_locked()
183 static void fill_tlv(struct filter_tlv *tlv, struct filter *filter, in fill_tlv() argument
187 tlv->length = sizeof(struct filter); in fill_tlv()
188 *((struct filter *)&tlv->val) = *filter; in fill_tlv()
191 sizeof(struct filter)); in fill_tlv()
[all …]
/linux/tools/perf/util/
H A 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()
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()
172 filter = NULL; in strfilter__new()
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dtc_restrictions.sh47 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 …]
H A Dtc_sample.sh232 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \
250 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
263 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \
267 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
269 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \
284 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \
288 tc filter add dev $rp1 ingress protocol all pref 2 handle 102 matchall \
295 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
297 tc filter add dev $rp1 ingress protocol all pref 2 handle 102 matchall \
303 tc filter del dev $rp1 ingress protocol all pref 2 handle 102 matchall
[all …]
/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 \
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
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 \
158 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
166 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \
175 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
183 tc filter del dev $h2 ingress protocol ip pref 3 handle 103 flower
[all …]
/linux/arch/x86/kvm/
H A Dpmu.c414 static bool is_fixed_event_allowed(struct kvm_x86_pmu_event_filter *filter, in is_fixed_event_allowed() argument
419 if (filter->action == KVM_PMU_EVENT_DENY && in is_fixed_event_allowed()
420 test_bit(fixed_idx, (ulong *)&filter->fixed_counter_bitmap)) in is_fixed_event_allowed()
422 if (filter->action == KVM_PMU_EVENT_ALLOW && in is_fixed_event_allowed()
423 !test_bit(fixed_idx, (ulong *)&filter->fixed_counter_bitmap)) in is_fixed_event_allowed()
431 struct kvm_x86_pmu_event_filter *filter; in check_pmu_event_filter() local
434 filter = srcu_dereference(kvm->arch.pmu_event_filter, &kvm->srcu); in check_pmu_event_filter()
435 if (!filter) in check_pmu_event_filter()
439 return is_gp_event_allowed(filter, pmc->eventsel); in check_pmu_event_filter()
441 return is_fixed_event_allowed(filter, pmc->idx); in check_pmu_event_filter()
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_llh_internal.h522 #define HW_ATL_RX_FLR_MCST_FLR_ADR(filter) (0x00005250u + (filter) * 0x4) argument
797 #define HW_ATL_RPFL2MC_ENF_ADR(filter) (0x00005250 + (filter) * 0x4) argument
834 #define HW_ATL_RPFL2UC_ACTF_ADR(filter) (0x00005114 + (filter) * 0x8) argument
853 #define HW_ATL_RPFL2UC_ENF_ADR(filter) (0x00005114 + (filter) * 0x8) argument
866 #define HW_ATL_RPFL2UC_DAFLSW_ADR(filter) (0x00005110 + (filter) * 0x8) argument
868 #define HW_ATL_RPFL2UC_DAFMSW_ADR(filter) (0x00005114 + (filter) * 0x8) argument
1120 #define HW_ATL_RPF_VL_EN_F_ADR(filter) (0x00005290 + (filter) * 0x4) argument
1139 #define HW_ATL_RPF_VL_ACT_F_ADR(filter) (0x00005290 + (filter) * 0x4) argument
1158 #define HW_ATL_RPF_VL_ID_F_ADR(filter) (0x00005290 + (filter) * 0x4) argument
1177 #define HW_ATL_RPF_VL_RXQ_EN_F_ADR(filter) (0x00005290 + (filter) * 0x4) argument
[all …]
/linux/kernel/trace/
H A Dtrace_events_filter.c1171 int filter_match_preds(struct event_filter *filter, void *rec) in filter_match_preds() argument
1177 if (!filter) in filter_match_preds()
1181 prog = rcu_dereference_raw(filter->prog); in filter_match_preds()
1195 static void remove_filter_string(struct event_filter *filter) in remove_filter_string() argument
1197 if (!filter) in remove_filter_string()
1200 kfree(filter->filter_string); in remove_filter_string()
1201 filter->filter_string = NULL; in remove_filter_string()
1206 struct event_filter *filter) in append_filter_err() argument
1213 if (WARN_ON(!filter->filter_string)) in append_filter_err()
1221 len = strlen(filter->filter_string); in append_filter_err()
[all …]
/linux/drivers/media/dvb-core/
H A Ddmxdev.c378 struct dmx_section_filter *filter, in dvb_dmxdev_section_callback() argument
381 struct dmxdev_filter *dmxdevfilter = filter->priv; in dvb_dmxdev_section_callback()
499 static int dvb_dmxdev_feed_start(struct dmxdev_filter *filter) in dvb_dmxdev_feed_start() argument
504 dvb_dmxdev_filter_state_set(filter, DMXDEV_STATE_GO); in dvb_dmxdev_feed_start()
506 switch (filter->type) { in dvb_dmxdev_feed_start()
508 return filter->feed.sec->start_filtering(filter->feed.sec); in dvb_dmxdev_feed_start()
510 list_for_each_entry(feed, &filter->feed.ts, next) { in dvb_dmxdev_feed_start()
513 dvb_dmxdev_feed_stop(filter); in dvb_dmxdev_feed_start()
527 static int dvb_dmxdev_feed_restart(struct dmxdev_filter *filter) in dvb_dmxdev_feed_restart() argument
530 struct dmxdev *dmxdev = filter->dev; in dvb_dmxdev_feed_restart()
[all …]
/linux/lib/kunit/
H A Dattributes.c40 int (*filter)(void *attr, const char *input, int *err); member
256 .filter = attr_speed_filter,
264 .filter = attr_string_filter,
272 .filter = attr_bool_filter,
280 const char *kunit_attr_filter_name(struct kunit_attr_filter filter) in kunit_attr_filter_name() argument
282 return filter.attr->name; in kunit_attr_filter_name()
338 struct kunit_attr_filter filter = {}; in kunit_next_attr_filter() local
359 return filter; in kunit_next_attr_filter()
380 filter.attr = &kunit_attr_list[attr_index]; in kunit_next_attr_filter()
385 filter.input = input + op_index; in kunit_next_attr_filter()
[all …]
H A Dexecutor_test.c28 struct kunit_glob_filter filter = {NULL, NULL}; in parse_filter_test() local
30 kunit_parse_glob_filter(&filter, "suite"); in parse_filter_test()
31 KUNIT_EXPECT_STREQ(test, filter.suite_glob, "suite"); in parse_filter_test()
32 KUNIT_EXPECT_FALSE(test, filter.test_glob); in parse_filter_test()
33 kfree(filter.suite_glob); in parse_filter_test()
34 kfree(filter.test_glob); in parse_filter_test()
36 kunit_parse_glob_filter(&filter, "suite.test"); in parse_filter_test()
37 KUNIT_EXPECT_STREQ(test, filter.suite_glob, "suite"); in parse_filter_test()
38 KUNIT_EXPECT_STREQ(test, filter.test_glob, "test"); in parse_filter_test()
39 kfree(filter.suite_glob); in parse_filter_test()
[all …]
/linux/drivers/hid/
H A Dhid-uclogic-core-test.c67 struct uclogic_raw_event_hook *filter; in hid_test_uclogic_exec_event_hook_test() local
77 filter = kunit_kzalloc(test, sizeof(*filter), GFP_KERNEL); in hid_test_uclogic_exec_event_hook_test()
78 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, filter); in hid_test_uclogic_exec_event_hook_test()
80 filter->size = hook_events[n].size; in hid_test_uclogic_exec_event_hook_test()
81 filter->event = kunit_kzalloc(test, filter->size, GFP_KERNEL); in hid_test_uclogic_exec_event_hook_test()
82 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, filter->event); in hid_test_uclogic_exec_event_hook_test()
83 memcpy(filter->event, &hook_events[n].event[0], filter->size); in hid_test_uclogic_exec_event_hook_test()
85 INIT_WORK(&filter->work, fake_work); in hid_test_uclogic_exec_event_hook_test()
87 list_add_tail(&filter->list, &p.event_hooks->list); in hid_test_uclogic_exec_event_hook_test()
/linux/tools/tracing/rtla/src/
H A Dtrace.c212 if (free_event->filter) in trace_events_free()
213 free(free_event->filter); in trace_events_free()
250 int trace_event_add_filter(struct trace_events *event, char *filter) in trace_event_add_filter() argument
252 if (event->filter) in trace_event_add_filter()
253 free(event->filter); in trace_event_add_filter()
255 event->filter = strdup(filter); in trace_event_add_filter()
256 if (!event->filter) in trace_event_add_filter()
283 char filter[1024]; in trace_event_disable_filter() local
286 if (!tevent->filter) in trace_event_disable_filter()
293 tevent->event ? : "*", tevent->filter); in trace_event_disable_filter()
[all …]
/linux/tools/testing/selftests/net/netfilter/
H A Dnft_nat.sh69 ip netns exec "$ns" nft list counter inet filter "$counter" 1>&2
77 if ! ip netns exec "$ns" nft list counter inet filter ns0in | grep -q "packets 1 bytes 84";then
82 if ! ip netns exec "$ns" nft list counter inet filter ns0out | grep -q "packets 1 bytes 84";then
88 if ! ip netns exec "$ns" nft list counter inet filter ns0in6 | grep -q "$expect";then
92 if ! ip netns exec "$ns" nft list counter inet filter ns0out6 | grep -q "$expect";then
105 if ! ip netns exec "$ns0" nft list counter inet filter ns0in | grep -q "packets 0 bytes 0";then
110 if ! ip netns exec "$ns0" nft list counter inet filter ns0in6 | grep -q "packets 0 bytes 0";then
115 if ! ip netns exec "$ns0" nft list counter inet filter ns0out | grep -q "packets 0 bytes 0";then
119 if ! ip netns exec "$ns0" nft list counter inet filter ns0out6 | grep -q "packets 0 bytes 0";then
126 if ! ip netns exec "$ns0" nft list counter inet filter "${ns}${dir}" | grep -q "$expect";then
[all …]
/linux/tools/perf/tests/shell/
H A Drecord_bpf_filter.sh25 if ! perf record -e task-clock --filter 'period > 1' \
44 if ! perf record -e task-clock -c 10000 --filter 'ip < 0xffffffff00000000' \
70 if ! perf record -e task-clock --filter 'cpu > 0' \
78 if ! perf record --sample-cpu -e task-clock --filter 'cpu > 0' \
92 if ! perf record -e task-clock --filter 'period > 1000 || ip > 0' \
100 if ! perf record -e task-clock --filter 'cpu > 0 || ip > 0' \
108 if ! perf record -e task-clock --filter 'period > 0 || code_pgsz > 4096' \
122 if ! perf record -e task-clock --filter 'period > 100000' \
123 -e page-faults --filter 'ip < 0xffffffff00000000' \
153 if ! perf record -e task-clock --filter 'cgroup == /' \
[all …]
/linux/samples/seccomp/
H A Dbpf-helper.c20 struct sock_filter *filter, size_t count) in bpf_resolve_jumps() argument
32 struct sock_filter *instr = &filter[offset]; in bpf_resolve_jumps()
90 void seccomp_bpf_print(struct sock_filter *filter, size_t count) in seccomp_bpf_print() argument
92 struct sock_filter *end = filter + count; in seccomp_bpf_print()
93 for ( ; filter < end; ++filter) in seccomp_bpf_print()
95 filter->code, filter->jt, filter->jf, filter->k); in seccomp_bpf_print()

12345678910>>...43