Home
last modified time | relevance | path

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

12345678910>>...42

/Linux-v6.6/drivers/net/ethernet/mscc/
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 …]
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 …]
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-v6.6/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 …]
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-v6.6/kernel/
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()
508 is_ancestor(thread->seccomp.filter, in seccomp_can_sync_threads()
509 caller->seccomp.filter))) in seccomp_can_sync_threads()
523 static inline void seccomp_filter_free(struct seccomp_filter *filter) in seccomp_filter_free() argument
525 if (filter) { in seccomp_filter_free()
526 bpf_prog_destroy(filter->prog); in seccomp_filter_free()
527 kfree(filter); in seccomp_filter_free()
571 struct seccomp_filter *orig = tsk->seccomp.filter; in seccomp_filter_release()
[all …]
/Linux-v6.6/tools/testing/selftests/net/forwarding/
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 …]
Dtc_actions.sh65 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
74 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
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 \
104 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
116 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
117 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
130 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
132 tc filter add dev $swp1 ingress protocol ip pref 3 handle 103 flower \
[all …]
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 …]
/Linux-v6.6/tools/perf/util/
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-v6.6/tools/testing/selftests/drivers/net/mlxsw/
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 …]
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-v6.6/arch/x86/kvm/
Dpmu.c344 static bool is_fixed_event_allowed(struct kvm_x86_pmu_event_filter *filter, in is_fixed_event_allowed() argument
349 if (filter->action == KVM_PMU_EVENT_DENY && in is_fixed_event_allowed()
350 test_bit(fixed_idx, (ulong *)&filter->fixed_counter_bitmap)) in is_fixed_event_allowed()
352 if (filter->action == KVM_PMU_EVENT_ALLOW && in is_fixed_event_allowed()
353 !test_bit(fixed_idx, (ulong *)&filter->fixed_counter_bitmap)) in is_fixed_event_allowed()
361 struct kvm_x86_pmu_event_filter *filter; in check_pmu_event_filter() local
364 filter = srcu_dereference(kvm->arch.pmu_event_filter, &kvm->srcu); in check_pmu_event_filter()
365 if (!filter) in check_pmu_event_filter()
369 return is_gp_event_allowed(filter, pmc->eventsel); in check_pmu_event_filter()
371 return is_fixed_event_allowed(filter, pmc->idx); in check_pmu_event_filter()
[all …]
/Linux-v6.6/drivers/hwtracing/ptt/
Dhisi_ptt.c229 val |= FIELD_PREP(HISI_PTT_TRACE_CTRL_TARGET_SEL, hisi_ptt->trace_ctrl.filter); in hisi_ptt_trace_start()
358 struct hisi_ptt_filter_desc *filter) in hisi_ptt_del_free_filter() argument
360 if (filter->is_port) in hisi_ptt_del_free_filter()
361 hisi_ptt->port_mask &= ~hisi_ptt_get_filter_val(filter->devid, true); in hisi_ptt_del_free_filter()
363 list_del(&filter->list); in hisi_ptt_del_free_filter()
364 kfree(filter->name); in hisi_ptt_del_free_filter()
365 kfree(filter); in hisi_ptt_del_free_filter()
371 struct hisi_ptt_filter_desc *filter; in hisi_ptt_alloc_add_filter() local
384 filter = kzalloc(sizeof(*filter), GFP_KERNEL); in hisi_ptt_alloc_add_filter()
385 if (!filter) { in hisi_ptt_alloc_add_filter()
[all …]
/Linux-v6.6/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dtc_flower.sh100 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
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
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 \
157 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
165 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \
174 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
182 tc filter del dev $h2 ingress protocol ip pref 3 handle 103 flower
[all …]
/Linux-v6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl/
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-v6.6/kernel/trace/
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-v6.6/drivers/media/dvb-core/
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-v6.6/lib/kunit/
Dattributes.c40 int (*filter)(void *attr, const char *input, int *err); member
204 .filter = attr_speed_filter,
212 .filter = attr_string_filter,
220 const char *kunit_attr_filter_name(struct kunit_attr_filter filter) in kunit_attr_filter_name() argument
222 return filter.attr->name; in kunit_attr_filter_name()
278 struct kunit_attr_filter filter = {}; in kunit_next_attr_filter() local
299 return filter; in kunit_next_attr_filter()
320 filter.attr = &kunit_attr_list[attr_index]; in kunit_next_attr_filter()
325 filter.input = input + op_index; in kunit_next_attr_filter()
328 filter.input = input + op_index; in kunit_next_attr_filter()
[all …]
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-v6.6/drivers/hid/
Dhid-uclogic-core-test.c62 struct uclogic_raw_event_hook *filter; in hid_test_uclogic_exec_event_hook_test() local
72 filter = kunit_kzalloc(test, sizeof(*filter), GFP_KERNEL); in hid_test_uclogic_exec_event_hook_test()
73 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, filter); in hid_test_uclogic_exec_event_hook_test()
75 filter->size = hook_events[n].size; in hid_test_uclogic_exec_event_hook_test()
76 filter->event = kunit_kzalloc(test, filter->size, GFP_KERNEL); in hid_test_uclogic_exec_event_hook_test()
77 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, filter->event); in hid_test_uclogic_exec_event_hook_test()
78 memcpy(filter->event, &hook_events[n].event[0], filter->size); in hid_test_uclogic_exec_event_hook_test()
80 list_add_tail(&filter->list, &p.event_hooks->list); in hid_test_uclogic_exec_event_hook_test()
/Linux-v6.6/tools/testing/selftests/drivers/net/dsa/
Dtc_actions.sh65 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
74 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
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 \
104 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
116 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
117 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
130 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
132 tc filter add dev $swp1 ingress protocol ip pref 3 handle 103 flower \
[all …]
/Linux-v6.6/tools/tracing/rtla/src/
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-v6.6/samples/seccomp/
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()
/Linux-v6.6/net/netfilter/
Dxt_bpf.c33 program.filter = insns; in __bpf_mt_check_bytecode()
70 &info->filter); in bpf_mt_check()
80 &info->filter); in bpf_mt_check_v1()
82 return __bpf_mt_check_fd(info->fd, &info->filter); in bpf_mt_check_v1()
84 return __bpf_mt_check_path(info->path, &info->filter); in bpf_mt_check_v1()
93 return bpf_prog_run(info->filter, skb); in bpf_mt()
100 return !!bpf_prog_run_save_cb(info->filter, (struct sk_buff *) skb); in bpf_mt_v1()
107 bpf_prog_destroy(info->filter); in bpf_mt_destroy()
114 bpf_prog_destroy(info->filter); in bpf_mt_destroy_v1()
126 .usersize = offsetof(struct xt_bpf_info, filter),
[all …]

12345678910>>...42