git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
net
/
ipv4
/
ipvs
/
ip_vs_dh.c
diff --git
a/net/ipv4/ipvs/ip_vs_dh.c
b/net/ipv4/ipvs/ip_vs_dh.c
index
9fee19c
..
502111f
100644
(file)
--- a/
net/ipv4/ipvs/ip_vs_dh.c
+++ b/
net/ipv4/ipvs/ip_vs_dh.c
@@
-66,7
+66,7
@@
struct ip_vs_dh_bucket {
/*
* Returns hash value for IPVS DH entry
*/
/*
* Returns hash value for IPVS DH entry
*/
-static inline unsigned ip_vs_dh_hashkey(__
u
32 addr)
+static inline unsigned ip_vs_dh_hashkey(__
be
32 addr)
{
return (ntohl(addr)*2654435761UL) & IP_VS_DH_TAB_MASK;
}
{
return (ntohl(addr)*2654435761UL) & IP_VS_DH_TAB_MASK;
}
@@
-76,7
+76,7
@@
static inline unsigned ip_vs_dh_hashkey(__u32 addr)
* Get ip_vs_dest associated with supplied parameters.
*/
static inline struct ip_vs_dest *
* Get ip_vs_dest associated with supplied parameters.
*/
static inline struct ip_vs_dest *
-ip_vs_dh_get(struct ip_vs_dh_bucket *tbl, __
u
32 addr)
+ip_vs_dh_get(struct ip_vs_dh_bucket *tbl, __
be
32 addr)
{
return (tbl[ip_vs_dh_hashkey(addr)]).dest;
}
{
return (tbl[ip_vs_dh_hashkey(addr)]).dest;
}