[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [PATCH 1/4] virtio-net: Place C code under listing
With extra white space for the define, pdf generation fails. Also place the C code under listing. Signed-off-by: Parav Pandit <parav@nvidia.com> --- device-types/net/description.tex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/device-types/net/description.tex b/device-types/net/description.tex index 206020d..6fd4a20 100644 --- a/device-types/net/description.tex +++ b/device-types/net/description.tex @@ -1024,12 +1024,14 @@ \subsubsection{Processing of Incoming Packets}\label{sec:Device Types / Network If VIRTIO_NET_F_HASH_TUNNEL has been negotiated, the driver can send the command VIRTIO_NET_CTRL_HASH_TUNNEL_SET to configure the calculation of the inner header hash. +\begin{lstlisting} struct virtnet_hash_tunnel { le32 enabled_tunnel_types; }; #define VIRTIO_NET_CTRL_HASH_TUNNEL 7 - #define VIRTIO_NET_CTRL_HASH_TUNNEL_SET 0 +#define VIRTIO_NET_CTRL_HASH_TUNNEL_SET 0 +\end{lstlisting} Field \field{enabled_tunnel_types} contains the bitmask of encapsulation types enabled for inner header hash. See \ref{sec:Device Types / Network Device / Device Operation / Processing of Incoming Packets / -- 2.26.2
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]