ipv6: minor fib6 cleanups like type safety, bool conversion, inline removal
Also renamed struct fib6_walker_t to fib6_walker and enum fib_walk_state_t to fib6_walk_state as recommended by Cong Wang. Cc: Cong Wang <cwang@twopensource.com> Cc: YOSHIFUJI Hideaki <hideaki@yoshifuji.org> Cc: Martin Lau <kafai@fb.com> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
1ff0dc9499
commit
94b2cfe02b
+14
-4
@@ -202,15 +202,25 @@ static inline void ip6_rt_put(struct rt6_info *rt)
|
||||
dst_release(&rt->dst);
|
||||
}
|
||||
|
||||
struct fib6_walker_t {
|
||||
enum fib6_walk_state {
|
||||
#ifdef CONFIG_IPV6_SUBTREES
|
||||
FWS_S,
|
||||
#endif
|
||||
FWS_L,
|
||||
FWS_R,
|
||||
FWS_C,
|
||||
FWS_U
|
||||
};
|
||||
|
||||
struct fib6_walker {
|
||||
struct list_head lh;
|
||||
struct fib6_node *root, *node;
|
||||
struct rt6_info *leaf;
|
||||
unsigned char state;
|
||||
unsigned char prune;
|
||||
enum fib6_walk_state state;
|
||||
bool prune;
|
||||
unsigned int skip;
|
||||
unsigned int count;
|
||||
int (*func)(struct fib6_walker_t *);
|
||||
int (*func)(struct fib6_walker *);
|
||||
void *args;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user