[dpdk-dev] [PATCH] net/vhost: Add function to retreive the 'vid' for a given port id.

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Sep 13 17:10:09 CEST 2016


2016-09-13 14:47, Ciara Loftus:
> In some cases when using the vHost PMD, certain vHost library functions
> may still need to be accessed. One such example is the
> rte_vhost_get_queue_num function which returns the number of virtqueues
> reported by the guest - information which is not exposed by the PMD.
> 
> This commit introduces a new rte_eth_vhost function that returns the
> 'vid' associated with a given port id. This allows the PMD user to call
> vHost library functions which require the 'vid' value.

I think we should not add any API to the PMDs.
Maybe you are looking for a generic API in ethdev.


More information about the dev mailing list