From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cong Wang Subject: Re: something is wrong in commit 971f10eca1 - tcp: better TCP_SKB_CB layout to reduce cache line misses Date: Wed, 15 Oct 2014 14:25:08 -0700 Message-ID: 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> <543EDC2F.1090604@winsoft.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Eric Dumazet , David Miller , Eric Dumazet , netdev To: Krzysztof Kolasa Return-path: Received: from mail-qg0-f47.google.com ([209.85.192.47]:39242 "EHLO mail-qg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750792AbaJOVZK (ORCPT ); Wed, 15 Oct 2014 17:25:10 -0400 Received: by mail-qg0-f47.google.com with SMTP id i50so1622376qgf.34 for ; Wed, 15 Oct 2014 14:25:09 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Oct 15, 2014 at 2:22 PM, Cong Wang wrote: > > Meanwhile Eric is debugging it, do you mind to try a followup quick > fix on your 32bit system? > > diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c > index e13d778..12bd3f6 100644 > --- a/net/ipv4/tcp_output.c > +++ b/net/ipv4/tcp_output.c > @@ -1006,8 +1006,7 @@ static int tcp_transmit_skb(struct sock *sk, > struct sk_buff *skb, int clone_it, > skb->tstamp.tv64 = 0; > > /* Cleanup our debris for IP stacks */ > - memset(skb->cb, 0, max(sizeof(struct inet_skb_parm), > - sizeof(struct inet6_skb_parm))); > + memset(TCPCB(skb), 0, sizeof(*TCPCB(skb))); Of course, s/TCPCB/TCP_SKB_CB/. :) > > err = icsk->icsk_af_ops->queue_xmit(sk, skb, &inet->cork.fl);