Lines Matching defs:rule
57 struct fib_rule *rule;
106 struct fib_rule *rule;
109 static inline void fib_rule_get(struct fib_rule *rule)
111 refcount_inc(&rule->refcnt);
114 static inline bool fib_rule_get_safe(struct fib_rule *rule)
116 return refcount_inc_not_zero(&rule->refcnt);
119 static inline void fib_rule_put(struct fib_rule *rule)
121 if (refcount_dec_and_test(&rule->refcnt))
122 kfree_rcu(rule, rcu);
126 static inline u32 fib_rule_get_table(struct fib_rule *rule,
129 return rule->l3mdev ? arg->table : rule->table;
132 static inline u32 fib_rule_get_table(struct fib_rule *rule,
135 return rule->table;
188 static inline bool fib_rule_requires_fldissect(struct fib_rule *rule)
190 return rule->iifindex != LOOPBACK_IFINDEX && (rule->ip_proto ||
191 fib_rule_port_range_set(&rule->sport_range) ||
192 fib_rule_port_range_set(&rule->dport_range));
202 bool fib_rule_matchall(const struct fib_rule *rule);
212 INDIRECT_CALLABLE_DECLARE(int fib6_rule_match(struct fib_rule *rule,
214 INDIRECT_CALLABLE_DECLARE(int fib4_rule_match(struct fib_rule *rule,
217 INDIRECT_CALLABLE_DECLARE(int fib6_rule_action(struct fib_rule *rule,
220 INDIRECT_CALLABLE_DECLARE(int fib4_rule_action(struct fib_rule *rule,
224 INDIRECT_CALLABLE_DECLARE(bool fib6_rule_suppress(struct fib_rule *rule,
227 INDIRECT_CALLABLE_DECLARE(bool fib4_rule_suppress(struct fib_rule *rule,