vDPA: check virtio device features to detect MQ
authorZhu Lingshan <lingshan.zhu@intel.com>
Thu, 29 Sep 2022 01:45:53 +0000 (09:45 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 8 Oct 2022 00:00:43 +0000 (20:00 -0400)
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>
drivers/vdpa/vdpa.c

index 98f4c31..2774e07 100644 (file)
@@ -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