]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:54:45 +0000 (13:54 -0700)
commit23046c654496911b478402ae7cd0909f64c3f712
tree6fec3e067e759ebe2dd3a960dd98591e867a6aeb
parentabf99a8ea6970057d8d7ca93ac1629fe55b65162
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
[bwh: Adjust for 2.6.32]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/virtio_net.c