diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-17 17:44:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-20 16:40:02 -0400 |
commit | 9917e1e8762745191eba5a3bf2040278cbddbee1 (patch) | |
tree | 9c538b6598b005e91b08b37e91dcb6638c26c4a0 /include/net/route.h | |
parent | 4fd551d7bed93af60af61c5a324b8f5dff37953a (diff) |
ipv4: Turn rt->rt_route_iif into rt->rt_is_input.
That is this value's only use, as a boolean to indicate whether
a route is an input route or not.
So implement it that way, using a u16 gap present in the struct
already.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/route.h')
-rw-r--r-- | include/net/route.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/route.h b/include/net/route.h index e789a92fd602..4bafe0bfe829 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -47,8 +47,8 @@ struct rtable { | |||
47 | int rt_genid; | 47 | int rt_genid; |
48 | unsigned int rt_flags; | 48 | unsigned int rt_flags; |
49 | __u16 rt_type; | 49 | __u16 rt_type; |
50 | __u16 rt_is_input; | ||
50 | 51 | ||
51 | int rt_route_iif; | ||
52 | int rt_iif; | 52 | int rt_iif; |
53 | 53 | ||
54 | /* Info on neighbour */ | 54 | /* Info on neighbour */ |
@@ -61,12 +61,12 @@ struct rtable { | |||
61 | 61 | ||
62 | static inline bool rt_is_input_route(const struct rtable *rt) | 62 | static inline bool rt_is_input_route(const struct rtable *rt) |
63 | { | 63 | { |
64 | return rt->rt_route_iif != 0; | 64 | return rt->rt_is_input != 0; |
65 | } | 65 | } |
66 | 66 | ||
67 | static inline bool rt_is_output_route(const struct rtable *rt) | 67 | static inline bool rt_is_output_route(const struct rtable *rt) |
68 | { | 68 | { |
69 | return rt->rt_route_iif == 0; | 69 | return rt->rt_is_input == 0; |
70 | } | 70 | } |
71 | 71 | ||
72 | static inline __be32 rt_nexthop(const struct rtable *rt, __be32 daddr) | 72 | static inline __be32 rt_nexthop(const struct rtable *rt, __be32 daddr) |