]> git.droids-corp.org - dpdk.git/commit
vhost: prepare async for descriptor to mbuf refactoring
authorXuan Ding <xuan.ding@intel.com>
Mon, 16 May 2022 11:10:38 +0000 (11:10 +0000)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Wed, 1 Jun 2022 09:50:09 +0000 (11:50 +0200)
commitd796fee5e5c820c2c6a371ab33d87f9bb5985cc8
treee1cfc7f1174d7bb54502ee9e612c44ddf2d9e3a2
parent6d823bb302c76fd66817b65d22592c4ec032a8c6
vhost: prepare async for descriptor to mbuf refactoring

This patch refactors vhost async enqueue path and dequeue path to use
the same function async_fill_seg() for preparing batch elements,
which simplifies the code without performance degradation.

Signed-off-by: Xuan Ding <xuan.ding@intel.com>
Tested-by: Yvonne Yang <yvonnex.yang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/vhost/virtio_net.c