Hi Xuan,
On 4/19/22 05:43, [email protected] wrote:
From: Xuan Ding <[email protected]>
This patch extracts the descriptors to buffers filling from
copy_desc_to_mbuf() into a dedicated function. Besides, enqueue
and dequeue path are refactored to use the same function
sync_fill_seg() for preparing batch elements, which simplifies
the code without performance degradation.
Signed-off-by: Xuan Ding <[email protected]>
---
lib/vhost/virtio_net.c | 76 ++++++++++++++++++++----------------------
1 file changed, 37 insertions(+), 39 deletions(-)
Nice refactoring, thanks for donig it:
Reviewed-by: Maxime Coquelin <[email protected]>
Thanks,
Maxime