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
/
tcp_lp.c
diff --git
a/net/ipv4/tcp_lp.c
b/net/ipv4/tcp_lp.c
index
649ebae
..
f0ebaf0
100644
(file)
--- a/
net/ipv4/tcp_lp.c
+++ b/
net/ipv4/tcp_lp.c
@@
-31,8
+31,6
@@
* Hung Hing Lun, Mike <hlhung3i@gmail.com>
* SourceForge project page:
* http://tcp-lp-mod.sourceforge.net/
* Hung Hing Lun, Mike <hlhung3i@gmail.com>
* SourceForge project page:
* http://tcp-lp-mod.sourceforge.net/
- *
- * Version: $Id: tcp_lp.c,v 1.24 2006/09/05 20:22:53 hswong3i Exp $
*/
#include <linux/module.h>
*/
#include <linux/module.h>
@@
-164,7
+162,7
@@
static u32 tcp_lp_remote_hz_estimator(struct sock *sk)
out:
/* record time for successful remote HZ calc */
out:
/* record time for successful remote HZ calc */
- if (
rhz
> 0)
+ if (
(rhz >> 6)
> 0)
lp->flag |= LP_VALID_RHZ;
else
lp->flag &= ~LP_VALID_RHZ;
lp->flag |= LP_VALID_RHZ;
else
lp->flag &= ~LP_VALID_RHZ;
@@
-327,7
+325,7
@@
static struct tcp_congestion_ops tcp_lp = {
static int __init tcp_lp_register(void)
{
static int __init tcp_lp_register(void)
{
- BUG_ON(sizeof(struct lp) > ICSK_CA_PRIV_SIZE);
+ BU
ILD_BU
G_ON(sizeof(struct lp) > ICSK_CA_PRIV_SIZE);
return tcp_register_congestion_control(&tcp_lp);
}
return tcp_register_congestion_control(&tcp_lp);
}