Lines Matching refs:rule
53 struct fib_rule *rule;
102 struct fib_rule *rule;
105 static inline void fib_rule_get(struct fib_rule *rule)
107 refcount_inc(&rule->refcnt);
110 static inline void fib_rule_put(struct fib_rule *rule)
112 if (refcount_dec_and_test(&rule->refcnt))
113 kfree_rcu(rule, rcu);
117 static inline u32 fib_rule_get_table(struct fib_rule *rule,
120 return rule->l3mdev ? arg->table : rule->table;
123 static inline u32 fib_rule_get_table(struct fib_rule *rule,
126 return rule->table;
162 static inline bool fib_rule_requires_fldissect(struct fib_rule *rule)
164 return rule->iifindex != LOOPBACK_IFINDEX && (rule->ip_proto ||
165 fib_rule_port_range_set(&rule->sport_range) ||
166 fib_rule_port_range_set(&rule->dport_range));
177 bool fib_rule_matchall(const struct fib_rule *rule);
187 INDIRECT_CALLABLE_DECLARE(int fib6_rule_match(struct fib_rule *rule,
189 INDIRECT_CALLABLE_DECLARE(int fib4_rule_match(struct fib_rule *rule,
192 INDIRECT_CALLABLE_DECLARE(int fib6_rule_action(struct fib_rule *rule,
195 INDIRECT_CALLABLE_DECLARE(int fib4_rule_action(struct fib_rule *rule,
199 INDIRECT_CALLABLE_DECLARE(bool fib6_rule_suppress(struct fib_rule *rule,
202 INDIRECT_CALLABLE_DECLARE(bool fib4_rule_suppress(struct fib_rule *rule,