1
0
Fork 0
alistair23-linux/drivers/net/caif
Herbert Xu 3079c65214 caif: Fix napi poll list corruption
The commit d75b1ade56 (net: less
interrupt masking in NAPI) breaks caif.

It is now required that if the entire budget is consumed when poll
returns, the napi poll_list must remain empty.  However, like some
other drivers caif tries to do a last-ditch check and if there is
more work it will call napi_schedule and then immediately process
some of this new work.  Should the entire budget be consumed while
processing such new work then we will violate the new caller
contract.

This patch fixes this by not touching any work when we reschedule
in caif.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-12-22 16:34:39 -05:00
..
Kconfig caif: CAIF_VIRTIO should depend on HAS_DMA 2013-05-11 16:28:24 -07:00
Makefile Lots of virtio work which wasn't quite ready for last merge window. Plus 2013-05-02 14:14:04 -07:00
caif_hsi.c caif: Update Dmitry's email address. 2013-04-23 13:25:51 -04:00
caif_serial.c net: set name_assign_type in alloc_netdev() 2014-07-15 16:12:48 -07:00
caif_spi.c net: set name_assign_type in alloc_netdev() 2014-07-15 16:12:48 -07:00
caif_spi_slave.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
caif_virtio.c caif: Fix napi poll list corruption 2014-12-22 16:34:39 -05:00