提交 3ccd3130 编写于 作者: I Ilpo Järvinen 提交者: David S. Miller

[TCP]: Make invariant check complain about invalid sacked_out

Earlier resolution for NewReno's sacked_out should now keep
it small enough for this to become invariant-like check.
Signed-off-by: NIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 61f1ab41
...@@ -2504,11 +2504,8 @@ tcp_fastretrans_alert(struct sock *sk, int pkts_acked, int flag) ...@@ -2504,11 +2504,8 @@ tcp_fastretrans_alert(struct sock *sk, int pkts_acked, int flag)
(tcp_fackets_out(tp) > tp->reordering)); (tcp_fackets_out(tp) > tp->reordering));
int fast_rexmit = 0; int fast_rexmit = 0;
/* Some technical things: if (WARN_ON(!tp->packets_out && tp->sacked_out))
* 1. Reno does not count dupacks (sacked_out) automatically. */
if (!tp->packets_out)
tp->sacked_out = 0; tp->sacked_out = 0;
if (WARN_ON(!tp->sacked_out && tp->fackets_out)) if (WARN_ON(!tp->sacked_out && tp->fackets_out))
tp->fackets_out = 0; tp->fackets_out = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册