Lines Matching refs:rule
52 struct fib_rule *rule; member
102 struct fib_rule *rule; member
124 static inline void fib_rule_get(struct fib_rule *rule) in fib_rule_get() argument
126 refcount_inc(&rule->refcnt); in fib_rule_get()
129 static inline void fib_rule_put(struct fib_rule *rule) in fib_rule_put() argument
131 if (refcount_dec_and_test(&rule->refcnt)) in fib_rule_put()
132 kfree_rcu(rule, rcu); in fib_rule_put()
136 static inline u32 fib_rule_get_table(struct fib_rule *rule, in fib_rule_get_table() argument
139 return rule->l3mdev ? arg->table : rule->table; in fib_rule_get_table()
142 static inline u32 fib_rule_get_table(struct fib_rule *rule, in fib_rule_get_table() argument
145 return rule->table; in fib_rule_get_table()
181 static inline bool fib_rule_requires_fldissect(struct fib_rule *rule) in fib_rule_requires_fldissect() argument
183 return rule->ip_proto || in fib_rule_requires_fldissect()
184 fib_rule_port_range_set(&rule->sport_range) || in fib_rule_requires_fldissect()
185 fib_rule_port_range_set(&rule->dport_range); in fib_rule_requires_fldissect()
196 bool fib_rule_matchall(const struct fib_rule *rule);