netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* TSO trimming question
@ 2007-12-19 21:46 Ilpo Järvinen
  2007-12-19 22:02 ` Ilpo Järvinen
  2007-12-20  7:54 ` David Miller
  0 siblings, 2 replies; 26+ messages in thread
From: Ilpo Järvinen @ 2007-12-19 21:46 UTC (permalink / raw)
  To: Netdev, David Miller

Hi all,

I'm not fully sure what's purpose of this code in tcp_write_xmit:

                       if (skb->len < limit) {
                               unsigned int trim = skb->len % mss_now;

                               if (trim)
                                       limit = skb->len - trim;
			}

Is it used to make sure we send only multiples of mss_now here and leave 
the left-over into another skb? Or does it try to make sure that
tso_fragment result honors multiple of mss_now boundaries when snd_wnd
is the limitting factor? For latter IMHO this would be necessary:

			if (skb->len > limit)
				limit -= limit % mss_now;


-- 
 i.

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

end of thread, other threads:[~2007-12-25  5:35 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19 21:46 TSO trimming question Ilpo Järvinen
2007-12-19 22:02 ` Ilpo Järvinen
2007-12-20  3:26   ` Herbert Xu
2007-12-20  7:55     ` David Miller
2007-12-20  7:54 ` David Miller
2007-12-20 11:40   ` Ilpo Järvinen
2007-12-20 11:56     ` David Miller
2007-12-20 16:02       ` John Heffner
2007-12-21  4:36         ` David Miller
2007-12-21  8:06       ` Bill Fink
2007-12-21  9:26         ` Ilpo Järvinen
2007-12-21  9:28           ` Ilpo Järvinen
2007-12-21  9:27         ` David Miller
2007-12-21  9:29           ` Herbert Xu
2007-12-21  9:36             ` David Miller
2007-12-21 10:58               ` Bill Fink
2007-12-21 18:54                 ` Bill Fink
2007-12-21 18:58                   ` Ilpo Järvinen
2007-12-21 19:37                     ` Bill Fink
2007-12-20 12:00     ` David Miller
2007-12-20 12:35       ` Ilpo Järvinen
2007-12-20 14:00       ` Herbert Xu
2007-12-20 23:55         ` David Miller
2007-12-21 18:55           ` [PATCH] [TCP]: Force TSO splits to MSS boundaries Ilpo Järvinen
2007-12-21 20:01             ` Ilpo Järvinen
2007-12-25  5:35             ` 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).