Skip to content

Commit 9d97aa1

Browse files
ls-zhumstsirkin
authored andcommitted
vDPA: check virtio device features to detect MQ
vdpa_dev_net_mq_config_fill() should checks device features for MQ than driver features. Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20220929014555.112323-5-lingshan.zhu@intel.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
1 parent 8a50571 commit 9d97aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vdpa/vdpa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ static int vdpa_dev_net_config_fill(struct vdpa_device *vdev, struct sk_buff *ms
843843
VDPA_ATTR_PAD))
844844
return -EMSGSIZE;
845845

846-
return vdpa_dev_net_mq_config_fill(vdev, msg, features_driver, &config);
846+
return vdpa_dev_net_mq_config_fill(msg, features_device, &config);
847847
}
848848

849849
static int

0 commit comments

Comments
 (0)