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

2018-05-06 Thread Chen, Junjie J
ect: Re: [dpdk-dev] [PATCH] net/vhost: Initialise vid to -1 > > > > On 05/03/2018 03:18 PM, Loftus, Ciara wrote: > >> > >>> > >>> On 04/27/2018 04:19 PM, Ciara Loftus wrote: > >>>> rte_eth_vhost_get_vid_from_port_id returns a value of 0

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

2018-05-04 Thread Maxime Coquelin
On 05/03/2018 03:18 PM, Loftus, Ciara wrote: On 04/27/2018 04:19 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.

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

2018-05-03 Thread Loftus, Ciara
> > > > > On 04/27/2018 04:19 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

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

2018-04-30 Thread Loftus, Ciara
> > On 04/27/2018 04:19 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 val

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

2018-04-27 Thread Maxime Coquelin
On 04/27/2018 04:19 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 thi

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

2018-04-27 Thread Ciara Loftus
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 --- drivers/ne