Re: [dpdk-dev] [PATCH] vdpa/mlx5: set default queue indices

2020-04-17 Thread Maxime Coquelin
On 3/23/20 6:50 PM, Asaf Penso wrote: > The rte_vhost_get_vring_base function is being called to get the values > of last_avail_idx and last_used_idx. > These fields will not have the correct values in case the function > returns an error. > > Adding a check for the function return value, and i

Re: [dpdk-dev] [PATCH] vdpa/mlx5: set default queue indices

2020-04-15 Thread Asaf Penso
Thanks Maxime. Regards, Asaf Penso > -Original Message- > From: Maxime Coquelin > Sent: Wednesday, April 15, 2020 10:35 AM > To: Asaf Penso ; dev@dpdk.org > Cc: Slava Ovsiienko ; Matan Azrad > > Subject: Re: [dpdk-dev] [PATCH] vdpa/mlx5: set default queue indices

Re: [dpdk-dev] [PATCH] vdpa/mlx5: set default queue indices

2020-04-15 Thread Maxime Coquelin
Hi Asaf, On 3/23/20 6:50 PM, Asaf Penso wrote: > The rte_vhost_get_vring_base function is being called to get the values > of last_avail_idx and last_used_idx. > These fields will not have the correct values in case the function > returns an error. > > Adding a check for the function return value

[dpdk-dev] [PATCH] vdpa/mlx5: set default queue indices

2020-03-23 Thread Asaf Penso
The rte_vhost_get_vring_base function is being called to get the values of last_avail_idx and last_used_idx. These fields will not have the correct values in case the function returns an error. Adding a check for the function return value, and in the case of an error, set the fields to be zero and