Skip to content
Snippets Groups Projects
Commit b2273be8 authored by Sjur Brændeland's avatar Sjur Brændeland Committed by Rusty Russell
Browse files

caif_virtio: Use vringh_notify_enable correctly


Check on the correct return value from
vringh_notify_enable_kern(). It returns false if
more packets are available, not true.

Signed-off-by: default avatarSjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent cf994e0a
No related branches found
No related tags found
No related merge requests found
......@@ -318,7 +318,7 @@ static int cfv_rx_poll(struct napi_struct *napi, int quota)
/* Really out of patckets? (stolen from virtio_net)*/
napi_complete(napi);
if (unlikely(vringh_notify_enable_kern(cfv->vr_rx)) &&
if (unlikely(!vringh_notify_enable_kern(cfv->vr_rx)) &&
napi_schedule_prep(napi)) {
vringh_notify_disable_kern(cfv->vr_rx);
__napi_schedule(napi);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment