X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=lib%2Flibrte_vhost%2Fvdpa.c;fp=lib%2Flibrte_vhost%2Fvdpa.c;h=c2c5dff1d44332779837a0843b0ec550491974e0;hb=8d01b9cd70a67cdafd5b965a70420c3bd7fb3f82;hp=c82fd437098cbcec182398c89297e3e6c5a926f4;hpb=b63264c8342e6a1b6971c79550d2af2024b6a4de;p=deb_dpdk.git diff --git a/lib/librte_vhost/vdpa.c b/lib/librte_vhost/vdpa.c index c82fd437..c2c5dff1 100644 --- a/lib/librte_vhost/vdpa.c +++ b/lib/librte_vhost/vdpa.c @@ -113,3 +113,9 @@ rte_vdpa_get_device(int did) return vdpa_devices[did]; } + +int +rte_vdpa_get_device_num(void) +{ + return vdpa_device_num; +}