linux-next/tools/virtio/linux
Yunsheng Lin c5d3705cfd tools: virtio: introduce vhost_net_test
introduce vhost_net_test for both vhost_net tx and rx basing
on virtio_test to test vhost_net changing in the kernel.

Steps for vhost_net tx testing:
1. Prepare a out buf.
2. Kick the vhost_net to do tx processing.
3. Do the receiving in the tun side.
4. verify the data received by tun is correct.

Steps for vhost_net rx testing:
1. Prepare a in buf.
2. Do the sending in the tun side.
3. Kick the vhost_net to do rx processing.
4. verify the data received by vhost_net is correct.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-03-05 11:38:14 +01:00
..
bug.h tools/virtio: fix the vringh test for virtio ring changes 2023-01-27 06:18:41 -05:00
build_bug.h tools/virtio: fix the vringh test for virtio ring changes 2023-01-27 06:18:41 -05:00
compiler.h tools/virtio: fix build caused by virtio_ring changes 2023-04-21 03:02:35 -04:00
cpumask.h tools/virtio: fix the vringh test for virtio ring changes 2023-01-27 06:18:41 -05:00
device.h tools/virtio: virtio_test tool 2010-12-09 16:00:22 +02:00
dma-mapping.h tools/virtio: Add dma sync api for virtio test 2023-10-16 05:32:23 -04:00
err.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
export.h tools/virtio: fix build after 4.2 changes 2015-09-09 22:03:30 +03:00
gfp.h tools/virtio: fix the vringh test for virtio ring changes 2023-01-27 06:18:41 -05:00
hrtimer.h tools/virtio: add linux/hrtimer.h stub 2012-02-28 09:13:14 +02:00
irqreturn.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
kernel.h tools/virtio: fix build caused by virtio_ring changes 2023-04-21 03:02:35 -04:00
kmemleak.h tools/virtio: fix missing kmemleak_ignore symbol 2014-03-13 11:23:25 +10:30
kmsan.h tools/virtio: fix the vringh test for virtio ring changes 2023-01-27 06:18:41 -05:00
mm_types.h tools/virtio: handle fallout from folio work 2022-03-06 06:06:50 -05:00
module.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
printk.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
ratelimit.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
scatterlist.h tools/virtio: fix the vringh test for virtio ring changes 2023-01-27 06:18:41 -05:00
slab.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
spinlock.h tools/virtio: fix build 2021-08-11 06:44:24 -04:00
thread_info.h tools/virtio: more stubs to fix tools build 2018-01-29 12:02:54 -05:00
topology.h tools/virtio: fix the vringh test for virtio ring changes 2023-01-27 06:18:41 -05:00
uaccess.h tools/virtio: fix build caused by virtio_ring changes 2023-04-21 03:02:35 -04:00
uio.h tools/virtio: add vring_test. 2013-03-20 14:06:04 +10:30
virtio_byteorder.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
virtio_config.h tools: virtio: introduce vhost_net_test 2024-03-05 11:38:14 +01:00
virtio_ring.h tools/virtio: separate headers more. 2013-03-20 14:00:42 +10:30
virtio.h virtio_test: fixup for vq reset 2022-09-27 18:30:49 -04:00
vringh.h tools/virtio: fix build 2022-08-11 04:26:07 -04:00