From mboxrd@z Thu Jan 1 00:00:00 1970 From: Krzysztof Kolasa Subject: Re: something is wrong in commit 971f10eca1 - tcp: better TCP_SKB_CB layout to reduce cache line misses Date: Wed, 15 Oct 2014 13:40:15 +0200 Message-ID: <543E5D1F.2020207@winsoft.pl> References: <20141014.164705.1874094084240216813.davem@davemloft.net> <20141014.171559.1355616486999711590.davem@davemloft.net> <1413323024.17109.11.camel@edumazet-glaptop2.roam.corp.google.com> <543E4DD8.80203@winsoft.pl> <1413372422.17365.10.camel@edumazet-glaptop2.roam.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: Cong Wang , David Miller , Eric Dumazet , netdev To: Eric Dumazet Return-path: Received: from vps01.winsoft.pl ([5.133.9.51]:60308 "EHLO vps01.winsoft.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752472AbaJOLkV (ORCPT ); Wed, 15 Oct 2014 07:40:21 -0400 In-Reply-To: <1413372422.17365.10.camel@edumazet-glaptop2.roam.corp.google.com> Sender: netdev-owner@vger.kernel.org List-ID: W dniu 15.10.2014 o 13:27, Eric Dumazet pisze: > On Wed, 2014-10-15 at 12:35 +0200, Krzysztof Kolasa wrote: >> W dniu 14.10.2014 o 23:43, Eric Dumazet pisze: >>> On Tue, 2014-10-14 at 14:24 -0700, Cong Wang wrote: >>> >>>> Since we are still in merge window, I don't think we have to use >>>> a one-line fix for a bug introduced in this merge window. >>> You are clearly refactoring here. Its a nice cleanup. >>> >>> If I was the maintainer, I would prefer the one line fix. >>> >>> Then when net-next is open, you refactor. >>> >>> As I said, I wont argue, do whatever you want. >>> >>> Thanks >>> >>> >>> >> one-line patch not resolve problem, fix created by Cong Wang resolves >> problem !!! > Hmm, there should be no difference with either patch. > > tcp_v4_rcv() > ... > memmove(&TCP_SKB_CB(skb)->header.h4, IPCB(skb), > sizeof(struct inet_skb_parm)); > ... > -> tcp_v4_do_rcv() > -> tcp_v4_hnd_req() > -> cookie_v4_check(... , &TCP_SKB_CB(skb)->header.h4.opt) > > Hmm... > > on a 32bit system, the patch did not solve the problem :( I have exactly the same problem as before the patch I do not understand this, perhaps the problem is hidden somewhere else, one thing is certain after revert commit 971f10eca1 everything works correctly