[dpdk-dev] [PATCH v2] net/vhost: Initialise vid to -1
Maxime Coquelin
maxime.coquelin at redhat.com
Fri May 4 17:09:56 CEST 2018
On 05/03/2018 03:17 PM, Ciara Loftus wrote:
> rte_eth_vhost_get_vid_from_port_id returns a value of 0 if called before
> the first call to the new_device callback. A vid value >=0 suggests the
> device is active which is not the case in this instance. Initialise vid
> to a negative value to prevent this.
>
> Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
> Fixes: ee584e9710b9 vhost: add driver on top of the library
> Cc: stable at dpdk.org
> ---
> drivers/net/vhost/rte_eth_vhost.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
Applied to dpdk-next-virtio/master.
Thanks,
Maxime
More information about the dev
mailing list