diff options
Diffstat (limited to 'include/net/dst.h')
-rw-r--r-- | include/net/dst.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/net/dst.h b/include/net/dst.h index e12ddfb9eb16..0dd7ccbc0dd5 100644 --- a/include/net/dst.h +++ b/include/net/dst.h | |||
@@ -38,7 +38,6 @@ struct dst_entry { | |||
38 | unsigned long expires; | 38 | unsigned long expires; |
39 | struct dst_entry *path; | 39 | struct dst_entry *path; |
40 | struct neighbour *neighbour; | 40 | struct neighbour *neighbour; |
41 | struct hh_cache *hh; | ||
42 | #ifdef CONFIG_XFRM | 41 | #ifdef CONFIG_XFRM |
43 | struct xfrm_state *xfrm; | 42 | struct xfrm_state *xfrm; |
44 | #else | 43 | #else |
@@ -47,6 +46,14 @@ struct dst_entry { | |||
47 | int (*input)(struct sk_buff*); | 46 | int (*input)(struct sk_buff*); |
48 | int (*output)(struct sk_buff*); | 47 | int (*output)(struct sk_buff*); |
49 | 48 | ||
49 | int flags; | ||
50 | #define DST_HOST 0x0001 | ||
51 | #define DST_NOXFRM 0x0002 | ||
52 | #define DST_NOPOLICY 0x0004 | ||
53 | #define DST_NOHASH 0x0008 | ||
54 | #define DST_NOCACHE 0x0010 | ||
55 | #define DST_NOCOUNT 0x0020 | ||
56 | |||
50 | short error; | 57 | short error; |
51 | short obsolete; | 58 | short obsolete; |
52 | unsigned short header_len; /* more space at head required */ | 59 | unsigned short header_len; /* more space at head required */ |
@@ -62,7 +69,7 @@ struct dst_entry { | |||
62 | * (L1_CACHE_SIZE would be too much) | 69 | * (L1_CACHE_SIZE would be too much) |
63 | */ | 70 | */ |
64 | #ifdef CONFIG_64BIT | 71 | #ifdef CONFIG_64BIT |
65 | long __pad_to_align_refcnt[1]; | 72 | long __pad_to_align_refcnt[2]; |
66 | #endif | 73 | #endif |
67 | /* | 74 | /* |
68 | * __refcnt wants to be on a different cache line from | 75 | * __refcnt wants to be on a different cache line from |
@@ -71,13 +78,6 @@ struct dst_entry { | |||
71 | atomic_t __refcnt; /* client references */ | 78 | atomic_t __refcnt; /* client references */ |
72 | int __use; | 79 | int __use; |
73 | unsigned long lastuse; | 80 | unsigned long lastuse; |
74 | int flags; | ||
75 | #define DST_HOST 0x0001 | ||
76 | #define DST_NOXFRM 0x0002 | ||
77 | #define DST_NOPOLICY 0x0004 | ||
78 | #define DST_NOHASH 0x0008 | ||
79 | #define DST_NOCACHE 0x0010 | ||
80 | #define DST_NOCOUNT 0x0020 | ||
81 | union { | 81 | union { |
82 | struct dst_entry *next; | 82 | struct dst_entry *next; |
83 | struct rtable __rcu *rt_next; | 83 | struct rtable __rcu *rt_next; |