Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751590AbdIUBzk convert rfc822-to-8bit (ORCPT ); Wed, 20 Sep 2017 21:55:40 -0400 Received: from cmccmta1.chinamobile.com ([221.176.66.79]:57438 "EHLO cmccmta1.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbdIUBzj (ORCPT ); Wed, 20 Sep 2017 21:55:39 -0400 X-RM-TRANSID: 2ee159c31c1766f-de852 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2ee659c31c155f4-89e06 Content-Type: text/plain; charset=gb2312 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [Patch v3 1/3] ipv4: Namespaceify tcp_fastopen knob From: =?gb2312?B?0c+6o8ur?= In-Reply-To: <20170920.142227.65942571438912956.davem@davemloft.net> Date: Thu, 21 Sep 2017 09:55:33 +0800 Cc: kuznet@ms2.inr.ac.ru, edumazet@google.com, weiwan@google.com, lucab@debian.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <00D0DCCA-0E9B-4010-BBA0-6D0DDAE7CD46@cmss.chinamobile.com> References: <1505813896-12121-1-git-send-email-yanhaishuang@cmss.chinamobile.com> <20170920.142227.65942571438912956.davem@davemloft.net> To: David Miller X-Mailer: Apple Mail (2.3273) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1071 Lines: 32 > On 2017??9??21??, at ????5:22, David Miller wrote: > > From: Haishuang Yan > Date: Tue, 19 Sep 2017 17:38:14 +0800 > >> - if ((sysctl_tcp_fastopen & TFO_SERVER_WO_SOCKOPT1) && >> - (sysctl_tcp_fastopen & TFO_SERVER_ENABLE) && >> + tcp_fastopen = sock_net(sk)->ipv4.sysctl_tcp_fastopen; > ^^ > > Please change that to one space. > > And also please provide an appropriate "[PATCH vX 0/3] " header > posting when you respin this series. Sorry, it??s my mistake, thanks David. > >> @@ -282,18 +280,19 @@ struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb, >> struct tcp_fastopen_cookie valid_foc = { .len = -1 }; >> bool syn_data = TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq + 1; >> struct sock *child; >> + int tcp_fastopen = sock_net(sk)->ipv4.sysctl_tcp_fastopen; > > Please order local variables from longest to shortest line (aka. reverse > christmas tree format). > Okay, I??ll take care of such coding style in next commit, thanks!