virtio-net: Define cvq configuration related device parts
cover virtio-net: Define cvq configuration related device parts
virtio net driver sends the control virtqueue commands for device configuration. Such driver configuration is currently not captured in the device parts.
This series adds several of such device parts which represents the network device specific configuration.
It is done by utilizing the existing device parts structure. A new generic selector format is added to enable device type specific device parts.
This series also reuses the existing control virtqueue command structures, fields, and values to define the network device parts.
Patch summary:
patch-1 fixes a duplicate part name
patch-2 adds device type specific raw selector patch-3 defines several cvq command related device parts
Parav Pandit (3):
device-parts: editorial: Replace duplicated part type
device-parts: Add device type specific raw selector
virtio-net: Define cvq configuration related device parts
device-parts.tex | 6 ++- device-types/net/description.tex | 90 ++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1
PATCH 1/3 device-parts: editorial: Replace duplicated part type
Device part type VIRTIO_DEV_PART_VQ_CFG was duplicated in the description; it is supposed to be VIRTIO_DEV_PART_VQ_NOTIFY_CFG. Fix it.
--- device-parts.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
device-parts.tex +1 -1
@@ -75,7 +75,7 @@ \section{Device parts}\label{sec:Basic Facilities of a Virtio Device / Device pa \field{selector.vq_index.index} is the index of the virtqueue. It is valid only when the \field{part_type} is VIRTIO_DEV_PART_VQ_CFG or -VIRTIO_DEV_PART_VQ_CFG. +VIRTIO_DEV_PART_VQ_NOTIFY_CFG. \subsection{Common device parts}\label{sec:Basic Facilities of a Virtio Device / Device parts / Common device parts}
Signature · 1 line
2.34.1
Re: [PATCH 1/3] device-parts: editorial: Replace duplicated part type
Quoted 10 lines · Parav Pandit
Device part type
VIRTIO_DEV_PART_VQ_CFGwas duplicated in the description; it is supposed to beVIRTIO_DEV_PART_VQ_NOTIFY_CFG. Fix it.Fixes 617aa2d62a88 ("Signed-off-by: Parav Pandit <[email protected]>")Signed-off-by Parav Pandit <[email protected]>--- device-parts.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 17 lines
device-parts.tex +1
-1@@ -75,7 +75,7 @@ \section{Device parts}\label{sec:Basic Facilities of a Virtio Device / Device pa \field{selector.vq_index.index} is the index of the virtqueue. It is valid only when the \field{part_type} is VIRTIO_DEV_PART_VQ_CFG or -VIRTIO_DEV_PART_VQ_CFG. +VIRTIO_DEV_PART_VQ_NOTIFY_CFG. \subsection{Common device parts}\label{sec:Basic Facilities of a Virtio Device / Device parts / Common device parts}Signature · 1 line
2.34.1
PATCH 2/3 device-parts: Add device type specific raw selector
In reply to Parav PanditThe subsequent patch defines the device-type-specific parts. For these parts, the raw selector format is defined to ensure that each device type can specify its format accurately.
--- device-parts.tex | 4 ++++ 1 file changed, 4 insertions(+)
device-parts.tex +4 -0
@@ -21,6 +21,7 @@ \section{Device parts}\label{sec:Basic Facilities of a Virtio Device / Device pa le16 index; u8 reserved[6]; } vq_index; + u8 device_type_raw[8]; } selector; le32 length; };
@@ -77,6 +78,9 @@ \section{Device parts}\label{sec:Basic Facilities of a Virtio Device / Device pa only when the \field{part_type} is VIRTIO_DEV_PART_VQ_CFG or VIRTIO_DEV_PART_VQ_NOTIFY_CFG. +\field{selector.device_type_raw} is only used when a device-specific part is +utilized, with \field{part_type} ranging from 0x0200 to 0x05FF. + \subsection{Common device parts}\label{sec:Basic Facilities of a Virtio Device / Device parts / Common device parts} Common parts are independent of the device type.
Signature · 1 line
2.34.1
Re: [PATCH 2/3] device-parts: Add device type specific raw selector
Quoted 23 lines · Parav Pandit
The subsequent patch defines the device-type-specific parts. For these parts, the raw selector format is defined to ensure that each device type can specify its format accurately.
Signed-off-by Parav Pandit <[email protected]>--- device-parts.tex | 4 ++++ 1 file changed, 4 insertions(+)device-parts.tex +1
-0@@ -21,6 +21,7 @@ \section{Device parts}\label{sec:Basic Facilities of a Virtio Device / Device pa le16 index; u8 reserved[6]; } vq_index; + u8 device_type_raw[8]; } selector; le32 length; };
device-parts.tex \section{Device parts}\label{sec:Basic Facilities of a Virtio Device / Device pa · line 82
Quoted 5 lines
device-parts.tex +2
-0@@ -77,6 +78,9 @@ \section{Device parts}\label{sec:Basic Facilities of a Virtio Device / Device pa only when the \field{part_type} is VIRTIO_DEV_PART_VQ_CFG or VIRTIO_DEV_PART_VQ_NOTIFY_CFG. +\field{selector.device_type_raw} is only used when a device-specific part is +utilized, with \field{part_type} ranging from 0x0200 to 0x05FF.
Why is important here to mention the range of part_type?
Matias
RE: [PATCH 2/3] device-parts: Add device type specific raw selector
Quoted 33 lines
From: Matias Ezequiel Vara Larsen <[email protected]>
Sent: Friday, October 18, 2024 9:43 PMdevice-parts.tex \section{Device parts}\label{sec:Basic Facilities of a
Quoted 15 lines · Parav Pandit
The subsequent patch defines the device-type-specific parts. For these parts, the raw selector format is defined to ensure that each device type can specify its format accurately.
Signed-off-by Parav Pandit <[email protected]>--- device-parts.tex | 4 ++++ 1 file changed, 4 insertions(+)device-parts.tex index renamed from device-parts.tex +0
-0e59c0f9..ee743c2 100644
device-parts.tex +0
-0@@ -21,6 +21,7 @@ \section{Device parts}\label{sec:Basic Facilities of aVirtio Device / Device pa
Quoted 11 lines
device-parts.tex +1
-0le16 index; u8 reserved[6]; } vq_index; + u8 device_type_raw[8]; } selector; le32 length; };@@ -77,6 +78,9 @@ \section{Device parts}\label{sec:Basic Facilities ofa Virtio Device / Device pa only when the \field{part_type} is
VIRTIO_DEV_PART_VQ_CFGorVIRTIO_DEV_PART_VQ_NOTIFY_CFG.
Quoted 5 lines
Quoted 2 lines
+\field{selector.device_type_raw} is only used when a device-specific +part is utilized, with \field{part_type} ranging from
0x0200to0x05FF.Why is important here to mention the range of
part_type?
Not a lot.
If the rest of the text about device specific part... is clear enough than we can drop mentioning the range.
Quoted 1 line
Matias
Re: [PATCH 2/3] device-parts: Add device type specific raw selector
Quoted 33 lines · Parav Pandit
Quoted 33 lines
From: Matias Ezequiel Vara Larsen <[email protected]>
Sent: Friday, October 18, 2024 9:43 PMdevice-parts.tex \section{Device parts}\label{sec:Basic Facilities of a
Quoted 15 lines · Parav Pandit
The subsequent patch defines the device-type-specific parts. For these parts, the raw selector format is defined to ensure that each device type can specify its format accurately.
Signed-off-by Parav Pandit <[email protected]>--- device-parts.tex | 4 ++++ 1 file changed, 4 insertions(+)device-parts.tex index renamed from device-parts.tex +0
-0e59c0f9..ee743c2 100644
device-parts.tex +0
-0@@ -21,6 +21,7 @@ \section{Device parts}\label{sec:Basic Facilities of aVirtio Device / Device pa
Quoted 11 lines
device-parts.tex +1
-0le16 index; u8 reserved[6]; } vq_index; + u8 device_type_raw[8]; } selector; le32 length; };@@ -77,6 +78,9 @@ \section{Device parts}\label{sec:Basic Facilities ofa Virtio Device / Device pa only when the \field{part_type} is
VIRTIO_DEV_PART_VQ_CFGorVIRTIO_DEV_PART_VQ_NOTIFY_CFG.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
+\field{selector.device_type_raw} is only used when a device-specific +part is utilized, with \field{part_type} ranging from
0x0200to0x05FF.Why is important here to mention the range of
part_type?Not a lot.
If the rest of the text about device specific part... is clear enough than we can drop mentioning the range.
Thanks, I just asked because I though I was missing something.
Matias
PATCH 3/3 virtio-net: Define cvq configuration related device parts
In reply to Parav Panditvirtio net driver sends the control virtqueue commands for device configuration. Such driver configuration is currently not captured in the device parts.
This series adds several of such device parts which represents the network device specific configuration.
It is done by utilizing the existing device parts structure. A new generic selector format is added to enable device type specific device parts.
This series also reuses the existing control virtqueue command structures, fields, and values to define the network device parts.
--- device-types/net/description.tex | 90 ++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+)
device-types/net/description.tex +90 -0
@@ -433,6 +433,96 @@ \subsection{Device resource objects}\label{sec:Device Types / Network Device / D \hline \end{tabularx} +\subsection{Device parts}\label{sec:Device Types / Network Device / Device parts} + +Network device parts represent the configuration done by the driver using control +virtqueue commands. Network device part is in the format of +\field{struct virtio_dev_part}. + +\begin{tabularx}{\textwidth}{ |l||l|X| } +\hline +Type & Name & Description \\ +\hline \hline +0x200 & VIRTIO_NET_DEV_PART_CVQ_CFG_PART & Represents device configuration done through a control virtqueue command, see \ref{sec:Device Types / Network Device / Device parts / VIRTIO-NET-DEV-PART-CVQ-CFG-PART} \\ +\hline +0x201 - 0x5FF & - & reserved for future \\ +\hline +\hline +\end{tabularx} + +\subsubsection{VIRTIO_NET_DEV_PART_CVQ_CFG_PART}\label{sec:Device Types / Network Device / Device parts / VIRTIO-NET-DEV-PART-CVQ-CFG-PART} + +For VIRTIO_NET_DEV_PART_CVQ_CFG_PART, \field{part_type} is set to 0x200. The +VIRTIO_NET_DEV_PART_CVQ_CFG_PART part indicates configuration performed by the +driver using a control virtqueue command. + +\begin{lstlisting} +struct virtio_net_dev_part_cvq_selector { + u8 class; + u8 command; + u8 reserved[6]; +}; +\end{lstlisting} + +There is one device part of type VIRTIO_NET_DEV_PART_CVQ_CFG_PART for each +individual configuration. Each part is identified by a unique selector value. +The selector, \field{device_type_raw}, is in the format +\field{struct virtio_net_dev_part_cvq_selector}. + +The selector consists of two fields: \field{class} and \field{command}. These +fields correspond to the \field{class} and \field{command} defined in +\field{struct virtio_net_ctrl}, as described in the relevant sections of +\ref{sec:Device Types / Network Device / Device Operation / Control Virtqueue}. + +The value corresponding to each part’s selector follows the same format as the +respective \field{command-specific-data} described in the relevant sections of +\ref{sec:Device Types / Network Device / Device Operation / Control Virtqueue}. + +For example, when the \field{class} is VIRTIO_NET_CTRL_MAC, the \field{command} +can be either VIRTIO_NET_CTRL_MAC_TABLE_SET or VIRTIO_NET_CTRL_MAC_ADDR_SET; +when \field{command} is set to VIRTIO_NET_CTRL_MAC_TABLE_SET, \field{value} +is in the format of \field{struct virtio_net_ctrl_mac}. + +Supported selctors are listed in the table: + +\begin{tabularx}{\textwidth}{ |l|X| } +\hline +Class selector & Command selector \\ +\hline \hline +VIRTIO_NET_CTRL_RX & VIRTIO_NET_CTRL_RX_PROMISC \\ +\hline +VIRTIO_NET_CTRL_RX & VIRTIO_NET_CTRL_RX_ALLMULTI \\ +\hline +VIRTIO_NET_CTRL_RX & VIRTIO_NET_CTRL_RX_ALLUNI \\ +\hline +VIRTIO_NET_CTRL_RX & VIRTIO_NET_CTRL_RX_NOMULTI \\ +\hline +VIRTIO_NET_CTRL_RX & VIRTIO_NET_CTRL_RX_NOUNI \\ +\hline +VIRTIO_NET_CTRL_RX & VIRTIO_NET_CTRL_RX_NOBCAST \\ +\hline +VIRTIO_NET_CTRL_MAC & VIRTIO_NET_CTRL_MAC_TABLE_SET \\ +\hline +VIRTIO_NET_CTRL_MAC & VIRTIO_NET_CTRL_MAC_ADDR_SET \\ +\hline +VIRTIO_NET_CTRL_VLAN & VIRTIO_NET_CTRL_VLAN_ADD \\ +\hline +VIRTIO_NET_CTRL_ANNOUNCE & VIRTIO_NET_CTRL_ANNOUNCE_ACK \\ +\hline +VIRTIO_NET_CTRL_MQ & VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET \\ +\hline +VIRTIO_NET_CTRL_MQ & VIRTIO_NET_CTRL_MQ_RSS_CONFIG \\ +\hline +VIRTIO_NET_CTRL_MQ & VIRTIO_NET_CTRL_MQ_HASH_CONFIG \\ +\hline +\hline +\end{tabularx} + +For command selector VIRTIO_NET_CTRL_VLAN_ADD, device part consists of a whole +VLAN table. + +\field{reserved} is reserved and set to zero. + \subsection{Device Operation}\label{sec:Device Types / Network Device / Device Operation} Packets are transmitted by placing them in the
Signature · 1 line
2.34.1
Quoted 69 lines · Parav Pandit
virtio net driver sends the control virtqueue commands for device configuration. Such driver configuration is currently not captured in the device parts.
This series adds several of such device parts which represents the network device specific configuration.
It is done by utilizing the existing device parts structure. A new generic selector format is added to enable device type specific device parts.
This series also reuses the existing control virtqueue command structures, fields, and values to define the network device parts.
Signed-off-by Parav Pandit <[email protected]>--- device-types/net/description.tex | 90 ++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+)device-types/net/description.tex +41
-0@@ -433,6 +433,96 @@ \subsection{Device resource objects}\label{sec:Device Types / Network Device / D \hline \end{tabularx} +\subsection{Device parts}\label{sec:Device Types / Network Device / Device parts} + +Network device parts represent the configuration done by the driver using control +virtqueue commands. Network device part is in the format of +\field{struct virtio_dev_part}. + +\begin{tabularx}{\textwidth}{ |l||l|X| } +\hline +Type & Name & Description \\ +\hline \hline +0x200 & VIRTIO_NET_DEV_PART_CVQ_CFG_PART & Represents device configuration done through a control virtqueue command, see \ref{sec:Device Types / Network Device / Device parts / VIRTIO-NET-DEV-PART-CVQ-CFG-PART} \\ +\hline +0x201 - 0x5FF & - & reserved for future \\ +\hline +\hline +\end{tabularx} + +\subsubsection{VIRTIO_NET_DEV_PART_CVQ_CFG_PART}\label{sec:Device Types / Network Device / Device parts / VIRTIO-NET-DEV-PART-CVQ-CFG-PART} + +For VIRTIO_NET_DEV_PART_CVQ_CFG_PART, \field{part_type} is set to 0x200. The +VIRTIO_NET_DEV_PART_CVQ_CFG_PART part indicates configuration performed by the +driver using a control virtqueue command. + +\begin{lstlisting} +struct virtio_net_dev_part_cvq_selector { + u8 class; + u8 command; + u8 reserved[6]; +}; +\end{lstlisting} + +There is one device part of type VIRTIO_NET_DEV_PART_CVQ_CFG_PART for each +individual configuration. Each part is identified by a unique selector value. +The selector, \field{device_type_raw}, is in the format +\field{struct virtio_net_dev_part_cvq_selector}. + +The selector consists of two fields: \field{class} and \field{command}. These +fields correspond to the \field{class} and \field{command} defined in +\field{struct virtio_net_ctrl}, as described in the relevant sections of +\ref{sec:Device Types / Network Device / Device Operation / Control Virtqueue}. +
device-types/net/description.tex \subsection{Device resource objects}\label{sec:Device Types / Network Device / D · line 486
Quoted 10 lines
device-types/net/description.tex +10
-0+The value corresponding to each part’s selector follows the same format as the +respective \field{command-specific-data} described in the relevant sections of +\ref{sec:Device Types / Network Device / Device Operation / Control Virtqueue}. + +For example, when the \field{class} is VIRTIO_NET_CTRL_MAC, the \field{command} +can be either VIRTIO_NET_CTRL_MAC_TABLE_SET or VIRTIO_NET_CTRL_MAC_ADDR_SET; +when \field{command} is set to VIRTIO_NET_CTRL_MAC_TABLE_SET, \field{value} +is in the format of \field{struct virtio_net_ctrl_mac}. + +Supported selctors are listed in the table:
s/selctors/selectors
Quoted 45 lines
device-types/net/description.tex +39
-0+ +\begin{tabularx}{\textwidth}{ |l|X| } +\hline +Class selector & Command selector \\ +\hline \hline +VIRTIO_NET_CTRL_RX & VIRTIO_NET_CTRL_RX_PROMISC \\ +\hline +VIRTIO_NET_CTRL_RX & VIRTIO_NET_CTRL_RX_ALLMULTI \\ +\hline +VIRTIO_NET_CTRL_RX & VIRTIO_NET_CTRL_RX_ALLUNI \\ +\hline +VIRTIO_NET_CTRL_RX & VIRTIO_NET_CTRL_RX_NOMULTI \\ +\hline +VIRTIO_NET_CTRL_RX & VIRTIO_NET_CTRL_RX_NOUNI \\ +\hline +VIRTIO_NET_CTRL_RX & VIRTIO_NET_CTRL_RX_NOBCAST \\ +\hline +VIRTIO_NET_CTRL_MAC & VIRTIO_NET_CTRL_MAC_TABLE_SET \\ +\hline +VIRTIO_NET_CTRL_MAC & VIRTIO_NET_CTRL_MAC_ADDR_SET \\ +\hline +VIRTIO_NET_CTRL_VLAN & VIRTIO_NET_CTRL_VLAN_ADD \\ +\hline +VIRTIO_NET_CTRL_ANNOUNCE & VIRTIO_NET_CTRL_ANNOUNCE_ACK \\ +\hline +VIRTIO_NET_CTRL_MQ & VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET \\ +\hline +VIRTIO_NET_CTRL_MQ & VIRTIO_NET_CTRL_MQ_RSS_CONFIG \\ +\hline +VIRTIO_NET_CTRL_MQ & VIRTIO_NET_CTRL_MQ_HASH_CONFIG \\ +\hline +\hline +\end{tabularx} + +For command selector VIRTIO_NET_CTRL_VLAN_ADD, device part consists of a whole +VLAN table. + +\field{reserved} is reserved and set to zero. + \subsection{Device Operation}\label{sec:Device Types / Network Device / Device Operation} Packets are transmitted by placing them in theSignature · 1 line
2.34.1
Quoted 93 lines
From: Matias Ezequiel Vara Larsen <[email protected]>
Sent: Friday, October 18, 2024 9:55 PMQuoted 37 lines · Parav Pandit
virtio net driver sends the control virtqueue commands for device configuration. Such driver configuration is currently not captured in the device parts.
This series adds several of such device parts which represents the network device specific configuration.
It is done by utilizing the existing device parts structure. A new generic selector format is added to enable device type specific device parts.
This series also reuses the existing control virtqueue command structures, fields, and values to define the network device parts.
Signed-off-by Parav Pandit <[email protected]>--- device-types/net/description.tex | 90 ++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+)device-types/net/description.tex +0
-0@@ -433,6 +433,96 @@ \subsection{Device resourceobjects}\label{sec:Device Types / Network Device / D \hline \end{tabularx}
+\subsection{Device parts}\label{sec:Device Types / Network Device /
device-types/net/description.tex +5
-0+Device parts} + +Network device parts represent the configuration done by the driver +using control virtqueue commands. Network device part is in the +format of \field{struct virtio_dev_part}.device-types/net/description.tex
Quoted 10 lines
device-types/net/description.tex +10
-0+ +\begin{tabularx}{\textwidth}{ |l||l|X| } \hline Type & Name & +Description \\ \hline \hline +0x200 & VIRTIO_NET_DEV_PART_CVQ_CFG_PART & Represents device +configuration done through a control virtqueue command, see +\ref{sec:Device Types / Network Device / Device parts / +VIRTIO-NET-DEV-PART-CVQ-CFG-PART} \\ \hline +0x201 - 0x5FF & - & reserved for future \\ \hline \hline +\end{tabularx} ++\subsubsection{VIRTIO_NET_DEV_PART_CVQ_CFG_PART}\label{sec:Device
device-types/net/description.tex
Quoted 6 lines
device-types/net/description.tex +6
-0+Types / Network Device / Device parts / +VIRTIO-NET-DEV-PART-CVQ-CFG-PART} + +For VIRTIO_NET_DEV_PART_CVQ_CFG_PART, \field{part_type} is set to +0x200. The VIRTIO_NET_DEV_PART_CVQ_CFG_PART part indicates +configuration performed by the driver using a control virtqueuecommand.
device-types/net/description.tex \subsection{Device resource objects}\label{sec:Device Types / Network Device / D
Quoted 10 lines
device-types/net/description.tex +10
-0+ +\begin{lstlisting} +struct virtio_net_dev_part_cvq_selector { + u8 class; + u8 command; + u8 reserved[6]; +}; +\end{lstlisting} + +There is one device part of type VIRTIO_NET_DEV_PART_CVQ_CFG_PARTfor
Quoted 1 line
+each individual configuration. Each part is identified by a unique selector
value.
device-types/net/description.tex
Quoted 7 lines
device-types/net/description.tex +7
-0+The selector, \field{device_type_raw}, is in the format \field{struct +virtio_net_dev_part_cvq_selector}. + +The selector consists of two fields: \field{class} and +\field{command}. These fields correspond to the \field{class} and +\field{command} defined in \field{struct virtio_net_ctrl}, as +described in the relevant sections of \ref{sec:Device Types / NetworkDevice / Device Operation / Control Virtqueue}.
device-types/net/description.tex
Quoted 4 lines
device-types/net/description.tex +4
-0+ +The value corresponding to each part’s selector follows the same +format as the respective \field{command-specific-data} described in +the relevant sections of \ref{sec:Device Types / Network Device / DeviceOperation / Control Virtqueue}.
device-types/net/description.tex
Quoted 5 lines
device-types/net/description.tex +5
-0+ +For example, when the \field{class} is VIRTIO_NET_CTRL_MAC, the +\field{command} can be either VIRTIO_NET_CTRL_MAC_TABLE_SET or +VIRTIO_NET_CTRL_MAC_ADDR_SET; when \field{command} is set to +VIRTIO_NET_CTRL_MAC_TABLE_SET, \field{value} is in the format of\field{struct
virtio_net_ctrl_mac}.
Quoted 5 lines
device-types/net/description.tex
Quoted 2 lines
device-types/net/description.tex +2
-0+ +Supported selctors are listed in the table:s/selctors/selectors
I ran codespell tool but pity it didn’t catch this. Need to look for another one.
Will fix this.
Quoted 25 lines
Quoted 25 lines
device-types/net/description.tex +22
-0+ +\begin{tabularx}{\textwidth}{ |l|X| } \hline Class selector & Command +selector \\ \hline \hline VIRTIO_NET_CTRL_RX & +VIRTIO_NET_CTRL_RX_PROMISC \\ \hline VIRTIO_NET_CTRL_RX & +VIRTIO_NET_CTRL_RX_ALLMULTI \\ \hline VIRTIO_NET_CTRL_RX & +VIRTIO_NET_CTRL_RX_ALLUNI \\ \hline VIRTIO_NET_CTRL_RX & +VIRTIO_NET_CTRL_RX_NOMULTI \\ \hline VIRTIO_NET_CTRL_RX & +VIRTIO_NET_CTRL_RX_NOUNI \\ \hline VIRTIO_NET_CTRL_RX & +VIRTIO_NET_CTRL_RX_NOBCAST \\ \hline VIRTIO_NET_CTRL_MAC & +VIRTIO_NET_CTRL_MAC_TABLE_SET \\ \hline VIRTIO_NET_CTRL_MAC & +VIRTIO_NET_CTRL_MAC_ADDR_SET \\ \hline VIRTIO_NET_CTRL_VLAN & +VIRTIO_NET_CTRL_VLAN_ADD \\ \hline VIRTIO_NET_CTRL_ANNOUNCE & +VIRTIO_NET_CTRL_ANNOUNCE_ACK \\ \hline VIRTIO_NET_CTRL_MQ & +VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET \\ \hline VIRTIO_NET_CTRL_MQ & +VIRTIO_NET_CTRL_MQ_RSS_CONFIG \\ \hline VIRTIO_NET_CTRL_MQ & +VIRTIO_NET_CTRL_MQ_HASH_CONFIG \\ \hline \hline \end{tabularx} + +For command selector VIRTIO_NET_CTRL_VLAN_ADD, device part consists +of a whole VLAN table. + +\field{reserved} is reserved and set to zero. + \subsection{Device Operation}\label{sec:Device Types / Network Device/ Device Operation}
Quoted 6 lines
Quoted 4 lines
Packets are transmitted by placing them in the
--
2.34.1Reviewed-by Matias Ezequiel Vara Larsen <[email protected]>
Thanks.