Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752547AbdI1RsF (ORCPT ); Thu, 28 Sep 2017 13:48:05 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:50690 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514AbdI1RsB (ORCPT ); Thu, 28 Sep 2017 13:48:01 -0400 Date: Thu, 28 Sep 2017 10:48:01 -0700 (PDT) Message-Id: <20170928.104801.364432233895912663.davem@davemloft.net> To: yanhaishuang@cmss.chinamobile.com Cc: kuznet@ms2.inr.ac.ru, edumazet@google.com, weiwan@google.com, lucab@debian.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 4/4] ipv4: Namespaceify tcp_fastopen_blackhole_timeout knob From: David Miller In-Reply-To: <1506483343-11544-4-git-send-email-yanhaishuang@cmss.chinamobile.com> References: <1506483343-11544-1-git-send-email-yanhaishuang@cmss.chinamobile.com> <1506483343-11544-4-git-send-email-yanhaishuang@cmss.chinamobile.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 28 Sep 2017 10:48:01 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 784 Lines: 26 From: Haishuang Yan Date: Wed, 27 Sep 2017 11:35:43 +0800 > Different namespace application might require different time period in > second to disable Fastopen on active TCP sockets. > > Tested: > Simulate following similar situation that the server's data gets dropped > after 3WHS. > C ---- syn-data ---> S > C <--- syn/ack ----- S > C ---- ack --------> S > S (accept & write) > C? X <- data ------ S > [retry and timeout] > > And then print netstat of TCPFastOpenBlackhole, the counter increased as > expected when the firewall blackhole issue is detected and active TFO is > disabled. > # cat /proc/net/netstat | awk '{print $91}' > TCPFastOpenBlackhole > 1 > > Signed-off-by: Haishuang Yan Applied.