Commit d0e8bcaf authored by Mao Wenan's avatar Mao Wenan Committed by David S. Miller

tcp: use REXMIT_NEW instead of magic number

REXMIT_NEW is a macro for "FRTO-style
transmit of unsent/new packets", this patch
makes it more readable.
Signed-off-by: default avatarMao Wenan <maowenan@huawei.com>
Acked-by: default avatarNeal Cardwell <ncardwell@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0d08c9ec
...@@ -3550,7 +3550,7 @@ static void tcp_xmit_recovery(struct sock *sk, int rexmit) ...@@ -3550,7 +3550,7 @@ static void tcp_xmit_recovery(struct sock *sk, int rexmit)
if (rexmit == REXMIT_NONE || sk->sk_state == TCP_SYN_SENT) if (rexmit == REXMIT_NONE || sk->sk_state == TCP_SYN_SENT)
return; return;
if (unlikely(rexmit == 2)) { if (unlikely(rexmit == REXMIT_NEW)) {
__tcp_push_pending_frames(sk, tcp_current_mss(sk), __tcp_push_pending_frames(sk, tcp_current_mss(sk),
TCP_NAGLE_OFF); TCP_NAGLE_OFF);
if (after(tp->snd_nxt, tp->high_seq)) if (after(tp->snd_nxt, tp->high_seq))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment