netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] [TCP]: Make prior_ssthresh a u32
@ 2008-05-21 12:36 Ilpo Järvinen
  2008-05-21 12:40 ` [PATCH 2/2] [TCP]: Reorganize tcp_sock to fill 64-bit holes & improve locality Ilpo Järvinen
  2008-05-22  0:40 ` [PATCH 1/2] [TCP]: Make prior_ssthresh a u32 David Miller
  0 siblings, 2 replies; 6+ messages in thread
From: Ilpo Järvinen @ 2008-05-21 12:36 UTC (permalink / raw)
  To: David Miller; +Cc: Netdev

[-- Attachment #1: Type: TEXT/PLAIN, Size: 974 bytes --]


If previous window was above representable values of u16,
strange things will happen if undo with the truncated value
is called for. Alternatively, this could be fixed by some
max trickery but that would limit undoing high-speed undos.

Adds 16-bit hole but there isn't anything to fill it with.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
---
 include/linux/tcp.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/tcp.h b/include/linux/tcp.h
index d96d9b1..18e62e3 100644
--- a/include/linux/tcp.h
+++ b/include/linux/tcp.h
@@ -355,7 +355,7 @@ struct tcp_sock {
 	u32	lost_retrans_low;	/* Sent seq after any rxmit (lowest) */
 
 	u16	advmss;		/* Advertised MSS			*/
-	u16	prior_ssthresh; /* ssthresh saved at recovery start	*/
+	u32	prior_ssthresh; /* ssthresh saved at recovery start	*/
 	u32	lost_out;	/* Lost packets			*/
 	u32	sacked_out;	/* SACK'd packets			*/
 	u32	fackets_out;	/* FACK'd packets			*/
-- 
1.5.2.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-05-29 10:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-21 12:36 [PATCH 1/2] [TCP]: Make prior_ssthresh a u32 Ilpo Järvinen
2008-05-21 12:40 ` [PATCH 2/2] [TCP]: Reorganize tcp_sock to fill 64-bit holes & improve locality Ilpo Järvinen
2008-05-22  0:41   ` David Miller
2008-05-27  5:42   ` Eric Dumazet
2008-05-29 10:26     ` David Miller
2008-05-22  0:40 ` [PATCH 1/2] [TCP]: Make prior_ssthresh a u32 David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).