[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <063D6719AE5E284EB5DD2968C1650D6D1CB54634@AcuExch.aculab.com>
Date: Mon, 22 Jun 2015 11:49:02 +0000
From: David Laight <David.Laight@...LAB.COM>
To: 'Pablo Neira Ayuso' <pablo@...filter.org>,
"netfilter-devel@...r.kernel.org" <netfilter-devel@...r.kernel.org>
CC: "davem@...emloft.net" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [PATCH 03/12] netfilter: x_tables: align per cpu xt_counter
From: Pablo Neira Ayuso
> Sent: 19 June 2015 18:18
> From: Eric Dumazet <edumazet@...gle.com>
>
> 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.
You could allocate a wrapper structure that contains xt_counter
and is itself marked __align(16).
David
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
Powered by blists - more mailing lists