Home
last modified time | relevance | path

Searched refs:rules (Results 1 – 25 of 155) sorted by relevance

1234567

/f-stack/dpdk/drivers/regex/mlx5/
H A Dmlx5_rxp.c370 curentry = (*rules)->rules; in rxp_parse_rof()
667 &rules->rules[rule_offset], in write_private_rules()
688 &rules->rules[rule_offset], in write_private_rules()
699 (rules->rules[rule_cnt].type == in write_private_rules()
701 (rules->rules[rule_cnt].type == in write_private_rules()
711 &rules->rules[rule_offset], in write_private_rules()
725 rules->rules[rule_cnt].addr); in write_private_rules()
770 rules->rules[rule_cnt].addr); in write_private_rules()
778 rules->rules[rule_cnt].addr); in write_private_rules()
787 rules->rules[rule_cnt].type); in write_private_rules()
[all …]
/f-stack/dpdk/drivers/regex/octeontx2/
H A Dotx2_regexdev_compiler.c16 ree_rule_db_compile(const struct rte_regexdev_rule *rules, in ree_rule_db_compile() argument
64 ruleset.rules = rte_malloc("rxp_rule_entry", in ree_rule_db_compile()
67 if (ruleset.rules == NULL) { in ree_rule_db_compile()
77 ruleset.rules[i].number_of_prefix_entries = 0; in ree_rule_db_compile()
78 ruleset.rules[i].prefix = NULL; in ree_rule_db_compile()
79 ruleset.rules[i].rule = rules[i].pcre_rule; in ree_rule_db_compile()
80 ruleset.rules[i].rule_id = rules[i].rule_id; in ree_rule_db_compile()
81 ruleset.rules[i].subset_id = rules[i].group_id; in ree_rule_db_compile()
82 ruleset.rules[i].rule_direction_type = in ree_rule_db_compile()
123 rte_free(ruleset.rules); in ree_rule_db_compile()
[all …]
H A Dotx2_regexdev.c268 if (data->rules) in ree_dev_fini()
269 rte_free(data->rules); in ree_dev_fini()
726 if (rules[i].op == RTE_REGEX_RULE_OP_REMOVE) in otx2_ree_rule_db_update()
728 if (rules[i].group_id >= data->max_groups) in otx2_ree_rule_db_update()
748 if (data->rules == NULL) in otx2_ree_rule_db_update()
751 memcpy(data->rules, rules, in otx2_ree_rule_db_update()
756 old_ptr = data->rules; in otx2_ree_rule_db_update()
758 data->rules = rte_realloc(data->rules, in otx2_ree_rule_db_update()
761 if (data->rules == NULL) { in otx2_ree_rule_db_update()
762 data->rules = old_ptr; in otx2_ree_rule_db_update()
[all …]
/f-stack/freebsd/contrib/openzfs/udev/rules.d/
H A D.gitignore1 69-vdev.rules
2 60-zpool.rules
3 60-zvol.rules
4 90-zfs.rules
H A DMakefile.am4 69-vdev.rules \
5 60-zvol.rules \
6 90-zfs.rules
H A D69-vdev.rules.in2 # @udevdir@/rules.d/69-vdev.rules
13 # Enclosure device symlink rules
/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_access_module.c38 ngx_array_t *rules; /* array of ngx_stream_access_rule_t */ member
134 if (ascf->rules) { in ngx_stream_access_handler()
146 if (ascf->rules && IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr)) { in ngx_stream_access_handler()
185 rule = ascf->rules->elts; in ngx_stream_access_inet()
186 for (i = 0; i < ascf->rules->nelts; i++) { in ngx_stream_access_inet()
332 if (ascf->rules == NULL) { in ngx_stream_access_rule()
333 ascf->rules = ngx_array_create(cf->pool, 4, in ngx_stream_access_rule()
335 if (ascf->rules == NULL) { in ngx_stream_access_rule()
340 rule = ngx_array_push(ascf->rules); in ngx_stream_access_rule()
416 if (conf->rules == NULL in ngx_stream_access_merge_srv_conf()
[all …]
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_access_module.c38 ngx_array_t *rules; /* array of ngx_http_access_rule_t */ member
138 if (alcf->rules) { in ngx_http_access_handler()
150 if (alcf->rules && IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr)) { in ngx_http_access_handler()
189 rule = alcf->rules->elts; in ngx_http_access_inet()
190 for (i = 0; i < alcf->rules->nelts; i++) { in ngx_http_access_inet()
342 if (alcf->rules == NULL) { in ngx_http_access_rule()
343 alcf->rules = ngx_array_create(cf->pool, 4, in ngx_http_access_rule()
345 if (alcf->rules == NULL) { in ngx_http_access_rule()
350 rule = ngx_array_push(alcf->rules); in ngx_http_access_rule()
426 if (conf->rules == NULL in ngx_http_access_merge_loc_conf()
[all …]
/f-stack/dpdk/doc/guides/sample_app_ug/
H A Dl3_forward_access_ctrl.rst17 The application loads two types of rules at initialization:
19 * Route information rules, which are used for L3 forwarding
80 * priority field: A weight to measure the priority of the rules.
92 The application needs to acquire ACL and route rules before it runs.
93 Route rules are mandatory, while ACL rules are optional.
137 * Route rules start with a leading character 'R' and have the same format as ACL rules except an …
176 * Packet 1 matches all of the rules
251 * --rule_ipv4 FILENAME: Specifies the IPv4 ACL and route rules file
318 The ACL rules save the index to the specific rules in the userdata field,
319 while route rules save the forwarding port number.
[all …]
/f-stack/freebsd/security/mac_bsdextended/
H A Dmac_bsdextended.c168 if (rules[index] == NULL) { in sysctl_rule()
172 temprule = *rules[index]; in sysctl_rule()
176 ruleptr = rules[index]; in sysctl_rule()
182 rules[index] = NULL; in sysctl_rule()
187 if (rules[index] == NULL) { in sysctl_rule()
189 rules[index] = ruleptr; in sysctl_rule()
195 *rules[index] = temprule; in sysctl_rule()
222 if (rules[i] != NULL) in ugidfw_destroy()
223 free(rules[i], M_MACBSDEXTENDED); in ugidfw_destroy()
439 if (rules[i] == NULL) in ugidfw_check()
[all …]
/f-stack/freebsd/contrib/openzfs/config/
H A Duser-udev.m422 [install udev rules [[UDEVDIR/rules.d]]]),
24 [udevruledir="${udevdir}/rules.d"])
H A DRules.am2 # Default build rules for all user space components, every Makefile.am
3 # should include these rules and override or extend them as needed.
/f-stack/freebsd/netpfil/pf/
H A Dpf_ruleset.c140 TAILQ_INIT(&ruleset->rules[i].queues[0]); in pf_init_kruleset()
141 TAILQ_INIT(&ruleset->rules[i].queues[1]); in pf_init_kruleset()
142 ruleset->rules[i].active.ptr = &ruleset->rules[i].queues[0]; in pf_init_kruleset()
143 ruleset->rules[i].inactive.ptr = &ruleset->rules[i].queues[1]; in pf_init_kruleset()
268 if (!TAILQ_EMPTY(ruleset->rules[i].active.ptr) || in pf_remove_if_empty_kruleset()
269 !TAILQ_EMPTY(ruleset->rules[i].inactive.ptr) || in pf_remove_if_empty_kruleset()
270 ruleset->rules[i].inactive.open) in pf_remove_if_empty_kruleset()
H A Dpf_ioctl.c921 rs->rules[rs_num].inactive.rcount--; in pf_begin_rules()
924 rs->rules[rs_num].inactive.open = 1; in pf_begin_rules()
944 rs->rules[rs_num].inactive.rcount--; in pf_rollback_rules()
946 rs->rules[rs_num].inactive.open = 0; in pf_rollback_rules()
1060 rs->rules[rs_num].active.ptr = in pf_commit_rules()
1061 rs->rules[rs_num].inactive.ptr; in pf_commit_rules()
1062 rs->rules[rs_num].active.ptr_array = in pf_commit_rules()
1064 rs->rules[rs_num].active.rcount = in pf_commit_rules()
1065 rs->rules[rs_num].inactive.rcount; in pf_commit_rules()
1070 rs->rules[rs_num].active.ticket = in pf_commit_rules()
[all …]
/f-stack/dpdk/lib/librte_flow_classify/
H A Drte_flow_classify.c81 struct classify_rules rules; /* union of rules */ member
425 rule->rules.type = RTE_FLOW_CLASSIFY_RULE_TYPE_IPV4_5TUPLE; in allocate_acl_ipv4_5tuple_rule()
433 rule->rules.u.ipv4_5tuple.proto = cls->ntuple_filter.proto; in allocate_acl_ipv4_5tuple_rule()
434 rule->rules.u.ipv4_5tuple.proto_mask = cls->ntuple_filter.proto_mask; in allocate_acl_ipv4_5tuple_rule()
441 rule->rules.u.ipv4_5tuple.src_ip = cls->ntuple_filter.src_ip; in allocate_acl_ipv4_5tuple_rule()
448 rule->rules.u.ipv4_5tuple.dst_ip = cls->ntuple_filter.dst_ip; in allocate_acl_ipv4_5tuple_rule()
454 rule->rules.u.ipv4_5tuple.src_port_mask = in allocate_acl_ipv4_5tuple_rule()
456 rule->rules.u.ipv4_5tuple.src_port = cls->ntuple_filter.src_port; in allocate_acl_ipv4_5tuple_rule()
462 rule->rules.u.ipv4_5tuple.dst_port_mask = in allocate_acl_ipv4_5tuple_rule()
464 rule->rules.u.ipv4_5tuple.dst_port = cls->ntuple_filter.dst_port; in allocate_acl_ipv4_5tuple_rule()
[all …]
/f-stack/dpdk/lib/librte_acl/
H A Drte_acl.c418 ctx->rules = ctx + 1; in rte_acl_create()
436 acl_add_rules(struct rte_acl_ctx *ctx, const void *rules, uint32_t num) in acl_add_rules() argument
443 pos = ctx->rules; in acl_add_rules()
445 memcpy(pos, rules, num * ctx->rule_sz); in acl_add_rules()
463 rte_acl_add_rules(struct rte_acl_ctx *ctx, const struct rte_acl_rule *rules, in rte_acl_add_rules() argument
470 if (ctx == NULL || rules == NULL || 0 == ctx->rule_sz) in rte_acl_add_rules()
475 ((uintptr_t)rules + i * ctx->rule_sz); in rte_acl_add_rules()
484 return acl_add_rules(ctx, rules, num); in rte_acl_add_rules()
/f-stack/dpdk/doc/guides/tools/
H A Dflow-perf.rst15 After that the application will start producing rules with same pattern
75 * ``--rules-count=N``
76 Set the total number of flow rules to insert,
77 where 1 <= N <= "number of flow rules".
80 * ``--rules-batch=N``
81 Set the number of flow rules to insert per iteration window,
82 where 1 <= N <= "number of flow rules per iteration window".
83 The default value is 100,000 flow rules per iteration window.
84 For a total of --rules-count=1000000 flow rules to be inserted
85 and an iteration window size of --rules-batch=100000 flow rules,
[all …]
H A Dtestregex.rst31 * Supports only precompiled rules.
37 ``--rules NAME``
73 ./dpdk-test-regex -a 83:00.0 -- --rules rule_file.rof2 --data data_file.txt --job 100
/f-stack/dpdk/doc/guides/prog_guide/
H A Dlpm6_lib.rst15 * Maximum number of rules: This defines the size of the table that holds the rules,
16 and therefore the maximum number of rules that can be added.
20 This parameter is related to the number of rules you can have,
21 but there is no way to accurately predict the number needed to hold a specific number of rules,
24 several thousand IPv6 rules, but the number can vary depending on the case.
61 whether there are other rules with bigger depths and the same key in the data structure.
182 There are different things that limit the number of rules that can be added.
183 The first one is the maximum number of rules, which is a parameter passed through the API.
187 If we exhaust tbl8s, we won't be able to add any more rules.
199 two 48 bit-long rules may use the same three tbl8s if the only difference is in their last byte.
[all …]
H A Dpacket_classif_access_ctrl.rst8 to classify an input packet based on a set of classification rules.
16 * Add rules into the context.
307 When no rules match, returned value is zero.
319 Depending on the rules set, that could consume significant amount of memory.
346 * populated with rules AC context and cfg filled properly.
434 .max_rule_num = 8, /* maximum number of rules in the AC context. */
492 /* add rules to the context */
496 /* handle error at adding ACL rules. */
506 /* build the runtime structures for added rules, with 2 categories. */
528 * For category 0, both rules 1 and 2 match, but rule 2 has higher priority,
[all …]
H A Drte_flow.rst13 according to any number of user-defined rules.
51 emulated by reordering rules).
1130 flow rules.
1587 flow rules:
2801 rules.
3195 other rules in the tunnel offload sequence.
3243 rules:
3305 the behavior of existing flow rules.
3316 two IPv4 rules cannot use different bit-masks.
3409 Flow rules priority
[all …]
H A Dflow_classify_lib.rst8 to classify an input packet by matching it against a set of Flow rules.
18 rules and matching packets against the Flow rules.
28 classify an input packet based on a set of classification rules.
258 /** Maximum number of ACL rules in the table */
323 action, a union of add and delete keys and a union of rules.
347 struct classify_rules rules; /* union of rules */
372 of the Flow rules in the table.
/f-stack/freebsd/contrib/openzfs/contrib/dracut/90zfs/
H A Dmodule-setup.sh.in18 echo udev-rules
36 inst_rules @udevruledir@/90-zfs.rules
37 inst_rules @udevruledir@/69-vdev.rules
38 inst_rules @udevruledir@/60-zvol.rules
/f-stack/dpdk/app/test-regex/
H A Dmain.c171 char *rules = NULL; in init_port() local
198 rules_len = read_file(rules_file, &rules); in init_port()
219 dev_conf.rule_db = rules; in init_port()
235 rte_free(rules); in init_port()
238 if (rules) in init_port()
239 rte_free(rules); in init_port()
/f-stack/dpdk/app/test/
H A Dtest_acl.c133 const struct rte_acl_ipv4vlan_rule *rules, in rte_acl_ipv4vlan_add_rules() argument
140 if (ctx == NULL || rules == NULL) in rte_acl_ipv4vlan_add_rules()
145 rc = acl_ipv4vlan_check_rule(rules + i); in rte_acl_ipv4vlan_add_rules()
155 acl_ipv4vlan_convert_rule(rules + i, &rv); in rte_acl_ipv4vlan_add_rules()
377 ret = rte_acl_ipv4vlan_add_rules(acx, rules, num); in test_classify_buid()
787 convert(rules + i, &r); in convert_rules()
1130 struct rte_acl_ipv4vlan_rule rules[LEN]; in test_create_find_add() local
1220 memcpy(&rules[i], &acl_rule, in test_create_find_add()
1223 rules[i].data.userdata = i + 1; in test_create_find_add()
1225 rules[i].data.category_mask = 1 << i; in test_create_find_add()
[all …]

1234567