[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bef1c5383d9202984b08b19f88e0a3bbbd550e3f.camel@infradead.org>
Date: Fri, 12 Apr 2019 08:45:14 +0300
From: David Woodhouse <dwmw2@...radead.org>
To: Jason Wang <jasowang@...hat.com>,
Toke Høiland-Jørgensen <toke@...hat.com>,
netdev@...r.kernel.org
Subject: Re: Tun congestion/BQL
On Fri, 2019-04-12 at 12:26 +0800, Jason Wang wrote:
> Yes, you can refer:
>
> 1) Qemu hw/virtio/vhost.c or hw/net/vhost_net.c
>
> 2) dpdk drivers/net/virtio/virtio_user/vhost_kernel_tap.c
>
> DPDK code seems more compact.
>
> Basically, the setup of TUN/TAP should be the same, then userspace need
> to allocate virtio rings and pass them and tap fd to vhost through
> vhost_net ioctls.
Thanks, I'll take a look. Although I might have to do something about
the server side first. I had been using my client with the kernel's ESP
support on an adjacent identical box, naïvely assuming that the kernel
would be able to keep up with anything that userspace could send.
But ksoftirqd is eating 100% of a single CPU and the kernel is starting
to drop incoming packets already.
Download attachment "smime.p7s" of type "application/x-pkcs7-signature" (5174 bytes)
Powered by blists - more mailing lists