Skip to contentSkip to conversation

virtio-net: editorial: Annotate structure field

PATCH In review Parav Pandit 2 participants 4 messages Oct 18, 2024

lore
Share & tools
lore
#0 lore raw

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
index b2a0d39..6950114 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

---
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
index b2a0d39..6950114 100644
@@ -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
#2 lore raw

Hi Stefano,

Quoted 12 lines

From: Stefano Garzarella <[email protected]>
Sent: Friday, October 18, 2024 12:43 PM

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.

---
device-types/net/description.tex | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 9 lines

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"?

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.

#3 lore raw
Quoted 23 lines · Parav Pandit

Hi Stefano,

Quoted 12 lines

From: Stefano Garzarella <[email protected]>
Sent: Friday, October 18, 2024 12:43 PM

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.

---
device-types/net/description.tex | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 9 lines

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"?

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