[TCP]: Also handle snd_una changes in tcp_cwnd_down
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Fri, 3 Aug 2007 02:46:58 +0000 (19:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Aug 2007 02:46:58 +0000 (19:46 -0700)
commit2e6052941ae1f2f875d7d9092acb8836af1e0193
treeade0bd7235403397b6165a5a2e788dd739912d94
parent3a97aeb5c199070f136c085f8b0f9338d19c4148
[TCP]: Also handle snd_una changes in tcp_cwnd_down

tcp_cwnd_down must check for it too as it should be conservative
in case of collapse stuff and also when receiver is trying to
lie (though that wouldn't be very successful/useful anyway).

Note:
- Separated also is_dupack and do_lost in fast_retransalert
* Much cleaner look-and-feel now
* This time it really fixes cumulative ACK with many new
  SACK blocks recovery entry (I claimed this fixes with
  last patch but it wasn't). TCP will now call
  tcp_update_scoreboard regardless of is_dupack when
  in recovery as long as there is enough fackets_out.
- Introduce FLAG_SND_UNA_ADVANCED
* Some prior_snd_una arguments are unnecessary after it
- Added helper FLAG_ANY_PROGRESS to avoid long FLAG...|FLAG...
  constructs

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c