Re: [PATCH net v3] tcp: warn on bogus MSS and try to amend it

2016-12-03 Thread David Miller
From: Marcelo Ricardo Leitner Date: Fri, 2 Dec 2016 20:51:51 -0200 > @@ -144,7 +144,21 @@ static void tcp_measure_rcv_mss(struct sock *sk, const > struct sk_buff *skb) >*/ > len = skb_shinfo(skb)->gso_size ? : skb->len; > if (len >= icsk->icsk_ack.rcv_mss) { > -

[PATCH net v3] tcp: warn on bogus MSS and try to amend it

2016-12-02 Thread Marcelo Ricardo Leitner
There have been some reports lately about TCP connection stalls caused by NIC drivers that aren't setting gso_size on aggregated packets on rx path. This causes TCP to assume that the MSS is actually the size of the aggregated packet, which is invalid. Although the proper fix is to be done at each