Maxime Coquelin c75987487d vhost: simplify getting first in-flight index
This patch reworks the function getting the index
for the first packet in-flight.

When this index turns out to be zero, let's use the simple
path. Doing that avoid having to do a modulo with the
virtqueue size.

The patch also rename the function for better clarification,
and only pass the virtqueue metadata pointer, as all the
needed information are stored there.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Jiayu Hu <jiayu.hu@intel.com>
2021-10-29 12:32:30 +02:00
..
2021-08-17 08:37:52 +02:00
2021-10-22 23:32:00 +02:00
2021-11-04 12:38:03 +01:00
2021-10-08 14:58:11 +02:00
2021-10-24 13:37:43 +02:00
2021-09-30 17:38:13 +02:00
2021-08-17 08:37:52 +02:00
2021-10-25 19:08:16 +02:00
2021-08-17 08:37:52 +02:00
2021-10-13 22:14:59 +02:00
2021-10-31 23:25:02 +01:00
2021-10-25 19:13:12 +02:00
2021-08-17 08:37:52 +02:00