Re: [PATCH net-next v6 5/5] tools: virtio: introduce vhost_net_test

From
Paolo Abeni <pabeni@redhat.com>
Date
2024-03-05 09:51:44
Also in
lkml, virtualization
Reply to
Yunsheng Lin, 2024-02-28
On Wed, 2024-02-28 at 17:30 +0800, Yunsheng Lin wrote:
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 <redacted>
@Jason: AFAICS this addresses the points you raised on v5, could you
please have a look?

Thanks!

Paolo
Thread (11 messages) 11 messages, 5 authors, last reply 2024-04-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help