X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fvdpa%2Fmain.c;h=bdb00603cc9f806bce174f16bd04215ce4195d5a;hb=81a6b7fe068f64d1381ea4d6fce5088a1bcc7f81;hp=e72f6646e7578c0d56825d2e12f222a174fd5284;hpb=38f8ab0bbc8d14066ebafec2b70583092328a5ab;p=dpdk.git diff --git a/examples/vdpa/main.c b/examples/vdpa/main.c index e72f6646e7..bdb00603cc 100644 --- a/examples/vdpa/main.c +++ b/examples/vdpa/main.c @@ -291,13 +291,13 @@ static void cmd_list_vdpa_devices_parsed( vdev = rte_vdpa_get_device(did); if (!vdev) continue; - if (vdev->ops->get_queue_num(did, &queue_num) < 0) { + if (vdev->ops->get_queue_num(vdev, &queue_num) < 0) { RTE_LOG(ERR, VDPA, "failed to get vdpa queue number " "for device id %d.\n", did); continue; } - if (vdev->ops->get_features(did, &features) < 0) { + if (vdev->ops->get_features(vdev, &features) < 0) { RTE_LOG(ERR, VDPA, "failed to get vdpa features " "for device id %d.\n", did);