virtio_net: Add schedule check to napi_enable call
authorBruce Rogers <brogers@novell.com>
Thu, 10 Feb 2011 19:03:31 +0000 (11:03 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 22:47:13 +0000 (14:47 -0800)
commit63a5df9b95f06aed7226b3c5b5e864898c229506
tree112da74622b575d5ad086a072756fec8795754c5
parent2e0d86e39009cdcd1cc0c7ec9c122cc34af1cd20
virtio_net: Add schedule check to napi_enable call

commit 3e9d08ec0a68f6faf718d5a7e050fe5ca0ba004f upstream.

Under harsh testing conditions, including low memory, the guest would
stop receiving packets. With this patch applied we no longer see any
problems in the driver while performing these tests for extended periods
of time.

Make sure napi is scheduled subsequent to each napi_enable.

Signed-off-by: Bruce Rogers <brogers@novell.com>
Signed-off-by: Olaf Kirch <okir@suse.de>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/virtio_net.c