From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] x_table: align per cpu xt_counter Date: Thu, 18 Jun 2015 03:43:26 -0700 (PDT) Message-ID: <20150618.034326.1579688535859905135.davem@davemloft.net> References: <1434417013.27504.161.camel@edumazet-glaptop2.roam.corp.google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: pablo@netfilter.org, netfilter-devel@vger.kernel.org, netdev@vger.kernel.org, fw@strlen.de To: eric.dumazet@gmail.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:41301 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752825AbbFRKbr (ORCPT ); Thu, 18 Jun 2015 06:31:47 -0400 In-Reply-To: <1434417013.27504.161.camel@edumazet-glaptop2.roam.corp.google.com> Sender: netfilter-devel-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Mon, 15 Jun 2015 18:10:13 -0700 > From: Eric Dumazet > > Let's force a 16 bytes alignment on xt_counter percpu allocations, > so that bytes and packets sit in same cache line. > > xt_counter being exported to user space, we cannot add __align(16) on > the structure itself. > > Signed-off-by: Eric Dumazet > Cc: Florian Westphal Pablo, I assume you will take this.