Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 25 of 700) sorted by relevance

12345678910>>...28

/openbmc/linux/net/core/
H A Dfib_rules.c39 if (rule->iifindex || rule->oifindex || rule->mark || rule->tun_id || in fib_rule_matchall()
332 arg->rule = rule; in fib_rules_lookup()
355 .rule = rule, in call_fib_rule_notifier()
370 .rule = rule, in call_fib_rule_notifiers()
426 if (rule->action && r->action != rule->action) in rule_find()
429 if (rule->table && r->table != rule->table) in rule_find()
443 if (rule->mark && r->mark != rule->mark) in rule_find()
457 if (rule->tun_id && r->tun_id != rule->tun_id) in rule_find()
463 if (rule->l3mdev && r->l3mdev != rule->l3mdev) in rule_find()
474 if (rule->proto && r->proto != rule->proto) in rule_find()
[all …]
H A Dflow_offload.c12 struct flow_rule *rule; in flow_rule_alloc() local
15 rule = kzalloc(struct_size(rule, action.entries, num_actions), in flow_rule_alloc()
17 if (!rule) in flow_rule_alloc()
20 rule->action.num_entries = num_actions; in flow_rule_alloc()
27 return rule; in flow_rule_alloc()
58 void flow_rule_match_meta(const struct flow_rule *rule, in flow_rule_match_meta() argument
65 void flow_rule_match_basic(const struct flow_rule *rule, in flow_rule_match_basic() argument
86 void flow_rule_match_vlan(const struct flow_rule *rule, in flow_rule_match_vlan() argument
100 void flow_rule_match_arp(const struct flow_rule *rule, in flow_rule_match_arp() argument
121 void flow_rule_match_ip(const struct flow_rule *rule, in flow_rule_match_ip() argument
[all …]
/openbmc/linux/drivers/net/ethernet/engleder/
H A Dtsnep_rxnfc.c41 struct tsnep_rxnfc_rule *rule; in tsnep_get_rule() local
45 return rule; in tsnep_get_rule()
76 list_del(&rule->list); in tsnep_delete_rule()
79 kfree(rule); in tsnep_delete_rule()
105 if (!rule) { in tsnep_rxnfc_get_rule()
174 INIT_LIST_HEAD(&rule->list); in tsnep_rxnfc_init_rule()
190 if (!memcmp(&rule->filter, &tmp->filter, sizeof(rule->filter)) && in tsnep_rxnfc_check_rule()
234 rule = kzalloc(sizeof(*rule), GFP_KERNEL); in tsnep_rxnfc_add_rule()
235 if (!rule) in tsnep_rxnfc_add_rule()
265 kfree(rule); in tsnep_rxnfc_add_rule()
[all …]
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_vl.c23 e->rule = rule; in sja1105_insert_gate_entry()
137 rbt = future_base_time(rule->vl.base_time, rule->vl.cycle_time, in sja1105_compose_gating_subschedule()
526 if (!rule) { in sja1105_vl_redirect()
527 rule = kzalloc(sizeof(*rule), GFP_KERNEL); in sja1105_vl_redirect()
528 if (!rule) in sja1105_vl_redirect()
548 kfree(rule); in sja1105_vl_redirect()
563 kfree(rule); in sja1105_vl_delete()
624 if (!rule) { in sja1105_vl_gate()
625 rule = kzalloc(sizeof(*rule), GFP_KERNEL); in sja1105_vl_gate()
626 if (!rule) in sja1105_vl_gate()
[all …]
H A Dsja1105_flower.c14 return rule; in sja1105_rule_find()
43 if (!rule) { in sja1105_setup_bcast_policer()
44 rule = kzalloc(sizeof(*rule), GFP_KERNEL); in sja1105_setup_bcast_policer()
45 if (!rule) in sja1105_setup_bcast_policer()
96 kfree(rule); in sja1105_setup_bcast_policer()
114 if (!rule) { in sja1105_setup_tc_policer()
115 rule = kzalloc(sizeof(*rule), GFP_KERNEL); in sja1105_setup_tc_policer()
116 if (!rule) in sja1105_setup_tc_policer()
168 kfree(rule); in sja1105_setup_tc_policer()
467 if (!rule) in sja1105_cls_flower_del()
[all …]
/openbmc/linux/net/ipv4/
H A Dfib_rules.c55 return fib_rule_matchall(rule); in fib4_rule_matchall()
60 if (!fib4_rule_matchall(rule) || rule->action != FR_ACT_TO_TBL || in fib4_rule_default()
61 rule->l3mdev) in fib4_rule_default()
63 if (rule->table != RT_TABLE_LOCAL && rule->table != RT_TABLE_MAIN && in fib4_rule_default()
95 if (arg.rule) in __fib_lookup()
116 switch (rule->action) { in fib4_rule_action()
166 if (rule->suppress_ifgroup != -1 && dev && dev->group == rule->suppress_ifgroup) in fib4_rule_suppress()
192 if (rule->ip_proto && (rule->ip_proto != fl4->flowi4_proto)) in fib4_rule_match()
246 if (rule->table == RT_TABLE_UNSPEC && !rule->l3mdev) { in fib4_rule_configure()
256 rule->table = table->tb_id; in fib4_rule_configure()
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmatch.c25 struct flow_rule *rule) in nfp_flower_compile_tci() argument
121 struct flow_rule *rule, in nfp_flower_compile_mpls() argument
190 struct flow_rule *rule) in nfp_flower_compile_tport() argument
320 struct flow_rule *rule) in nfp_flower_compile_vlan() argument
596 rule, extack); in nfp_flower_compile_flow_match()
607 rule); in nfp_flower_compile_flow_match()
615 rule); in nfp_flower_compile_flow_match()
623 rule); in nfp_flower_compile_flow_match()
631 rule); in nfp_flower_compile_flow_match()
643 (void *)msk, rule); in nfp_flower_compile_flow_match()
[all …]
/openbmc/linux/security/safesetid/
H A Dsecurityfs.c32 struct setid_rule *rule) in parse_policy_line() argument
53 if (rule->type == UID){ in parse_policy_line()
56 if (!uid_valid(rule->src_id.uid) || !uid_valid(rule->dst_id.uid)) in parse_policy_line()
61 if (!gid_valid(rule->src_id.gid) || !gid_valid(rule->dst_id.gid)) in parse_policy_line()
75 struct setid_rule *rule; in __release_ruleset() local
79 kfree(rule); in __release_ruleset()
91 hash_add(pol->rules, &rule->next, __kuid_val(rule->src_id.uid)); in insert_rule()
93 hash_add(pol->rules, &rule->next, __kgid_val(rule->src_id.gid)); in insert_rule()
176 if (!rule) { in handle_policy_update()
186 if (_setid_policy_lookup(pol, rule->src_id, rule->dst_id) == SIDPOL_ALLOWED) { in handle_policy_update()
[all …]
/openbmc/linux/drivers/pnp/
H A Dmanager.c23 unsigned char rule, in pnp_find_resource() argument
55 if (!rule->size) { in pnp_assign_port()
61 res->start = rule->min; in pnp_assign_port()
65 res->start += rule->align; in pnp_assign_port()
67 if (res->start > rule->max || !rule->align) { in pnp_assign_port()
70 (unsigned long long) rule->min, in pnp_assign_port()
106 if (!rule->size) { in pnp_assign_mem()
112 res->start = rule->min; in pnp_assign_mem()
116 res->start += rule->align; in pnp_assign_mem()
118 if (res->start > rule->max || !rule->align) { in pnp_assign_mem()
[all …]
/openbmc/qemu/authz/
H A Dlist.c37 QAuthZListFormat format = rule->has_format ? rule->format : in qauthz_list_is_allowed()
156 QAuthZListRule *rule; in qauthz_list_append_rule() local
161 rule->policy = policy; in qauthz_list_append_rule()
163 rule->format = format; in qauthz_list_append_rule()
164 rule->has_format = true; in qauthz_list_append_rule()
167 tmp->value = rule; in qauthz_list_append_rule()
191 QAuthZListRule *rule; in qauthz_list_insert_rule() local
196 rule->policy = policy; in qauthz_list_insert_rule()
198 rule->format = format; in qauthz_list_insert_rule()
202 tmp->value = rule; in qauthz_list_insert_rule()
[all …]
/openbmc/linux/include/net/
H A Dfib_rules.h53 struct fib_rule *rule; member
102 struct fib_rule *rule; member
107 refcount_inc(&rule->refcnt); in fib_rule_get()
112 if (refcount_dec_and_test(&rule->refcnt)) in fib_rule_put()
113 kfree_rcu(rule, rcu); in fib_rule_put()
120 return rule->l3mdev ? arg->table : rule->table; in fib_rule_get_table()
126 return rule->table; in fib_rule_get_table()
164 return rule->iifindex != LOOPBACK_IFINDEX && (rule->ip_proto || in fib_rule_requires_fldissect()
165 fib_rule_port_range_set(&rule->sport_range) || in fib_rule_requires_fldissect()
166 fib_rule_port_range_set(&rule->dport_range)); in fib_rule_requires_fldissect()
[all …]
/openbmc/linux/net/ipv6/
H A Dfib6_rules.c38 return fib_rule_matchall(rule); in fib6_rule_matchall()
43 if (!fib6_rule_matchall(rule) || rule->action != FR_ACT_TO_TBL || in fib6_rule_default()
44 rule->l3mdev) in fib6_rule_default()
46 if (rule->table != RT6_TABLE_LOCAL && rule->table != RT6_TABLE_MAIN) in fib6_rule_default()
163 struct net *net = rule->fr_net; in fib6_rule_action_alt()
168 switch (rule->action) { in fib6_rule_action_alt()
203 struct net *net = rule->fr_net; in __fib6_rule_action()
208 switch (rule->action) { in __fib6_rule_action()
297 if (rule->suppress_ifgroup != -1 && dev && dev->group == rule->suppress_ifgroup) in fib6_rule_suppress()
334 if (rule->ip_proto && (rule->ip_proto != fl6->flowi6_proto)) in fib6_rule_match()
[all …]
/openbmc/linux/kernel/
H A Dauditfilter.c266 if (rule->action != AUDIT_NEVER && rule->action != AUDIT_ALWAYS) in audit_to_entry_common()
276 entry->rule.flags = rule->flags & AUDIT_FILTER_PREPEND; in audit_to_entry_common()
278 entry->rule.action = rule->action; in audit_to_entry_common()
279 entry->rule.field_count = rule->field_count; in audit_to_entry_common()
282 entry->rule.mask[i] = rule->mask[i]; in audit_to_entry_common()
833 new = &entry->rule; in audit_dupe_rule()
916 if (!audit_compare_rule(&entry->rule, &e->rule)) { in audit_find_rule()
927 if (!audit_compare_rule(&entry->rule, &e->rule)) { in audit_find_rule()
1049 if (e->rule.watch) in audit_del_rule()
1052 if (e->rule.tree) in audit_del_rule()
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_client.h165 void vcap_free_rule(struct vcap_rule *rule);
167 int vcap_val_rule(struct vcap_rule *rule, u16 l3_proto);
169 int vcap_add_rule(struct vcap_rule *rule);
177 int vcap_mod_rule(struct vcap_rule *rule);
180 int vcap_set_rule_set_keyset(struct vcap_rule *rule,
183 int vcap_set_rule_set_actionset(struct vcap_rule *rule,
199 int vcap_rule_add_action_bit(struct vcap_rule *rule,
201 int vcap_rule_add_action_u32(struct vcap_rule *rule,
230 bool vcap_rule_find_keysets(struct vcap_rule *rule,
249 int vcap_filter_rule_keys(struct vcap_rule *rule,
[all …]
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_flower.c45 if (rule->re_arg.jump.valid) in prestera_flower_parse_goto_action()
53 rule->re_arg.jump.valid = 1; in prestera_flower_parse_goto_action()
56 rule->jump_ruleset = ruleset; in prestera_flower_parse_goto_action()
101 if (rule->re_arg.drop.valid) in prestera_flower_parse_actions()
117 rule->re_arg.police.rate = in prestera_flower_parse_actions()
365 return prestera_flower_parse_actions(block, rule, &f->rule->action, in prestera_flower_parse()
432 if (IS_ERR(rule)) { in prestera_flower_replace()
433 err = PTR_ERR(rule); in prestera_flower_replace()
474 if (rule) { in prestera_flower_destroy()
489 memset(&rule, 0, sizeof(rule)); in prestera_flower_tmplt_create()
[all …]
H A Dprestera_acl.c441 rule = kzalloc(sizeof(*rule), GFP_KERNEL); in prestera_acl_rule_create()
442 if (!rule) in prestera_acl_rule_create()
446 rule->cookie = cookie; in prestera_acl_rule_create()
451 return rule; in prestera_acl_rule_create()
467 kfree(rule); in prestera_acl_rule_destroy()
492 rule->re_key.prio = rule->priority; in prestera_acl_rule_add()
494 rule->re = prestera_acl_rule_entry_find(sw->acl, &rule->re_key); in prestera_acl_rule_add()
499 rule->re = prestera_acl_rule_entry_create(sw->acl, &rule->re_key, in prestera_acl_rule_add()
500 &rule->re_arg); in prestera_acl_rule_add()
522 rule->re = NULL; in prestera_acl_rule_add()
[all …]
/openbmc/bmcweb/http/
H A Drouting.hpp429 if (rule.size() > 2 && rule.back() == '/') in internalAdd()
431 trie.add(rule.substr(0, rule.size() - 1), in internalAdd()
472 if (rule) in validate()
479 rule->validate(); in validate()
480 internalAddRuleObject(rule->rule, rule.get()); in validate()
491 BaseRule* rule = nullptr; member
592 BMCWEB_LOG_DEBUG("Matched rule (upgrade) '{}'", rule.rule); in handleUpgrade()
597 req, asyncResp, rule, in handleUpgrade()
649 BaseRule& rule = *foundRoute.route.rule; in handle() local
652 BMCWEB_LOG_DEBUG("Matched rule '{}' {} / {}", rule.rule, in handle()
[all …]
/openbmc/linux/Documentation/networking/
H A Dtls-offload-reorder-good.svg1rule="nonzero"/></clipPath><g clip-path="url(#p.0)"><path fill="#000000" fill-opacity="0.0" d="m0 …
H A Dtls-offload-reorder-bad.svg1rule="nonzero"/></clipPath><g clip-path="url(#p.0)"><path fill="#000000" fill-opacity="0.0" d="m0 …
/openbmc/linux/security/apparmor/
H A Daudit.c211 struct aa_audit_rule *rule = vrule; in aa_audit_rule_free() local
213 if (rule) { in aa_audit_rule_free()
214 if (!IS_ERR(rule->label)) in aa_audit_rule_free()
215 aa_put_label(rule->label); in aa_audit_rule_free()
216 kfree(rule); in aa_audit_rule_free()
222 struct aa_audit_rule *rule; in aa_audit_rule_init() local
235 if (!rule) in aa_audit_rule_init()
241 if (IS_ERR(rule->label)) { in aa_audit_rule_init()
242 int err = PTR_ERR(rule->label); in aa_audit_rule_init()
243 aa_audit_rule_free(rule); in aa_audit_rule_init()
[all …]
/openbmc/u-boot/drivers/ddr/altera/
H A Dsdram_gen5.c184 memset(&rule, 0, sizeof(rule)); in sdram_set_protection_config()
187 rule.rule = rules; in sdram_set_protection_config()
188 sdram_set_rule(&rule); in sdram_set_protection_config()
194 rule.lo_prot_id = 0x0; in sdram_set_protection_config()
196 rule.portmask = 0x3FF; in sdram_set_protection_config()
197 rule.security = 0x3; in sdram_set_protection_config()
198 rule.result = 0; in sdram_set_protection_config()
199 rule.valid = 1; in sdram_set_protection_config()
200 rule.rule = 0; in sdram_set_protection_config()
203 sdram_set_rule(&rule); in sdram_set_protection_config()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_rule.c1046 dr_rule_destroy_rule_nic(rule, &rule->rx); in dr_rule_destroy_rule_fdb()
1047 dr_rule_destroy_rule_nic(rule, &rule->tx); in dr_rule_destroy_rule_fdb()
1059 dr_rule_destroy_rule_nic(rule, &rule->rx); in dr_rule_destroy_rule()
1062 dr_rule_destroy_rule_nic(rule, &rule->tx); in dr_rule_destroy_rule()
1072 kfree(rule); in dr_rule_destroy_rule()
1269 ret = dr_rule_create_rule_nic(rule, &rule->rx, param, in dr_rule_create_rule_fdb()
1282 dr_rule_destroy_rule_nic(rule, &rule->rx); in dr_rule_create_rule_fdb()
1301 rule = kzalloc(sizeof(*rule), GFP_KERNEL); in dr_rule_create_rule()
1302 if (!rule) in dr_rule_create_rule()
1316 ret = dr_rule_create_rule_nic(rule, &rule->rx, &param, in dr_rule_create_rule()
[all …]
/openbmc/linux/net/netfilter/
H A Dnf_tables_core.c46 const struct nft_rule_dp *rule, in __nft_trace_packet() argument
61 const struct nft_rule_dp *rule, in nft_trace_packet() argument
113 const struct nft_rule_dp *rule, in __nft_trace_verdict() argument
203 const struct nft_rule_dp *rule; member
243 #define nft_rule_expr_first(rule) (struct nft_expr *)&rule->data[0] argument
245 #define nft_rule_expr_last(rule) (struct nft_expr *)&rule->data[rule->dlen] argument
248 for ((expr) = nft_rule_expr_first(rule), (last) = nft_rule_expr_last(rule); \
258 const struct nft_rule_dp *rule; in nft_do_chain() local
278 for (; !rule->is_last ; rule = nft_rule_next(rule)) { in nft_do_chain()
321 jumpstack[stackptr].rule = nft_rule_next(rule); in nft_do_chain()
[all …]
/openbmc/phosphor-power/phosphor-regulators/test/
H A Drule_tests.cpp45 Rule rule("set_voltage_rule", std::move(actions)); in TEST() local
46 EXPECT_EQ(rule.getID(), "set_voltage_rule"); in TEST()
47 EXPECT_EQ(rule.getActions().size(), 2); in TEST()
67 Rule rule("set_voltage_rule", std::move(actions)); in TEST() local
68 rule.execute(env); in TEST()
93 EXPECT_EQ(rule.execute(env), false); in TEST()
111 Rule rule("set_voltage_rule", std::move(actions)); in TEST() local
112 EXPECT_EQ(rule.getActions().size(), 2); in TEST()
113 EXPECT_EQ(rule.getActions()[0].get(), action1); in TEST()
114 EXPECT_EQ(rule.getActions()[1].get(), action2); in TEST()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtwfw.c18 struct rule { struct
25 __type(value, struct rule); argument
47 struct rule* rule = bpf_map_lookup_elem(&rules, &key); in twfw_verifier() local
48 if (!rule) in twfw_verifier()
51 if (rule && rule->seqnum < TWFW_MAX_TIERS) { in twfw_verifier()
53 unsigned long mask = tier->mask[rule->seqnum / 64]; in twfw_verifier()

12345678910>>...28