summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2007-02-10 01:25:52 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2007-02-11 08:20:43 +0100
commit0c195c3fc4e95a06b0c0017506f074c94af99c35 (patch)
treedbe840f236a5c67a6ffd02f70ce62102f4a86345 /include
parent[IPV6]: Convert ipv6 route to use the new dst_entry 'next' pointer (diff)
downloadlinux-0c195c3fc4e95a06b0c0017506f074c94af99c35.tar.xz
linux-0c195c3fc4e95a06b0c0017506f074c94af99c35.zip
[DECNET]: Convert decnet route to use the new dst_entry 'next' pointer
This patch removes the next pointer from 'struct dn_route.u' union, and renames u.rt_next to u.dst.dn_next. It also moves 'struct flowi' right after 'struct dst_entry' to prepare speedup lookups. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/dn_route.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/dn_route.h b/include/net/dn_route.h
index 76f957e258b0..a566944c4962 100644
--- a/include/net/dn_route.h
+++ b/include/net/dn_route.h
@@ -68,9 +68,10 @@ extern void dn_rt_cache_flush(int delay);
struct dn_route {
union {
struct dst_entry dst;
- struct dn_route *rt_next;
} u;
+ struct flowi fl;
+
__le16 rt_saddr;
__le16 rt_daddr;
__le16 rt_gateway;
@@ -80,8 +81,6 @@ struct dn_route {
unsigned rt_flags;
unsigned rt_type;
-
- struct flowi fl;
};
extern void dn_route_init(void);