Skip to content

Commit

Permalink
vDPA: check virtio device features to detect MQ
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhu Lingshan authored and Michael S. Tsirkin committed Oct 8, 2022
1 parent 8a50571 commit 9d97aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/vdpa/vdpa.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ static int vdpa_dev_net_config_fill(struct vdpa_device *vdev, struct sk_buff *ms
VDPA_ATTR_PAD))
return -EMSGSIZE;

return vdpa_dev_net_mq_config_fill(vdev, msg, features_driver, &config);
return vdpa_dev_net_mq_config_fill(msg, features_device, &config);
}

static int
Expand Down

0 comments on commit 9d97aa1

Please sign in to comment.