Skip to content

Commit

Permalink
vsock: add documentation about len header field
Browse files Browse the repository at this point in the history
Fixes: #137

Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Laura Loghin <lauralg@amazon.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
  • Loading branch information
lauralt authored and cohuck committed Jun 13, 2022
1 parent 5da7c14 commit ad2e167
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions virtio-vsock.tex
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ \subsection{Device Operation}\label{sec:Device Types / Socket Device / Device Op
#define VIRTIO_VSOCK_OP_CREDIT_REQUEST 7
\end{lstlisting}

\field{len} is the size of the payload, in bytes. However, the driver may
provide buffer(s) for the payload that have a total size longer than
\field{len}, in which case only the first \field{len} bytes will be used for
the actual data.

\subsubsection{Virtqueue Flow Control}\label{sec:Device Types / Socket Device / Device Operation / Virtqueue Flow Control}

The tx virtqueue carries packets initiated by applications and replies to
Expand Down

0 comments on commit ad2e167

Please sign in to comment.