Re: [PATCH 1/3] virtio_net: pass well-formed sgs to virtqueue_add_*()

Jesper Dangaard Brouer
2014-09-03T10:23:50Z

On Wed, 3 Sep 2014 13:59:14 +0930
Rusty Russell <rusty@rustcorp.com.au> wrote:

> pktgen results:
> modprobe pktgen
> echo 'add_device eth0' > /proc/net/pktgen/kpktgend_0
> echo nowait 1 > /proc/net/pktgen/eth0

Maybe your pktgen "nowait" (patch) should be a flag instead?

echo "flag EXIT_NO_WAIT" > /proc/net/pktgen/eth0

> echo count 1000000 > /proc/net/pktgen/eth0
> echo clone_skb 100000 > /proc/net/pktgen/eth0
> echo dst_mac 4e:14:25:a9:30:ac > /proc/net/pktgen/eth0
> echo dst 192.168.1.2 > /proc/net/pktgen/eth0
> for i in `seq 20`; do echo start > /proc/net/pktgen/pgctrl; tail -n1 /proc/net/pktgen/eth0; done
>

--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Sr. Network Kernel Developer at Red Hat
Author of http://www.iptv-analyzer.org
LinkedIn: http://www.linkedin.com/in/brouer