]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Feb 2011 19:03:31 +0000 (11:03 -0800)
commitf6875d13d244c444764a81acaadd76e13b7c68ec
tree416d0b99bf6f85e46f2e97c2f57f9ea07cc4c54f
parentd75620575c1b93e42a4d332840c0cf90ea9a44cf
virtio_net: Add schedule check to napi_enable call

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>
Cc: stable@kernel.org
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c