virtio-net: editorial: Annotate structure field
PATCH 1/1 virtio-net: editorial: Annotate structure field
Field command-specific-data is a structure field. Annotate it as a field so that generated pdf shows it accordingly.
--- device-types/net/description.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
device-types/net/description.tex +1 -1
@@ -1217,7 +1217,7 @@ \subsubsection{Control Virtqueue}\label{sec:Device Types / Network Device / Devi #define VIRTIO_NET_ERR 1 \end{lstlisting} -The \field{class}, \field{command} and command-specific-data are set by the +The \field{class}, \field{command} and \field{command-specific-data} are set by the driver, and the device sets the \field{ack} byte and optionally \field{command-specific-result}. There is little the driver can do except issue a diagnostic if \field{ack} is not VIRTIO_NET_OK.
Signature · 1 line
2.34.1
Quoted 7 lines · Parav Pandit
Field command-specific-data is a structure field. Annotate it as a field so that generated pdf shows it accordingly.
Signed-off-by Parav Pandit <[email protected]>---
device-types/net/description.tex | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
LGTM:
Just for curiosity, but do you know why for example in the sub-paragraph "Packet Receive Filtering"", just a few lines below, we don't use \field{} at all when we talk about "command-specific-data"?
Looking in that document there are parts where we use \field{} and parts where we don't, is there a rule to follow? (To my knowledge for future reference)
Thanks,
Stefano
Quoted 18 lines
device-types/net/description.tex +1
-1@@ -1217,7 +1217,7 @@ \subsubsection{Control Virtqueue}\label{sec:Device Types / Network Device / Devi #define VIRTIO_NET_ERR 1 \end{lstlisting} -The \field{class}, \field{command} and command-specific-data are set by the +The \field{class}, \field{command} and \field{command-specific-data} are set by thedriver, and the device sets the \field{ack} byte and optionally \field{command-specific-result}. There is little the driver can do except issue a diagnostic if \field{ack} is not
VIRTIO_NET_OK.Signature · 1 line
2.34.1
Hi Stefano,
Quoted 12 lines
From: Stefano Garzarella <[email protected]>
Sent: Friday, October 18, 2024 12:43 PMQuoted 7 lines · Parav Pandit
Field command-specific-data is a structure field. Annotate it as a field so that generated pdf shows it accordingly.
Signed-off-by Parav Pandit <[email protected]>---
device-types/net/description.tex | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 9 lines
LGTM:
Reviewed-by Stefano Garzarella <[email protected]>Just for curiosity, but do you know why for example in the sub-paragraph "Packet Receive Filtering"", just a few lines below, we don't use \field{} at all when we talk about "command-specific-data"?
Good point. I noticed those few places too now. Sending v1 with the fixes.
Quoted 3 lines
Looking in that document there are parts where we use \field{} and parts where we don't, is there a rule to follow? (To my knowledge for future reference)
Any structure field and structure name itself should be annotated as \field{} when referring in the description.
Quoted 23 lines · Parav Pandit
Hi Stefano,
Quoted 12 lines
From: Stefano Garzarella <[email protected]>
Sent: Friday, October 18, 2024 12:43 PMQuoted 7 lines · Parav Pandit
Field command-specific-data is a structure field. Annotate it as a field so that generated pdf shows it accordingly.
Signed-off-by Parav Pandit <[email protected]>---
device-types/net/description.tex | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)Quoted 9 lines
LGTM:
Reviewed-by Stefano Garzarella <[email protected]>Just for curiosity, but do you know why for example in the sub-paragraph "Packet Receive Filtering"", just a few lines below, we don't use \field{} at all when we talk about "command-specific-data"?
Quoted 7 lines
Good point. I noticed those few places too now. Sending v1 with the fixes.
Quoted 3 lines
Looking in that document there are parts where we use \field{} and parts where we don't, is there a rule to follow? (To my knowledge for future reference)
Any structure field and structure name itself should be annotated as \field{} when referring in the description.
I see, thanks for sharing!
Stefano