netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* irq disable in __netdev_alloc_frag() ?
@ 2014-10-23  0:15 Alexei Starovoitov
  2014-10-23  1:52 ` Eric Dumazet
  0 siblings, 1 reply; 15+ messages in thread
From: Alexei Starovoitov @ 2014-10-23  0:15 UTC (permalink / raw)
  To: Eric Dumazet, Network Development

Hi Eric,

in the commit 6f532612cc24 ("net: introduce netdev_alloc_frag()")
you mentioned that the reason to disable interrupts
in __netdev_alloc_frag() is:
"- Must be IRQ safe (non NAPI drivers can use it)"

Is there a way to do this conditionally?

Without it I see 10% performance gain for my RX tests
(from 6.9Mpps to 7.7Mpps) and __netdev_alloc_frag()
itself goes from 6.6% to 2.1%
(popf seems to be quite costly)

Thanks
Alexei

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

end of thread, other threads:[~2014-10-28 19:54 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-23  0:15 irq disable in __netdev_alloc_frag() ? Alexei Starovoitov
2014-10-23  1:52 ` Eric Dumazet
2014-10-23  2:22   ` Alexei Starovoitov
2014-10-23  3:48     ` Eric Dumazet
2014-10-23  3:19   ` Alexander Duyck
2014-10-23  3:51     ` Eric Dumazet
2014-10-23  3:56       ` Eric Dumazet
2014-10-23  4:29         ` Alexei Starovoitov
2014-10-23  5:14           ` Eric Dumazet
2014-10-23  6:12             ` Alexei Starovoitov
2014-10-27 20:35       ` Jesper Dangaard Brouer
2014-10-28  2:30         ` Christoph Lameter
2014-10-28  2:46           ` Eric Dumazet
2014-10-28  4:56             ` David Miller
2014-10-28 19:46             ` Christoph Lameter

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).