net: introduce napi_schedule_irqoff()
authorEric Dumazet <edumazet@google.com>
Wed, 29 Oct 2014 01:05:13 +0000 (18:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Oct 2014 20:07:27 +0000 (16:07 -0400)
commitbc9ad166e38ae1cdcb5323a8aa45dff834d68bfa
tree3cfa21dccafd603158859124f95ef2698049be9e
parentc6be2a10ac2f810bdd01e978c93a8ef65b46120b
net: introduce napi_schedule_irqoff()

napi_schedule() can be called from any context and has to mask hard
irqs.

Add a variant that can only be called from hard interrupts handlers
or when irqs are already masked.

Many NIC drivers can use it from their hard IRQ handler instead of
generic variant.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c