提交 b2273be8 编写于 作者: S Sjur Brændeland 提交者: Rusty Russell

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: NSjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
上级 cf994e0a
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册