mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 10:13:57 +08:00
[TCP]: Don't apply FIN exception to full TSO segments.
Signed-off-by: John Heffner <jheffner@psc.edu> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8a3c3a9727
commit
104439a887
@ -965,7 +965,8 @@ static inline unsigned int tcp_cwnd_test(struct tcp_sock *tp, struct sk_buff *sk
|
||||
u32 in_flight, cwnd;
|
||||
|
||||
/* Don't be strict about the congestion window for the final FIN. */
|
||||
if (TCP_SKB_CB(skb)->flags & TCPCB_FLAG_FIN)
|
||||
if ((TCP_SKB_CB(skb)->flags & TCPCB_FLAG_FIN) &&
|
||||
tcp_skb_pcount(skb) == 1)
|
||||
return 1;
|
||||
|
||||
in_flight = tcp_packets_in_flight(tp);
|
||||
|
Loading…
Reference in New Issue
Block a user