Re: [PATCH] net/vhost: Add function to retreive the 'vid' for a given port id.
From: Thomas Monjalon <hidden>
Date: 2016-09-29 09:30:45
From: Thomas Monjalon <hidden>
Date: 2016-09-29 09:30:45
2016-09-29 09:21, Mcnamara, John:
quoted
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. Signed-off-by: Ciara Loftus <redacted>Acked-by: John McNamara <redacted>
A conclusion to this long thread: This patch can be helpful in many situations where we need vhost lib when using vhost PMD. And driver-specific API is acceptable. And this specific function is not a candidate to be promoted in ethdev. So it should go in release 16.11. When overlooking the OVS issue related, this solution seems to be a workaround. For next release, would it be possible to find a real fix for vhost PMD and/or ethdev API instead of relying on vhost lib?