[dpdk-dev] [PATCH 4/5] virtio: use any layout on transmit

Stephen Hemminger stephen at networkplumber.org
Mon Oct 19 19:19:34 CEST 2015


On Mon, 19 Oct 2015 16:28:30 +0000
"Xie, Huawei" <huawei.xie at intel.com> wrote:

> "When using legacy interfaces, transitional drivers which have not
> negotiated VIRTIO_F_ANY_LAYOUT
> MUST use a single descriptor for the struct virtio_net_hdr on both
> transmit and receive, with the
> network data in the following descriptors."
> 
> I think we shouldn't assume that virtio header descriptor uses a
> separate descriptor. It could be with data. Virtio RX(and dpdk vhost)
> actually is implemented like this before, i.e, i thought this should be
> inherent but not a feature.
> Is the current RX implementation wrong?

I believe current RX is ok, the any layout refers more to what is
handed to the host on transmit. Rusty said something like
"any sane implementation would work with contiguous buffer"
but the standard couldn't assume sanity!


More information about the dev mailing list