From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] tcp: minor optimization around tcp_hdr() usage in receive path Date: Thu, 31 May 2018 13:23:44 -0400 (EDT) Message-ID: <20180531.132344.339904863786377155.davem@davemloft.net> References: <1527607651-28262-1-git-send-email-laoar.shao@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: edumazet@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: laoar.shao@gmail.com Return-path: In-Reply-To: <1527607651-28262-1-git-send-email-laoar.shao@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Yafang Shao Date: Tue, 29 May 2018 23:27:31 +0800 > This is additional to the > commit ea1627c20c34 ("tcp: minor optimizations around tcp_hdr() usage"). > At this point, skb->data is same with tcp_hdr() as tcp header has not > been pulled yet. So use the less expensive one to get the tcp header. > > Remove the third parameter of tcp_rcv_established() and put it into > the function body. > > Furthermore, the local variables are listed as a reverse christmas tree :) > > Cc: Eric Dumazet > Signed-off-by: Yafang Shao Applied, thanks.