Skip to content

Commit

Permalink
net: relax buf size requirements for mrg buffers
Browse files Browse the repository at this point in the history
VIRTIO-84 added a requirement that each buffer is > header size but
there's no reason to require that for merge-able buffers since data can
be placed in follow-up buffers.

The current wording seems confusing enough that it seems likely
no one relies on this.

VIRTIO-159

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <1490654778-11857-1-git-send-email-mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
  • Loading branch information
mstsirkin authored and cohuck committed Sep 11, 2017
1 parent 4efd303 commit 2faf9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content.tex
Expand Up @@ -3524,7 +3524,7 @@ \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi
with buffers of at least 1526 bytes.
\end{itemize}
\item If VIRTIO_NET_F_MRG_RXBUF is negotiated, each buffer MUST be at
greater than the size of the struct virtio_net_hdr.
least the size of the struct virtio_net_hdr.
\end{itemize}

\begin{note}
Expand Down

0 comments on commit 2faf9b0

Please sign in to comment.