← Prev in month ← Prev in thread

Re: [virtio-comment] [PATCH] virtio-net: Add an optional device control over the receive buffers length

From
Stefan Hajnoczi <>
Date
2020-01-03T15:22:55+00:00
ID
Thread
Re: [virtio-comment] [PATCH] virtio-net: Add an optional device control over the receive buffers length
On Mon, Dec 30, 2019 at 01:59:17PM +0000, Vitaly Mireyno wrote:
> @@ -2916,6 +2933,15 @@ \subsection{Device configuration layout}\label{sec:Device Types / Network Device
>  If the driver negotiates the VIRTIO_NET_F_STANDBY feature, the device MAY act
>  as a standby device for a primary device with the same MAC address.
>  
> +A driver SHOULD accept the VIRTIO_NET_F_RXBUF_MIN_LEN feature if offered.
> +
> +If VIRTIO_NET_F_RXBUF_MIN_LEN feature has been negotiated, the driver MUST
> +set \field{min_rx_buf_len}.
> +
> +A driver MUST NOT modify \field{min_rx_buf_len} once it has been set.

When must the driver set the fields?  I guess it makes no sense to set
this field after starting rx (i.e. populating the rx virtqueue)...  The
spec should be explicit about this.
← Prev in month ← Prev in thread