diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-09-28 17:29:52 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-28 21:03:04 -0400 |
commit | 014d730d56b559eacb11e91969a1f41c3feb36f9 (patch) | |
tree | d8c3a08108f435879b4d436c7b3c4a726d31c6af /net/ipv4/ipvs/ip_vs_lblc.c | |
parent | d4263cde88d3fee2af0aac8836bb785cdb6b06c0 (diff) |
[IPVS]: ipvs annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipvs/ip_vs_lblc.c')
-rw-r--r-- | net/ipv4/ipvs/ip_vs_lblc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/ipvs/ip_vs_lblc.c b/net/ipv4/ipvs/ip_vs_lblc.c index 6e5cb92a5c83..524751e031de 100644 --- a/net/ipv4/ipvs/ip_vs_lblc.c +++ b/net/ipv4/ipvs/ip_vs_lblc.c | |||
@@ -87,7 +87,7 @@ static int sysctl_ip_vs_lblc_expiration = 24*60*60*HZ; | |||
87 | */ | 87 | */ |
88 | struct ip_vs_lblc_entry { | 88 | struct ip_vs_lblc_entry { |
89 | struct list_head list; | 89 | struct list_head list; |
90 | __u32 addr; /* destination IP address */ | 90 | __be32 addr; /* destination IP address */ |
91 | struct ip_vs_dest *dest; /* real server (cache) */ | 91 | struct ip_vs_dest *dest; /* real server (cache) */ |
92 | unsigned long lastuse; /* last used time */ | 92 | unsigned long lastuse; /* last used time */ |
93 | }; | 93 | }; |
@@ -160,7 +160,7 @@ static struct ctl_table_header * sysctl_header; | |||
160 | * IP address to a server. | 160 | * IP address to a server. |
161 | */ | 161 | */ |
162 | static inline struct ip_vs_lblc_entry * | 162 | static inline struct ip_vs_lblc_entry * |
163 | ip_vs_lblc_new(__u32 daddr, struct ip_vs_dest *dest) | 163 | ip_vs_lblc_new(__be32 daddr, struct ip_vs_dest *dest) |
164 | { | 164 | { |
165 | struct ip_vs_lblc_entry *en; | 165 | struct ip_vs_lblc_entry *en; |
166 | 166 | ||
@@ -195,7 +195,7 @@ static inline void ip_vs_lblc_free(struct ip_vs_lblc_entry *en) | |||
195 | /* | 195 | /* |
196 | * Returns hash value for IPVS LBLC entry | 196 | * Returns hash value for IPVS LBLC entry |
197 | */ | 197 | */ |
198 | static inline unsigned ip_vs_lblc_hashkey(__u32 addr) | 198 | static inline unsigned ip_vs_lblc_hashkey(__be32 addr) |
199 | { | 199 | { |
200 | return (ntohl(addr)*2654435761UL) & IP_VS_LBLC_TAB_MASK; | 200 | return (ntohl(addr)*2654435761UL) & IP_VS_LBLC_TAB_MASK; |
201 | } | 201 | } |
@@ -234,7 +234,7 @@ ip_vs_lblc_hash(struct ip_vs_lblc_table *tbl, struct ip_vs_lblc_entry *en) | |||
234 | * Get ip_vs_lblc_entry associated with supplied parameters. | 234 | * Get ip_vs_lblc_entry associated with supplied parameters. |
235 | */ | 235 | */ |
236 | static inline struct ip_vs_lblc_entry * | 236 | static inline struct ip_vs_lblc_entry * |
237 | ip_vs_lblc_get(struct ip_vs_lblc_table *tbl, __u32 addr) | 237 | ip_vs_lblc_get(struct ip_vs_lblc_table *tbl, __be32 addr) |
238 | { | 238 | { |
239 | unsigned hash; | 239 | unsigned hash; |
240 | struct ip_vs_lblc_entry *en; | 240 | struct ip_vs_lblc_entry *en; |