]> git.baikalelectronics.ru Git - kernel.git/commit
net: nps_enet: Disable interrupts before napi reschedule
authorElad Kanfi <eladkan@mellanox.com>
Thu, 26 May 2016 12:00:06 +0000 (15:00 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 May 2016 05:35:21 +0000 (22:35 -0700)
commit35d89036c03e98ea6ded3c3736c0ebe950dbc59c
tree89ca0b8ab48cf302fd383c73aeb5b8ed06c8036e
parent752c0a0849721b98da21e3d1c9a31587bbd19954
net: nps_enet: Disable interrupts before napi reschedule

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 <eladkan@mellanox.com>
Acked-by: Noam Camus <noamca@mellanox.com>
Tested-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ezchip/nps_enet.c