[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [snabb-devel] Re: [virtio-dev] Writing a Virtio-net device in Lua (Snabb Switch)
I wonder whether Lua provides low level memory barriersused for virtio ring operation.
They are required for correctness on SMP systems.
With recent drivers, you might get smaller buffers as well,
starting with
Commit 2613af0ed18a ("virtio_net: migrate mergeable rx buffers to page frag
allocators")
See also
virtio-net: auto-tune mergeable rx buffer size for improved
performance
which changes the size dynamically.
> I believe that I can send packets to VMs using multiple buffers, andYes.
> that I can say how many bytes of each buffer should be used, but cannot use
> offsets (data must start at the beginning of the buffer).
> Are INDIRECT descriptors a good choice for me? I don't use it today and I don'tIn our testing it's an advantage for guest to external but not
> know if it would bring any advantages. If it would in practice give me more
> buffers from the VM then that would be positive. (I seem to only get 256
> buffers from qemu.)
external to guest.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]