Skip to content
Commit 717a3ab0 authored by Tu Dinh Ngoc's avatar Tu Dinh Ngoc Committed by Will Deacon
Browse files

virtio-net: Fix vq->use_event_idx flag check



VIRTIO_RING_F_EVENT_IDX is a bit position value, but
virtio_init_device_vq populates vq->use_event_idx by ANDing this value
directly to vdev->features.

Fix the check for this flag in virtio_init_device_vq.

Reviewed-by: Andre Przywara's avatarAndre Przywara <andre.przywara@arm.com>
Signed-off-by: default avatarTu Dinh Ngoc <dinhngoc.tu@irit.fr>
Link: https://lore.kernel.org/r/20220929121858.156-1-dinhngoc.tu@irit.fr


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent ed805be5
Loading
Loading
Loading
Loading
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