netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Poll about irqsafe_cpu_add and others
@ 2011-03-17 14:23 Eric Dumazet
  2011-03-17 14:40 ` Christoph Lameter
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Eric Dumazet @ 2011-03-17 14:23 UTC (permalink / raw)
  To: linux-kernel, linux-arch
  Cc: Christoph Lameter, netdev, Netfilter Development Mailinglist

Hi

irqsafe_cpu_{dec|inc} are used in network stack since 2.6.37 (commit
29b4433d991c88), and I would like to use irqsafe_cpu_add() in netfilter
fast path too, and SNMP counters eventually (to lower ram needs by 50%)

Initial support of irqsafe_ was given by Christoph in 2.6.34

It seems only x86 arch is using a native and efficient implementation.

Others use irqsafe_cpu_generic_to_op() and its pair of
local_irq_save() / local_irq_restore()

Which other arches could use a native implementation ?

What about defining a HAVE_FAST_IRQSAFE_ADD ?

Thanks

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-03-18  6:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-17 14:23 Poll about irqsafe_cpu_add and others Eric Dumazet
2011-03-17 14:40 ` Christoph Lameter
2011-03-17 15:14 ` David Miller
2011-03-17 15:18   ` Christoph Lameter
2011-03-17 16:53     ` Eric Dumazet
2011-03-17 17:46       ` Christoph Lameter
2011-03-17 18:29         ` Eric Dumazet
2011-03-17 18:42           ` Christoph Lameter
2011-03-17 18:55             ` Eric Dumazet
2011-03-17 19:21               ` Christoph Lameter
2011-03-18  6:56 ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).