/Linux-v5.10/drivers/net/ethernet/mscc/ |
D | ocelot_flower.c | 121 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 …]
|
D | ocelot_vcap.c | 331 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-v5.10/kernel/ |
D | seccomp.c | 231 static int seccomp_check_filter(struct sock_filter *filter, unsigned int flen) in seccomp_check_filter() argument 235 struct sock_filter *ftest = &filter[pc]; in seccomp_check_filter() 317 READ_ONCE(current->seccomp.filter); in seccomp_run_filters() 410 is_ancestor(thread->seccomp.filter, in seccomp_can_sync_threads() 411 caller->seccomp.filter))) in seccomp_can_sync_threads() 425 static inline void seccomp_filter_free(struct seccomp_filter *filter) in seccomp_filter_free() argument 427 if (filter) { in seccomp_filter_free() 428 bpf_prog_destroy(filter->prog); in seccomp_filter_free() 429 kfree(filter); in seccomp_filter_free() 471 struct seccomp_filter *orig = tsk->seccomp.filter; in seccomp_filter_release() [all …]
|
/Linux-v5.10/block/ |
D | scsi_ioctl.c | 110 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-v5.10/drivers/infiniband/hw/usnic/ |
D | usnic_fwd.h | 91 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 …]
|
D | usnic_fwd.c | 160 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-v5.10/kernel/trace/ |
D | trace_events_filter.c | 896 int filter_match_preds(struct event_filter *filter, void *rec) in filter_match_preds() argument 902 if (!filter) in filter_match_preds() 906 prog = rcu_dereference_raw(filter->prog); in filter_match_preds() 920 static void remove_filter_string(struct event_filter *filter) in remove_filter_string() argument 922 if (!filter) in remove_filter_string() 925 kfree(filter->filter_string); in remove_filter_string() 926 filter->filter_string = NULL; in remove_filter_string() 931 struct event_filter *filter) in append_filter_err() argument 938 if (WARN_ON(!filter->filter_string)) in append_filter_err() 946 len = strlen(filter->filter_string); in append_filter_err() [all …]
|
/Linux-v5.10/tools/perf/util/ |
D | strfilter.c | 30 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-v5.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 \ 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 \ 81 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 82 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 91 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 93 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ [all …]
|
D | tc_chains.sh | 38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 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 \ 76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 77 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 78 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 133 tc filter add dev $h2 ingress protocol ip pref 1 handle 1101 \ 137 tc filter add dev $h2 ingress protocol ip pref 1 handle 1102 \ [all …]
|
D | tc_actions.sh | 60 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 69 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 79 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 81 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 90 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \ 99 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 111 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower 112 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 125 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 127 tc filter add dev $swp1 ingress protocol ip pref 3 handle 103 flower \ [all …]
|
/Linux-v5.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 …]
|
/Linux-v5.10/tools/lib/traceevent/ |
D | parse-filter.c | 106 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-v5.10/drivers/media/dvb-core/ |
D | dmxdev.c | 388 struct dmx_section_filter *filter, in dvb_dmxdev_section_callback() argument 391 struct dmxdev_filter *dmxdevfilter = filter->priv; in dvb_dmxdev_section_callback() 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() 537 static int dvb_dmxdev_feed_restart(struct dmxdev_filter *filter) in dvb_dmxdev_feed_restart() argument 540 struct dmxdev *dmxdev = filter->dev; in dvb_dmxdev_feed_restart() [all …]
|
/Linux-v5.10/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
D | tc_flower.sh | 100 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-v5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_llh_internal.h | 522 #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-v5.10/tools/lib/traceevent/Documentation/ |
D | libtraceevent-filter.txt | 9 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-v5.10/samples/seccomp/ |
D | bpf-helper.c | 20 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()
|
D | bpf-fancy.c | 35 struct sock_filter filter[] = { in main() local 82 .filter = filter, in main() 83 .len = (unsigned short)(sizeof(filter)/sizeof(filter[0])), in main() 86 bpf_resolve_jumps(&l, filter, sizeof(filter)/sizeof(*filter)); in main()
|
/Linux-v5.10/net/netfilter/ |
D | xt_bpf.c | 33 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 …]
|
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
D | hw_atl2_llh_internal.h | 52 #define HW_ATL2_RPFL2UC_TAG_ADR(filter) (0x00005114 + (filter) * 0x8) argument 106 #define HW_ATL2_RPF_VL_TAG_ADR(filter) (0x00005290 + (filter) * 0x4) argument 285 #define HW_ATL2_RPF_ACT_RSLVR_REQ_TAG_ADR(filter) \ argument 286 (0x00014000u + (filter) * 0x10) 299 #define HW_ATL2_RPF_ACT_RSLVR_TAG_MASK_ADR(filter) \ argument 300 (0x00014004u + (filter) * 0x10) 313 #define HW_ATL2_RPF_ACT_RSLVR_ACTN_ADR(filter) \ argument 314 (0x00014008u + (filter) * 0x10)
|
/Linux-v5.10/arch/x86/kvm/ |
D | pmu.c | 176 struct kvm_pmu_event_filter *filter; in reprogram_gp_counter() local 190 filter = srcu_dereference(kvm->arch.pmu_event_filter, &kvm->srcu); in reprogram_gp_counter() 191 if (filter) { in reprogram_gp_counter() 192 for (i = 0; i < filter->nevents; i++) in reprogram_gp_counter() 193 if (filter->events[i] == in reprogram_gp_counter() 196 if (filter->action == KVM_PMU_EVENT_ALLOW && in reprogram_gp_counter() 197 i == filter->nevents) in reprogram_gp_counter() 199 if (filter->action == KVM_PMU_EVENT_DENY && in reprogram_gp_counter() 200 i < filter->nevents) in reprogram_gp_counter() 243 struct kvm_pmu_event_filter *filter; in reprogram_fixed_counter() local [all …]
|
/Linux-v5.10/tools/testing/selftests/netfilter/ |
D | nft_nat.sh | 86 ip netns exec $ns nft list counter inet filter $counter 1>&2 94 cnt=$(ip netns exec $ns nft list counter inet filter ns0in | grep -q "packets 1 bytes 84") 99 cnt=$(ip netns exec $ns nft list counter inet filter ns0out | grep -q "packets 1 bytes 84") 106 cnt=$(ip netns exec $ns nft list counter inet filter ns0in6 | grep -q "$expect") 111 cnt=$(ip netns exec $ns nft list counter inet filter ns0out6 | grep -q "$expect") 125 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0in | grep -q "packets 0 bytes 0") 131 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0in6 | grep -q "packets 0 bytes 0") 137 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0out | grep -q "packets 0 bytes 0") 142 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0out6 | grep -q "packets 0 bytes 0") 150 cnt=$(ip netns exec "$ns0" nft list counter inet filter ${ns}${dir} | grep -q "$expect") [all …]
|
/Linux-v5.10/net/sched/ |
D | act_bpf.c | 25 struct bpf_prog *filter; member 40 struct bpf_prog *filter; in tcf_bpf_act() local 47 filter = rcu_dereference(prog->filter); in tcf_bpf_act() 51 filter_res = BPF_PROG_RUN(filter, skb); in tcf_bpf_act() 55 filter_res = BPF_PROG_RUN(filter, skb); in tcf_bpf_act() 125 if (nla_put_u32(skb, TCA_ACT_BPF_ID, prog->filter->aux->id)) in tcf_bpf_dump_ebpf_info() 128 nla = nla_reserve(skb, TCA_ACT_BPF_TAG, sizeof(prog->filter->tag)); in tcf_bpf_dump_ebpf_info() 132 memcpy(nla_data(nla), prog->filter->tag, nla_len(nla)); in tcf_bpf_dump_ebpf_info() 207 fprog_tmp.filter = bpf_ops; in tcf_bpf_init_from_ops() 217 cfg->filter = fp; in tcf_bpf_init_from_ops() [all …]
|
/Linux-v5.10/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 376 struct sock_filter filter[] = { in TEST() local 380 .len = (unsigned short)ARRAY_SIZE(filter), in TEST() 381 .filter = filter, in TEST() 410 struct sock_filter *filter; in TEST() local 414 filter = calloc(count, sizeof(*filter)); in TEST() 415 ASSERT_NE(NULL, filter); in TEST() 418 filter[i] = allow[0]; in TEST() 423 prog.filter = filter; in TEST() 447 struct sock_filter *filter; in TEST() local 451 filter = calloc(count, sizeof(*filter)); in TEST() [all …]
|