mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[TCP]: Remove TCPCB_URG & TCPCB_AT_TAIL as unnecessary
The snd_up check should be enough. I suspect this has been there to provide a minor optimization in clean_rtx_queue which used to have a small if (!->sacked) block which could skip snd_up check among the other work. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cadbd0313b
commit
4828e7f49a
4 changed files with 4 additions and 11 deletions
|
@ -2821,8 +2821,7 @@ static int tcp_clean_rtx_queue(struct sock *sk, int prior_fackets)
|
|||
if (sacked & TCPCB_LOST)
|
||||
tp->lost_out -= acked_pcount;
|
||||
|
||||
if (unlikely((sacked & TCPCB_URG) && tp->urg_mode &&
|
||||
!before(end_seq, tp->snd_up)))
|
||||
if (unlikely(tp->urg_mode && !before(end_seq, tp->snd_up)))
|
||||
tp->urg_mode = 0;
|
||||
|
||||
tp->packets_out -= acked_pcount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue