From: Ilpo Järvinen Date: Mon, 15 Oct 2007 19:59:43 +0000 (-0700) Subject: [TCP]: Make snd_cwnd_cnt 32-bit X-Git-Tag: v2.6.24-rc1~1277^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f78a1b389288d8327db5a0f4526935b0da1d0967;p=platform%2Fkernel%2Flinux-3.10.git [TCP]: Make snd_cwnd_cnt 32-bit Very little point of having 32-bit snd_cnwd if this is not 32-bit as well, as a number of snd_cwnd incrementation formulas assume that snd_cwnd_cnt can be at least as large as snd_cwnd. Whether 32-bit is useful was discussed when e0ef57cc56c3c96 was made: http://marc.info/?l=linux-netdev&m=117218144409825&w=2 Signed-off-by: Ilpo Järvinen Signed-off-by: David S. Miller --- diff --git a/include/linux/tcp.h b/include/linux/tcp.h index c5b94c1..bac17c5 100644 --- a/include/linux/tcp.h +++ b/include/linux/tcp.h @@ -315,7 +315,7 @@ struct tcp_sock { */ u32 snd_ssthresh; /* Slow start size threshold */ u32 snd_cwnd; /* Sending congestion window */ - u16 snd_cwnd_cnt; /* Linear increase counter */ + u32 snd_cwnd_cnt; /* Linear increase counter */ u32 snd_cwnd_clamp; /* Do not allow snd_cwnd to grow above this */ u32 snd_cwnd_used; u32 snd_cwnd_stamp;