Lines Matching full:rule
57 struct fib_rule *rule; member
106 struct fib_rule *rule; member
109 static inline void fib_rule_get(struct fib_rule *rule) in fib_rule_get() argument
111 refcount_inc(&rule->refcnt); in fib_rule_get()
114 static inline void fib_rule_put(struct fib_rule *rule) in fib_rule_put() argument
116 if (refcount_dec_and_test(&rule->refcnt)) in fib_rule_put()
117 kfree_rcu(rule, rcu); in fib_rule_put()
121 static inline u32 fib_rule_get_table(struct fib_rule *rule, in fib_rule_get_table() argument
124 return rule->l3mdev ? arg->table : rule->table; in fib_rule_get_table()
127 static inline u32 fib_rule_get_table(struct fib_rule *rule, in fib_rule_get_table() argument
130 return rule->table; in fib_rule_get_table()
183 static inline bool fib_rule_requires_fldissect(struct fib_rule *rule) in fib_rule_requires_fldissect() argument
185 return rule->iifindex != LOOPBACK_IFINDEX && (rule->ip_proto || in fib_rule_requires_fldissect()
186 fib_rule_port_range_set(&rule->sport_range) || in fib_rule_requires_fldissect()
187 fib_rule_port_range_set(&rule->dport_range)); in fib_rule_requires_fldissect()
197 bool fib_rule_matchall(const struct fib_rule *rule);
207 INDIRECT_CALLABLE_DECLARE(int fib6_rule_match(struct fib_rule *rule,
209 INDIRECT_CALLABLE_DECLARE(int fib4_rule_match(struct fib_rule *rule,
212 INDIRECT_CALLABLE_DECLARE(int fib6_rule_action(struct fib_rule *rule,
215 INDIRECT_CALLABLE_DECLARE(int fib4_rule_action(struct fib_rule *rule,
219 INDIRECT_CALLABLE_DECLARE(bool fib6_rule_suppress(struct fib_rule *rule,
222 INDIRECT_CALLABLE_DECLARE(bool fib4_rule_suppress(struct fib_rule *rule,