netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* a question about the "reord"
@ 2007-07-13  7:26 Cruise Huang
  0 siblings, 0 replies; only message in thread
From: Cruise Huang @ 2007-07-13  7:26 UTC (permalink / raw)
  To: netdev; +Cc: David Miller

Dear all:
I'm reading the code about the Congestion Control.Now I'm confused about
the variable "reord" in the function tcp_sacktag_write_queue().

The "reord" is initialized as the tp->packets_out, I think, which is a
max threshold of the reordering.

If it detect a hole or D-SACK ,set the reord to :
---> reord = min(fack_count, reord);

Finally,the code may update the reordering by:
---> tcp_update_reordering(sk, ((tp->fackets_out + 1) - reord), 0);

The questions are :
<1> What's the purpose of the "reord" ?
<2> Why use the "((tp->fackets_out + 1) - reord)" to update the reordering.

Do I need to study some more RFC about this ? If yes,please tell me
,thanks .



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-13  7:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-13  7:26 a question about the "reord" Cruise Huang

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).