From: Eric Dumazet Subject: Re: [PATCH net-next] mlx4: optimize xmit path Date: Sun, 28 Sep 2014 05:42:16 -0700 Message-ID: <1411908136.15768.72.camel@edumazet-glaptop2.roam.corp.google.com> References: <1411692382-8898-1-git-send-email-ast@plumgrid.com> <1411694414.16953.70.camel@edumazet-glaptop2.roam.corp.google.com> <1411717322.16953.99.camel@edumazet-glaptop2.roam.corp.google.com> <1411850590.15768.6.camel@edumazet-glaptop2.roam.corp.google.com> <1411853441.15768.13.camel@edumazet-glaptop2.roam.corp.google.com> <1411858593.15768.51.camel@edumazet-glaptop2.roam.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Alexei Starovoitov , "David S. Miller" , Jesper Dangaard Brouer , Eric Dumazet , John Fastabend , Linux Netdev List , Amir Vadai , Or Gerlitz To: Or Gerlitz Return-path: Received: from mail-pa0-f45.google.com ([209.85.220.45]:40071 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752880AbaI1MmS (ORCPT ); Sun, 28 Sep 2014 08:42:18 -0400 Received: by mail-pa0-f45.google.com with SMTP id rd3so6341874pab.32 for ; Sun, 28 Sep 2014 05:42:17 -0700 (PDT) In-Reply-To: <1411858593.15768.51.camel@edumazet-glaptop2.roam.corp.google.com> Sender: netdev-owner@vger.kernel.org List-ID: On Sat, 2014-09-27 at 15:56 -0700, Eric Dumazet wrote: > From: Eric Dumazet > > Signed-off-by: Eric Dumazet > --- > > struct mlx4_en_tx_ring { > + /* cache line used and dirtied in tx completion > + * (mlx4_en_free_tx_buf()) > + */ > + u32 last_nr_txbb; > + u32 cons; > + > + /* cache line used and dirtied in mlx4_en_xmit() > + */ > + u32 prod ____cacheline_aligned_in_smp; > + unsigned long bytes; > + unsigned long packets; > + unsigned long tx_csum; > + struct mlx4_bf bf; > + unsigned long queue_stopped; > + unsigned long wake_queue; > + Hmm, I forgot to move wake_queue in the first cache line. I also forgot to include I'll send a v2.