[dpdk-dev] [PATCH v2] net/vhost: Initialise vid to -1

Maxime Coquelin maxime.coquelin at redhat.com
Fri May 4 15:09:43 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
> ---

Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime


More information about the dev mailing list