[dpdk-dev] SR-IOV: API to tell VF from PF

Bruce Richardson bruce.richardson at intel.com
Thu Nov 5 10:50:52 CET 2015


On Thu, Nov 05, 2015 at 09:39:19AM +0000, Shaham Fridenberg wrote:
> Hey all,
> 
> Is there some API to tell VF from PF?
> 
> Only way I found so far is deducing that from driver name in the rte_eth_devices struct.
> 
> Thanks,
> Shaham

Hi Shaham,

yes, checking the driver name is probably the only way to do so. However, why do
you need or want to know this? If you want to know the capabilities of a device
basing it on a list of known device types is probably not the best way.

Regards,
/Bruce


More information about the dev mailing list