Searched defs:rule (Results 1 - 13 of 13) sorted by relevance

/net/ceph/crush/
H A Dcrush.c126 void crush_destroy_rule(struct crush_rule *rule) argument
128 kfree(rule);
H A Dmapper.c628 * crush_do_rule - calculate a mapping with the given input and rule
630 * @ruleno: the rule id
653 struct crush_rule *rule; local
677 rule = map->rules[ruleno];
682 for (step = 0; step < rule->len; step++) {
684 struct crush_rule_step *curstep = &rule->steps[step];
/net/netfilter/
H A Dnf_tables_core.c65 const struct nft_rule *rule; member in struct:nft_jumpstack
76 [NFT_TRACE_RULE] = "rule",
107 const struct nft_rule *rule; local
122 rule = list_entry(&chain->rules, struct nft_rule, list);
125 list_for_each_entry_continue_rcu(rule, &chain->rules, list) {
127 /* This rule is not active, skip. */
128 if (unlikely(rule->genmask & (1 << gencursor)))
133 nft_rule_for_each_expr(expr, last, rule) {
173 jumpstack[stackptr].rule = rule;
[all...]
H A Dnf_tables_api.c199 nft_rule_is_active(struct net *net, const struct nft_rule *rule) argument
201 return (rule->genmask & (1 << net->nft.gencursor)) == 0;
210 nft_rule_is_active_next(struct net *net, const struct nft_rule *rule) argument
212 return (rule->genmask & (1 << gencursor_next(net))) == 0;
216 nft_rule_activate_next(struct net *net, struct nft_rule *rule) argument
219 rule->genmask = (1 << net->nft.gencursor);
223 nft_rule_deactivate_next(struct net *net, struct nft_rule *rule) argument
225 rule->genmask = (1 << gencursor_next(net));
228 static inline void nft_rule_clear(struct net *net, struct nft_rule *rule) argument
230 rule
234 nf_tables_delrule_deactivate(struct nft_ctx *ctx, struct nft_rule *rule) argument
245 nft_trans_rule_add(struct nft_ctx *ctx, int msg_type, struct nft_rule *rule) argument
260 nft_delrule(struct nft_ctx *ctx, struct nft_rule *rule) argument
280 struct nft_rule *rule; local
1619 struct nft_rule *rule; local
1651 nf_tables_fill_rule_info(struct sk_buff *skb, struct net *net, u32 portid, u32 seq, int event, u32 flags, int family, const struct nft_table *table, const struct nft_chain *chain, const struct nft_rule *rule) argument
1713 nf_tables_rule_notify(const struct nft_ctx *ctx, const struct nft_rule *rule, int event) argument
1754 const struct nft_rule *rule; local
1805 const struct nft_rule *rule; local
1855 nf_tables_rule_destroy(const struct nft_ctx *ctx, struct nft_rule *rule) argument
1885 struct nft_rule *rule, *old_rule = NULL; local
2046 struct nft_rule *rule; local
3785 const struct nft_rule *rule; local
[all...]
/net/decnet/
H A Ddn_rules.c62 res->r = arg.rule;
67 static int dn_fib_rule_action(struct fib_rule *rule, struct flowi *flp, argument
74 switch(rule->action) {
92 tbl = dn_fib_get_table(rule->table, 0);
107 static int dn_fib_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) argument
109 struct dn_fib_rule *r = (struct dn_fib_rule *)rule;
121 static int dn_fib_rule_configure(struct fib_rule *rule, struct sk_buff *skb, argument
126 struct dn_fib_rule *r = (struct dn_fib_rule *)rule;
131 if (rule->table == RT_TABLE_UNSPEC) {
132 if (rule
160 dn_fib_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, struct nlattr **tb) argument
198 dn_fib_rule_fill(struct fib_rule *rule, struct sk_buff *skb, struct fib_rule_hdr *frh) argument
[all...]
/net/ipv4/
H A Dfib_rules.c60 if (arg.rule)
61 res->tclassid = ((struct fib4_rule *)arg.rule)->tclassid;
73 static int fib4_rule_action(struct fib_rule *rule, struct flowi *flp, argument
79 switch (rule->action) {
97 tbl = fib_get_table(rule->fr_net, rule->table);
108 static bool fib4_rule_suppress(struct fib_rule *rule, struct fib_lookup_arg *arg) argument
119 if (result->prefixlen <= rule->suppress_prefixlen)
125 if (rule->suppress_ifgroup != -1 && dev && dev->group == rule
136 fib4_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) argument
168 fib4_rule_configure(struct fib_rule *rule, struct sk_buff *skb, struct fib_rule_hdr *frh, struct nlattr **tb) argument
219 fib4_rule_delete(struct fib_rule *rule) argument
231 fib4_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, struct nlattr **tb) argument
259 fib4_rule_fill(struct fib_rule *rule, struct sk_buff *skb, struct fib_rule_hdr *frh) argument
284 fib4_rule_nlmsg_payload(struct fib_rule *rule) argument
[all...]
H A Dipmr.c175 static int ipmr_rule_action(struct fib_rule *rule, struct flowi *flp, argument
181 switch (rule->action) {
193 mrt = ipmr_get_table(rule->fr_net, rule->table);
200 static int ipmr_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) argument
209 static int ipmr_rule_configure(struct fib_rule *rule, struct sk_buff *skb, argument
215 static int ipmr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, argument
221 static int ipmr_rule_fill(struct fib_rule *rule, struct sk_buff *skb, argument
/net/ipv6/
H A Dfib6_rules.c50 static int fib6_rule_action(struct fib_rule *rule, struct flowi *flp, argument
56 struct net *net = rule->fr_net;
60 switch (rule->action) {
78 table = fib6_get_table(net, rule->table);
86 struct fib6_rule *r = (struct fib6_rule *)rule;
90 * we check the result if it meets requirement of the rule.
92 if ((rule->flags & FIB_RULE_FIND_SADDR) &&
122 static bool fib6_rule_suppress(struct fib_rule *rule, struct fib_lookup_arg *arg) argument
133 if (rt->rt6i_dst.plen <= rule->suppress_prefixlen)
139 if (rule
149 fib6_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) argument
182 fib6_rule_configure(struct fib_rule *rule, struct sk_buff *skb, struct fib_rule_hdr *frh, struct nlattr **tb) argument
217 fib6_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, struct nlattr **tb) argument
242 fib6_rule_fill(struct fib_rule *rule, struct sk_buff *skb, struct fib_rule_hdr *frh) argument
269 fib6_rule_nlmsg_payload(struct fib_rule *rule) argument
[all...]
H A Dip6mr.c159 static int ip6mr_rule_action(struct fib_rule *rule, struct flowi *flp, argument
165 switch (rule->action) {
177 mrt = ip6mr_get_table(rule->fr_net, rule->table);
184 static int ip6mr_rule_match(struct fib_rule *rule, struct flowi *flp, int flags) argument
193 static int ip6mr_rule_configure(struct fib_rule *rule, struct sk_buff *skb, argument
199 static int ip6mr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, argument
205 static int ip6mr_rule_fill(struct fib_rule *rule, struct sk_buff *skb, argument
H A Daddrconf.c1184 int rule; member in struct:ipv6_saddr_score
1223 if (i <= score->rule) {
1345 score->rule = i;
1385 score->rule = -1;
1448 scores[hiscore_idx].rule = -1;
/net/core/
H A Dfib_rules.c51 struct fib_rule *rule; local
56 rule = list_entry(pos->next, struct fib_rule, list);
57 if (rule->pref)
58 return rule->pref - 1;
66 static void notify_rule_change(int event, struct fib_rule *rule,
155 struct fib_rule *rule, *tmp; local
157 list_for_each_entry_safe(rule, tmp, &ops->rules_list, list) {
158 list_del_rcu(&rule->list);
160 ops->delete(rule);
161 fib_rule_put(rule);
197 fib_uid_range_match(struct flowi *fl, struct fib_rule *rule) argument
204 fib_rule_match(struct fib_rule *rule, struct fib_rules_ops *ops, struct flowi *fl, int flags) argument
229 struct fib_rule *rule; local
302 struct fib_rule *rule, *r, *last = NULL; local
473 struct fib_rule *rule, *tmp; local
577 fib_rule_nlmsg_size(struct fib_rules_ops *ops, struct fib_rule *rule) argument
598 fib_nl_fill_rule(struct sk_buff *skb, struct fib_rule *rule, u32 pid, u32 seq, int type, int flags, struct fib_rules_ops *ops) argument
672 struct fib_rule *rule; local
727 notify_rule_change(int event, struct fib_rule *rule, struct fib_rules_ops *ops, struct nlmsghdr *nlh, u32 pid) argument
757 struct fib_rule *rule; local
771 struct fib_rule *rule; local
[all...]
/net/wireless/
H A Dreg.c577 const struct ieee80211_reg_rule *rule)
579 const struct ieee80211_freq_range *freq_range = &rule->freq_range;
585 if (rule == &rd->reg_rules[idx])
607 freq_range = &rule->freq_range;
625 /* Sanity check on a regulatory rule */
626 static bool is_valid_reg_rule(const struct ieee80211_reg_rule *rule) argument
628 const struct ieee80211_freq_range *freq_range = &rule->freq_range;
683 * @freq_range: frequency rule we want to query
686 * This lets us know if a specific frequency rule is or is not relevant to
689 * however it is safe for now to assume that a frequency rule shoul
576 reg_get_max_bandwidth(const struct ieee80211_regdomain *rd, const struct ieee80211_reg_rule *rule) argument
830 add_rule(struct ieee80211_reg_rule *rule, struct ieee80211_reg_rule *reg_rules, u32 *n_rules) argument
[all...]
H A Dnl80211.c452 /* policy for coalesce rule attributes */
1095 struct nl80211_coalesce_rule_support rule; local
1100 rule.max_rules = rdev->wiphy.coalesce->n_rules;
1101 rule.max_delay = rdev->wiphy.coalesce->max_delay;
1102 rule.pat.max_patterns = rdev->wiphy.coalesce->n_patterns;
1103 rule.pat.min_pattern_len = rdev->wiphy.coalesce->pattern_min_len;
1104 rule.pat.max_pattern_len = rdev->wiphy.coalesce->pattern_max_len;
1105 rule.pat.max_pkt_offset = rdev->wiphy.coalesce->max_pkt_offset;
1107 if (nla_put(msg, NL80211_ATTR_COALESCE_RULE, sizeof(rule), &rule))
8720 struct cfg80211_coalesce_rules *rule; local
8804 struct cfg80211_coalesce_rules *rule; local
8820 nl80211_parse_coalesce_rule(struct cfg80211_registered_device *rdev, struct nlattr *rule, struct cfg80211_coalesce_rules *new_rule) argument
8916 struct nlattr *rule; local
[all...]

Completed in 200 milliseconds