Thread (5 messages) 5 messages, 4 authors, 2016-06-02

Re: [PATCH 1/1] net: nps_enet: Disable interrupts before napi reschedule

From: David Miller <davem@davemloft.net>
Date: 2016-05-30 05:35:45
Also in: lkml

From: Elad Kanfi <redacted>
Date: Thu, 26 May 2016 15:00:06 +0300
From: Elad Kanfi <redacted>

Since NAPI works by shutting down event interrupts when theres
work and turning them on when theres none, the net driver must
make sure that interrupts are disabled when it reschedules polling.
By calling napi_reschedule, the driver switches to polling mode,
therefor there should be no interrupt interference.
Any received packets will be handled in nps_enet_poll by polling the HW
indication of received packet until all packets are handled.

Signed-off-by: Elad Kanfi <redacted>
Acked-by: Noam Camus <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help