[TCP]: Avoid clearing sacktag hint in trivial situations
There's no reason to clear the sacktag skb hint when small part of the rexmit queue changes. Account changes (if any) instead when fragmenting/collapsing. RTO/FRTO do not touch SACKED_ACKED bits so no need to discard SACK tag hint at all. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
c96fd3d461
commit
b76892051c
@@ -1067,11 +1067,15 @@ static inline void tcp_mib_init(void)
|
||||
}
|
||||
|
||||
/* from STCP */
|
||||
static inline void tcp_clear_all_retrans_hints(struct tcp_sock *tp) {
|
||||
static inline void tcp_clear_retrans_hints_partial(struct tcp_sock *tp) {
|
||||
tp->lost_skb_hint = NULL;
|
||||
tp->scoreboard_skb_hint = NULL;
|
||||
tp->retransmit_skb_hint = NULL;
|
||||
tp->forward_skb_hint = NULL;
|
||||
}
|
||||
|
||||
static inline void tcp_clear_all_retrans_hints(struct tcp_sock *tp) {
|
||||
tcp_clear_retrans_hints_partial(tp);
|
||||
tp->fastpath_skb_hint = NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user