Skip to contentSkip to conversation

virtio-net: Clarify virtio_net_hdr size and rx buffer size

PATCH In review Parav Pandit 3 participants 13 messages Nov 10, 2023 – Dec 14, 2023

lore
Share & tools
lore
#0 lore raw

cover virtio-net: Clarify virtio_net_hdr size and rx buffer size

There are few small issues around size of receive buffer and size of the struct virtio_net_hdr as following.

1. VIRTIO_NET_F_HASH_REPORT is only applicable on the rx side processing. However it changes the size of the struct virtio_net_hdr for the tx side as well. This was not clarified when VIRTIO_NET_F_HASH_REPORT feature was introduced.

2. Receive buffer size calculation description and requirements did not reflect negotiation of VIRTIO_NET_F_HASH_REPORT.

3. Receive buffer size calculation was incorrect for ipv6 guest gso feature.

Above issue 2 was reported in [1].
Since issue 2 and 3 both touches the same set of requirements and description, they are updated under a new issue along with tx side fix as well touching the clarification needed for VIRTIO_NET_F_HASH_REPORT.

Hence above three issues are fixed under issue of [2].

Patch summary:
patch-1 fixes receive side description and requirement patch-2 adds transmit side clarification for VIRTIO_NET_F_HASH_REPORT

Please review.

Parav Pandit (2):
virtio-net: Fix receive buffer size calculation text
virtio-net: Clarify the size of the struct virtio_net_hdr for tx

 device-types/net/description.tex | 31 ++++++++++++++++++++++++-------
 1 file changed, 24 insertions(+), 7 deletions(-)
Signature · 18 lines
2.34.1


This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
#1 lore raw

PATCH 1/2 virtio-net: Fix receive buffer size calculation text

Receive buffer size calculation is based on the following negotiated features.

The text has wrong calculation for IPv6 and also it has missed VIRTIO_NET_F_HASH_REPORT.

The problem of igorance of VIRTIO_NET_F_HASH_REPORT is reported in [1], however fix for ipv6 payload length must also be considered.

Since for the both the fixes touching same requirements, a new issue is created as [2].

This patch brings following fixes.

1. Fix annotating struct virtio_net_hdr as field
2. Fix receive buffer calculation for guest GSO cases to consider ipv6 payload length
3. small grammar corrections for article
4. reword the requirement to consider the virtio_ndr_hdr which is depends on the negotiated feature, hence first clarify the struct virtio_net_hdr size

[1] https://github.com/oasis-tcs/virtio-spec/issues/170
[2] https://github.com/oasis-tcs/virtio-spec/issues/183

---
 device-types/net/description.tex | 25 ++++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)
device-types/net/description.tex +18 -7
index 96f7dc5..f5647d4 100644
@@ -660,24 +660,35 @@ \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi
 If the VIRTIO_NET_F_GUEST_TSO4, VIRTIO_NET_F_GUEST_TSO6,
 VIRTIO_NET_F_GUEST_UFO, VIRTIO_NET_F_GUEST_USO4 or VIRTIO_NET_F_GUEST_USO6
 features are used, the maximum incoming packet
-will be to 65550 bytes long (the maximum size of a
-TCP or UDP packet, plus the 14 byte ethernet header), otherwise
-1514 bytes.  The 12-byte struct virtio_net_hdr is prepended to this,
-making for 65562 or 1526 bytes.
+will of size 65589 bytes long (14 bytes of Ethernet header, plus 40 bytes of
+the IPv6 header, plus 65535 bytes of maximum IPv6 payload including any
+extension header) otherwise 1514 bytes.
+When VIRTIO_NET_F_HASH_REPORT is not negotiated, the required receive buffer
+size is either 65601 or 1526 bytes.
+When VIRTIO_NET_F_HASH_REPORT is negotiated, the required receive buffer
+size is either 65609 or 1534 bytes.
 
 \drivernormative{\paragraph}{Setting Up Receive Buffers}{Device Types / Network Device / Device Operation / Setting Up Receive Buffers}
 
+If VIRTIO_NET_F_HASH_REPORT is not negotiated, the size of the field
+\field{struct virtio_net_hdr} is 12 bytes.
+
+If VIRTIO_NET_F_HASH_REPORT is negotiated, the size of the field
+\field{struct virtio_net_hdr} is 20 bytes.
+
 \begin{itemize}
 \item If VIRTIO_NET_F_MRG_RXBUF is not negotiated:
   \begin{itemize}
     \item If VIRTIO_NET_F_GUEST_TSO4, VIRTIO_NET_F_GUEST_TSO6, VIRTIO_NET_F_GUEST_UFO,
 	VIRTIO_NET_F_GUEST_USO4 or VIRTIO_NET_F_GUEST_USO6 are negotiated, the driver SHOULD populate
-      the receive queue(s) with buffers of at least 65562 bytes.
+      the receive queue(s) with buffers of at least 65589 bytes plus the size
+      of the \field{struct virtio_net_hdr}.
     \item Otherwise, the driver SHOULD populate the receive queue(s)
-      with buffers of at least 1526 bytes.
+      with buffers of at least 1514 bytes plus the size of the
+      \field{struct virtio_net_hdr}.
   \end{itemize}
 \item If VIRTIO_NET_F_MRG_RXBUF is negotiated, each buffer MUST be at
-least the size of the struct virtio_net_hdr.
+least the size of the \field{struct virtio_net_hdr}.
 \end{itemize}
 
 \begin{note}
Signature · 18 lines
2.34.1


This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
#2 lore raw

Re: [virtio-comment] [PATCH 1/2] virtio-net: Fix receive buffer size calculation text

Quoted 50 lines · Parav Pandit

Receive buffer size calculation is based on the following negotiated features.

The text has wrong calculation for IPv6 and also it has missed VIRTIO_NET_F_HASH_REPORT.

The problem of igorance of VIRTIO_NET_F_HASH_REPORT is reported in [1], however fix for ipv6 payload length must also be considered.

Since for the both the fixes touching same requirements, a new issue is created as [2].

This patch brings following fixes.

1. Fix annotating struct virtio_net_hdr as field
2. Fix receive buffer calculation for guest GSO cases to consider ipv6 payload length
3. small grammar corrections for article
4. reword the requirement to consider the virtio_ndr_hdr which is depends on the negotiated feature, hence first clarify the struct virtio_net_hdr size

[1] https://github.com/oasis-tcs/virtio-spec/issues/170
[2] https://github.com/oasis-tcs/virtio-spec/issues/183

---
 device-types/net/description.tex | 25 ++++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)
device-types/net/description.tex +5 -4
index 96f7dc5..f5647d4 100644
@@ -660,24 +660,35 @@ \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi
 If the VIRTIO_NET_F_GUEST_TSO4, VIRTIO_NET_F_GUEST_TSO6,
 VIRTIO_NET_F_GUEST_UFO, VIRTIO_NET_F_GUEST_USO4 or VIRTIO_NET_F_GUEST_USO6
 features are used, the maximum incoming packet
-will be to 65550 bytes long (the maximum size of a
-TCP or UDP packet, plus the 14 byte ethernet header), otherwise
-1514 bytes.  The 12-byte struct virtio_net_hdr is prepended to this,
-making for 65562 or 1526 bytes.
+will of size 65589 bytes long (14 bytes of Ethernet header, plus 40 bytes of
+the IPv6 header, plus 65535 bytes of maximum IPv6 payload including any
+extension header) otherwise 1514 bytes.
+When VIRTIO_NET_F_HASH_REPORT is not negotiated, the required receive buffer
+size is either 65601 or 1526 bytes.

device-types/net/description.tex \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi · line 677

Quoted 10 lines
device-types/net/description.tex +7 -0
+When VIRTIO_NET_F_HASH_REPORT is negotiated, the required receive buffer
+size is either 65609 or 1534 bytes.
 
 \drivernormative{\paragraph}{Setting Up Receive Buffers}{Device Types / Network Device / Device Operation / Setting Up Receive Buffers}
 
+If VIRTIO_NET_F_HASH_REPORT is not negotiated, the size of the field
+\field{struct virtio_net_hdr} is 12 bytes.
+
+If VIRTIO_NET_F_HASH_REPORT is negotiated, the size of the field
+\field{struct virtio_net_hdr} is 20 bytes.

For the receive side, is these needed?

Other is ok to me.

Thanks

Quoted 31 lines
device-types/net/description.tex +6 -4
+
 \begin{itemize}
 \item If VIRTIO_NET_F_MRG_RXBUF is not negotiated:
   \begin{itemize}
     \item If VIRTIO_NET_F_GUEST_TSO4, VIRTIO_NET_F_GUEST_TSO6, VIRTIO_NET_F_GUEST_UFO,
 	VIRTIO_NET_F_GUEST_USO4 or VIRTIO_NET_F_GUEST_USO6 are negotiated, the driver SHOULD populate
-      the receive queue(s) with buffers of at least 65562 bytes.
+      the receive queue(s) with buffers of at least 65589 bytes plus the size
+      of the \field{struct virtio_net_hdr}.
     \item Otherwise, the driver SHOULD populate the receive queue(s)
-      with buffers of at least 1526 bytes.
+      with buffers of at least 1514 bytes plus the size of the
+      \field{struct virtio_net_hdr}.
   \end{itemize}
 \item If VIRTIO_NET_F_MRG_RXBUF is negotiated, each buffer MUST be at
-least the size of the struct virtio_net_hdr.
+least the size of the \field{struct virtio_net_hdr}.
 \end{itemize}
 
 \begin{note}
--

2.34.1

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Quoted 9 lines

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

#3 lore raw

RE: [virtio-comment] [PATCH 1/2] virtio-net: Fix receive buffer size calculation text

Quoted 60 lines

From: Xuan Zhuo <[email protected]>
Sent: Wednesday, December 13, 2023 12:13 PM

Quoted 54 lines · Parav Pandit

Receive buffer size calculation is based on the following negotiated features.

The text has wrong calculation for IPv6 and also it has missed VIRTIO_NET_F_HASH_REPORT.

The problem of igorance of VIRTIO_NET_F_HASH_REPORT is reported in [1], however fix for ipv6 payload length must also be considered.

Since for the both the fixes touching same requirements, a new issue is created as [2].

This patch brings following fixes.

1. Fix annotating struct virtio_net_hdr as field 2. Fix receive buffer calculation for guest GSO cases to consider
ipv6 payload length
3. small grammar corrections for article 4. reword the requirement to consider the virtio_ndr_hdr which is
depends on the negotiated feature, hence first clarify the struct virtio_net_hdr size

[1] https://github.com/oasis-tcs/virtio-spec/issues/170
[2] https://github.com/oasis-tcs/virtio-spec/issues/183

---
 device-types/net/description.tex | 25 ++++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)
device-types/net/description.tex +0 -0
index 96f7dc5..f5647d4 100644
@@ -660,24 +660,35 @@ \subsubsection{Setting Up Receive

Buffers}\label{sec:Device Types / Network Devi If the VIRTIO_NET_F_GUEST_TSO4, VIRTIO_NET_F_GUEST_TSO6, VIRTIO_NET_F_GUEST_UFO, VIRTIO_NET_F_GUEST_USO4 or VIRTIO_NET_F_GUEST_USO6 features are used, the maximum incoming packet -will be to 65550 bytes long (the maximum size of a -TCP or UDP packet, plus the 14 byte ethernet header), otherwise
-1514 bytes. The 12-byte struct virtio_net_hdr is prepended to this,

device-types/net/description.tex +7 -1
-making for 65562 or 1526 bytes.
+will of size 65589 bytes long (14 bytes of Ethernet header, plus 40
+bytes of the IPv6 header, plus 65535 bytes of maximum IPv6 payload
+including any extension header) otherwise 1514 bytes.
+When VIRTIO_NET_F_HASH_REPORT is not negotiated, the required receive
+buffer size is either 65601 or 1526 bytes.
+When VIRTIO_NET_F_HASH_REPORT is negotiated, the required receive
+buffer size is either 65609 or 1534 bytes.
Quoted 6 lines

device-types/net/description.tex \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi · line 675

Quoted 6 lines

\drivernormative{\paragraph}{Setting Up Receive Buffers}{Device Types
/ Network Device / Device Operation / Setting Up Receive Buffers}

device-types/net/description.tex +3 -0
+If VIRTIO_NET_F_HASH_REPORT is not negotiated, the size of the field
+\field{struct virtio_net_hdr} is 12 bytes.
+

I realized just now, that above normative is incorrect due to optional VIRTIO_NET_F_MRG_RXBUF. I will remove/reword it.

Quoted 5 lines
Quoted 2 lines

+If VIRTIO_NET_F_HASH_REPORT is negotiated, the size of the field +\field{struct virtio_net_hdr} is 20 bytes.

For the receive side, is these needed?

For uniformity between tx and rx I thought it is useful as it is not covered anywhere else in the normative.

Quoted 3 lines

Other is ok to me.

Thanks

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

#4 lore raw

Re: [virtio-comment] [PATCH 1/2] virtio-net: Fix receive buffer size calculation text

In reply to Xuan Zhuo
Quoted 70 lines · Xuan Zhuo
Quoted 26 lines · Parav Pandit

Receive buffer size calculation is based on the following negotiated features.

The text has wrong calculation for IPv6 and also it has missed VIRTIO_NET_F_HASH_REPORT.

The problem of igorance of VIRTIO_NET_F_HASH_REPORT is reported in [1], however fix for ipv6 payload length must also be considered.

Since for the both the fixes touching same requirements, a new issue is created as [2].

This patch brings following fixes.

1. Fix annotating struct virtio_net_hdr as field
2. Fix receive buffer calculation for guest GSO cases to consider ipv6 payload length
3. small grammar corrections for article
4. reword the requirement to consider the virtio_ndr_hdr which is depends on the negotiated feature, hence first clarify the struct virtio_net_hdr size

[1] https://github.com/oasis-tcs/virtio-spec/issues/170
[2] https://github.com/oasis-tcs/virtio-spec/issues/183

Review

Quoted 8 lines
---
 device-types/net/description.tex | 25 ++++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)
(quoted diff) +0 -0

b/device-types/net/description.tex

device-types/net/description.tex \subsubsection{Setting Up Receive

Quoted 4 lines

index 96f7dc5..f5647d4 100644

device-types/net/description.tex +0 -0
@@ -660,24 +660,35 @@ \subsubsection{Setting Up Receive

Buffers}\label{sec:Device Types / Network Devi

device-types/net/description.tex \subsubsection{Setting Up Receive · line 661

Quoted 2 lines
device-types/net/description.tex +0 -0
 If the VIRTIO_NET_F_GUEST_TSO4, VIRTIO_NET_F_GUEST_TSO6,
 VIRTIO_NET_F_GUEST_UFO, VIRTIO_NET_F_GUEST_USO4 or

VIRTIO_NET_F_GUEST_USO6

device-types/net/description.tex \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi

Quoted 6 lines
device-types/net/description.tex +1 -4
 features are used, the maximum incoming packet
-will be to 65550 bytes long (the maximum size of a
-TCP or UDP packet, plus the 14 byte ethernet header), otherwise
-1514 bytes.  The 12-byte struct virtio_net_hdr is prepended to this,
-making for 65562 or 1526 bytes.
+will of size 65589 bytes long (14 bytes of Ethernet header, plus 40

bytes of

device-types/net/description.tex \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi

Quoted 3 lines
device-types/net/description.tex +3 -0
+the IPv6 header, plus 65535 bytes of maximum IPv6 payload including any
+extension header) otherwise 1514 bytes.
+When VIRTIO_NET_F_HASH_REPORT is not negotiated, the required receive

buffer

device-types/net/description.tex \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi

Quoted 5 lines
device-types/net/description.tex +3 -0
+size is either 65601 or 1526 bytes.
+When VIRTIO_NET_F_HASH_REPORT is negotiated, the required receive buffer
+size is either 65609 or 1534 bytes.
 
 \drivernormative{\paragraph}{Setting Up Receive Buffers}{Device Types /

Network Device / Device Operation / Setting Up Receive Buffers}

device-types/net/description.tex \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi · line 677

Quoted 6 lines
device-types/net/description.tex +5 -0
+If VIRTIO_NET_F_HASH_REPORT is not negotiated, the size of the field
+\field{struct virtio_net_hdr} is 12 bytes.
+
+If VIRTIO_NET_F_HASH_REPORT is negotiated, the size of the field
+\field{struct virtio_net_hdr} is 20 bytes.

For the receive side, is these needed?

Quoted 5 lines

Other is ok to me.

Thanks

At the moment the virtio_net header size is equal for RX and TX So, if the VIRTIO_NET_F_HASH_REPORT is negotiated the header size will be 20 bytes for both directions..
In TX direction the extra space is the header is currently not used (if I'm not mistaken).

Quoted 65 lines

device-types/net/description.tex \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi

Quoted 6 lines
device-types/net/description.tex +1 -0
+
 \begin{itemize}
 \item If VIRTIO_NET_F_MRG_RXBUF is not negotiated:
   \begin{itemize}
     \item If VIRTIO_NET_F_GUEST_TSO4, VIRTIO_NET_F_GUEST_TSO6,

VIRTIO_NET_F_GUEST_UFO,

device-types/net/description.tex \subsubsection{Setting Up Receive · line 682

Quoted 1 line
device-types/net/description.tex +0 -0
      VIRTIO_NET_F_GUEST_USO4 or VIRTIO_NET_F_GUEST_USO6 are negotiated,

the driver SHOULD populate

device-types/net/description.tex \subsubsection{Setting Up Receive · line 683

Quoted 2 lines
device-types/net/description.tex +1 -1
-      the receive queue(s) with buffers of at least 65562 bytes.
+      the receive queue(s) with buffers of at least 65589 bytes plus

the size

Quoted 23 lines
device-types/net/description.tex +4 -3
+      of the \field{struct virtio_net_hdr}.
     \item Otherwise, the driver SHOULD populate the receive queue(s)
-      with buffers of at least 1526 bytes.
+      with buffers of at least 1514 bytes plus the size of the
+      \field{struct virtio_net_hdr}.
   \end{itemize}
 \item If VIRTIO_NET_F_MRG_RXBUF is negotiated, each buffer MUST be at
-least the size of the struct virtio_net_hdr.
+least the size of the \field{struct virtio_net_hdr}.
 \end{itemize}
 
 \begin{note}
--

2.34.1

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Quoted 5 lines

Subscribe: [email protected]
Unsubscribe: [email protected] List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License:

https://www.oasis-open.org/who/ipr/feedback_license.pdf

Quoted 1 line

List Guidelines:

https://www.oasis-open.org/policies-guidelines/mailing-lists

Quoted 3 lines

Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected] List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines:
https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

#5 lore raw

Re: [virtio-comment] [PATCH 1/2] virtio-net: Fix receive buffer size calculation text

Quoted 75 lines · Yuri Benditovich
Quoted 72 lines · Xuan Zhuo
Quoted 26 lines · Parav Pandit

Receive buffer size calculation is based on the following negotiated features.

The text has wrong calculation for IPv6 and also it has missed VIRTIO_NET_F_HASH_REPORT.

The problem of igorance of VIRTIO_NET_F_HASH_REPORT is reported in [1], however fix for ipv6 payload length must also be considered.

Since for the both the fixes touching same requirements, a new issue is created as [2].

This patch brings following fixes.

1. Fix annotating struct virtio_net_hdr as field
2. Fix receive buffer calculation for guest GSO cases to consider ipv6 payload length
3. small grammar corrections for article
4. reword the requirement to consider the virtio_ndr_hdr which is depends on the negotiated feature, hence first clarify the struct virtio_net_hdr size

[1] https://github.com/oasis-tcs/virtio-spec/issues/170
[2] https://github.com/oasis-tcs/virtio-spec/issues/183

Review

Quoted 8 lines
---
 device-types/net/description.tex | 25 ++++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)
(quoted diff) +0 -0

b/device-types/net/description.tex

device-types/net/description.tex \subsubsection{Setting Up Receive

Quoted 4 lines

index 96f7dc5..f5647d4 100644

device-types/net/description.tex +0 -0
@@ -660,24 +660,35 @@ \subsubsection{Setting Up Receive

Buffers}\label{sec:Device Types / Network Devi

device-types/net/description.tex \subsubsection{Setting Up Receive · line 661

Quoted 2 lines
device-types/net/description.tex +0 -0
 If the VIRTIO_NET_F_GUEST_TSO4, VIRTIO_NET_F_GUEST_TSO6,
 VIRTIO_NET_F_GUEST_UFO, VIRTIO_NET_F_GUEST_USO4 or

VIRTIO_NET_F_GUEST_USO6

device-types/net/description.tex \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi

Quoted 6 lines
device-types/net/description.tex +1 -4
 features are used, the maximum incoming packet
-will be to 65550 bytes long (the maximum size of a
-TCP or UDP packet, plus the 14 byte ethernet header), otherwise
-1514 bytes.  The 12-byte struct virtio_net_hdr is prepended to this,
-making for 65562 or 1526 bytes.
+will of size 65589 bytes long (14 bytes of Ethernet header, plus 40

bytes of

device-types/net/description.tex \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi

Quoted 3 lines
device-types/net/description.tex +3 -0
+the IPv6 header, plus 65535 bytes of maximum IPv6 payload including any
+extension header) otherwise 1514 bytes.
+When VIRTIO_NET_F_HASH_REPORT is not negotiated, the required receive

buffer

device-types/net/description.tex \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi

Quoted 5 lines
device-types/net/description.tex +3 -0
+size is either 65601 or 1526 bytes.
+When VIRTIO_NET_F_HASH_REPORT is negotiated, the required receive buffer
+size is either 65609 or 1534 bytes.
 
 \drivernormative{\paragraph}{Setting Up Receive Buffers}{Device Types /

Network Device / Device Operation / Setting Up Receive Buffers}

device-types/net/description.tex \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi · line 677

Quoted 6 lines
device-types/net/description.tex +5 -0
+If VIRTIO_NET_F_HASH_REPORT is not negotiated, the size of the field
+\field{struct virtio_net_hdr} is 12 bytes.
+
+If VIRTIO_NET_F_HASH_REPORT is negotiated, the size of the field
+\field{struct virtio_net_hdr} is 20 bytes.

For the receive side, is these needed?

Other is ok to me.

Quoted 8 lines
Quoted 3 lines

Thanks

At the moment the virtio_net header size is equal for RX and TX So, if the VIRTIO_NET_F_HASH_REPORT is negotiated the header size will be 20 bytes for both directions..
In TX direction the extra space is the header is currently not used (if I'm not mistaken).

YES.

Quoted 56 lines
Quoted 56 lines

device-types/net/description.tex \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi

Quoted 8 lines
device-types/net/description.tex +1 -0
+
 \begin{itemize}
 \item If VIRTIO_NET_F_MRG_RXBUF is not negotiated:
   \begin{itemize}
     \item If VIRTIO_NET_F_GUEST_TSO4, VIRTIO_NET_F_GUEST_TSO6,

VIRTIO_NET_F_GUEST_UFO,

device-types/net/description.tex \subsubsection{Setting Up Receive · line 682

Quoted 1 line
device-types/net/description.tex +0 -0
      VIRTIO_NET_F_GUEST_USO4 or VIRTIO_NET_F_GUEST_USO6 are negotiated,

the driver SHOULD populate

device-types/net/description.tex \subsubsection{Setting Up Receive · line 683

Quoted 2 lines
device-types/net/description.tex +1 -1
-      the receive queue(s) with buffers of at least 65562 bytes.
+      the receive queue(s) with buffers of at least 65589 bytes plus

the size

Quoted 23 lines
device-types/net/description.tex +4 -3
+      of the \field{struct virtio_net_hdr}.
     \item Otherwise, the driver SHOULD populate the receive queue(s)
-      with buffers of at least 1526 bytes.
+      with buffers of at least 1514 bytes plus the size of the
+      \field{struct virtio_net_hdr}.
   \end{itemize}
 \item If VIRTIO_NET_F_MRG_RXBUF is negotiated, each buffer MUST be at
-least the size of the struct virtio_net_hdr.
+least the size of the \field{struct virtio_net_hdr}.
 \end{itemize}
 
 \begin{note}
--

2.34.1

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Quoted 5 lines

Subscribe: [email protected]
Unsubscribe: [email protected] List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License:

https://www.oasis-open.org/who/ipr/feedback_license.pdf

Quoted 1 line

List Guidelines:

https://www.oasis-open.org/policies-guidelines/mailing-lists

Quoted 3 lines

Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Quoted 12 lines
Quoted 11 lines

Subscribe: [email protected]
Unsubscribe: [email protected] List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines:
https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

#6 lore raw

PATCH 2/2 virtio-net: Clarify the size of the struct virtio_net_hdr for tx

In reply to Parav Pandit

The feature VIRTIO_NET_F_HASH_REPORT only applies to the receive side. However, when VIRTIO_NET_F_HASH_REPORT feature was introduced, it was not clarified that the size of the struct virtio_net_hdr on the packet transmission also uses higher size when VIRTIO_NET_F_HASH_REPORT is negotiated.

Explicitly clarify this.

---
 device-types/net/description.tex | 6 ++++++
 1 file changed, 6 insertions(+)
device-types/net/description.tex +6 -0
index f5647d4..00ea58d 100644
@@ -531,6 +531,12 @@ \subsubsection{Packet Transmission}\label{sec:Device Types / Network Device / De
 
 \drivernormative{\paragraph}{Packet Transmission}{Device Types / Network Device / Device Operation / Packet Transmission}
 
+If VIRTIO_NET_F_HASH_REPORT is not negotiated, the size of the field
+\field{struct virtio_net_hdr} is 12 bytes.
+
+If VIRTIO_NET_F_HASH_REPORT is negotiated, the size of the field
+\field{struct virtio_net_hdr} is 20 bytes.
+
 The driver MUST set \field{num_buffers} to zero.
 
 If VIRTIO_NET_F_CSUM is not negotiated, the driver MUST set
Signature · 18 lines
2.34.1


This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
#7 lore raw

Re: [virtio-comment] [PATCH 2/2] virtio-net: Clarify the size of the struct virtio_net_hdr for tx

Quoted 19 lines · Parav Pandit

The feature VIRTIO_NET_F_HASH_REPORT only applies to the receive side. However, when VIRTIO_NET_F_HASH_REPORT feature was introduced, it was not clarified that the size of the struct virtio_net_hdr on the packet transmission also uses higher size when VIRTIO_NET_F_HASH_REPORT is negotiated.

Explicitly clarify this.

---
 device-types/net/description.tex | 6 ++++++
 1 file changed, 6 insertions(+)
device-types/net/description.tex +0 -0
index f5647d4..00ea58d 100644

device-types/net/description.tex \subsubsection{Packet Transmission}\label{sec:Device Types / Network Device / De · line 539

Quoted 9 lines
device-types/net/description.tex +6 -0
@@ -531,6 +531,12 @@ \subsubsection{Packet Transmission}\label{sec:Device Types / Network Device / De
 
 \drivernormative{\paragraph}{Packet Transmission}{Device Types / Network Device / Device Operation / Packet Transmission}
 
+If VIRTIO_NET_F_HASH_REPORT is not negotiated, the size of the field
+\field{struct virtio_net_hdr} is 12 bytes.
+
+If VIRTIO_NET_F_HASH_REPORT is negotiated, the size of the field
+\field{struct virtio_net_hdr} is 20 bytes.
+

If we need a new feature, because that the implement of the current linux kernel has the same size on the tx patch.

Thanks.

Quoted 14 lines
device-types/net/description.tex +0 -1
 The driver MUST set \field{num_buffers} to zero.
 
 If VIRTIO_NET_F_CSUM is not negotiated, the driver MUST set
--

2.34.1

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Quoted 9 lines

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

#8 lore raw

RE: [virtio-comment] [PATCH 2/2] virtio-net: Clarify the size of the struct virtio_net_hdr for tx

Quoted 32 lines

From: Xuan Zhuo <[email protected]>
Sent: Wednesday, December 13, 2023 11:33 AM

Quoted 2 lines · Parav Pandit

The feature VIRTIO_NET_F_HASH_REPORT only applies to the receive side. However, when VIRTIO_NET_F_HASH_REPORT feature was introduced, it

was

Quoted 23 lines

not clarified that the size of the struct virtio_net_hdr on the packet transmission also uses higher size when VIRTIO_NET_F_HASH_REPORT is negotiated.

Explicitly clarify this.

---
 device-types/net/description.tex | 6 ++++++
 1 file changed, 6 insertions(+)
device-types/net/description.tex +0 -0
index f5647d4..00ea58d 100644
@@ -531,6 +531,12 @@ \subsubsection{Packet

Transmission}\label{sec:Device Types / Network Device / De

\drivernormative{\paragraph}{Packet Transmission}{Device Types /
Network Device / Device Operation / Packet Transmission}

Quoted 9 lines

device-types/net/description.tex \subsubsection{Packet Transmission}\label{sec:Device Types / Network Device / De · line 539

Quoted 6 lines
device-types/net/description.tex +6 -0
+If VIRTIO_NET_F_HASH_REPORT is not negotiated, the size of the field
+\field{struct virtio_net_hdr} is 12 bytes.
+
+If VIRTIO_NET_F_HASH_REPORT is negotiated, the size of the field
+\field{struct virtio_net_hdr} is 20 bytes.
+

If we need a new feature, because that the implement of the current linux kernel has the same size on the tx patch.

I didn't understand your comment - "if we need a new feature" part.

Current Linux kernel has same size for tx and rx, snippet below.

        if (vi->has_rss_hash_report)
                vi->hdr_len = sizeof(struct virtio_net_hdr_v1_hash);

So if you are asking if we need a new feature bit? I believe, we don't need a new feature bit for current implementations and behavior.

We will new feature bit in future to have shorter virtio_net_hdr on tx, however we better consume it as part of new inline descriptor format.

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

#9 lore raw

Re: RE: [virtio-comment] [PATCH 2/2] virtio-net: Clarify the size of the struct virtio_net_hdr for tx

Quoted 44 lines · Parav Pandit
Quoted 32 lines

From: Xuan Zhuo <[email protected]>
Sent: Wednesday, December 13, 2023 11:33 AM

Quoted 2 lines · Parav Pandit

The feature VIRTIO_NET_F_HASH_REPORT only applies to the receive side. However, when VIRTIO_NET_F_HASH_REPORT feature was introduced, it

was

Quoted 23 lines

not clarified that the size of the struct virtio_net_hdr on the packet transmission also uses higher size when VIRTIO_NET_F_HASH_REPORT is negotiated.

Explicitly clarify this.

---
 device-types/net/description.tex | 6 ++++++
 1 file changed, 6 insertions(+)
device-types/net/description.tex +0 -0
index f5647d4..00ea58d 100644
@@ -531,6 +531,12 @@ \subsubsection{Packet

Transmission}\label{sec:Device Types / Network Device / De

\drivernormative{\paragraph}{Packet Transmission}{Device Types /
Network Device / Device Operation / Packet Transmission}

Quoted 9 lines

device-types/net/description.tex \subsubsection{Packet Transmission}\label{sec:Device Types / Network Device / De · line 539

Quoted 6 lines
device-types/net/description.tex +6 -0
+If VIRTIO_NET_F_HASH_REPORT is not negotiated, the size of the field
+\field{struct virtio_net_hdr} is 12 bytes.
+
+If VIRTIO_NET_F_HASH_REPORT is negotiated, the size of the field
+\field{struct virtio_net_hdr} is 20 bytes.
+

If we need a new feature, because that the implement of the current linux kernel has the same size on the tx patch.

I didn't understand your comment - "if we need a new feature" part.

Quoted 8 lines

Current Linux kernel has same size for tx and rx, snippet below.

        if (vi->has_rss_hash_report)
                vi->hdr_len = sizeof(struct virtio_net_hdr_v1_hash);

So if you are asking if we need a new feature bit? I believe, we don't need a new feature bit for current implementations and behavior.

We will new feature bit in future to have shorter virtio_net_hdr on tx, however we better consume it as part of new inline descriptor format.

Sorry, I missed something.

One question, for "If VIRTIO_NET_F_HASH_REPORT is not negotiated", should we consider the legacy mode.

Thanks.

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

#10 lore raw

RE: RE: [virtio-comment] [PATCH 2/2] virtio-net: Clarify the size of the struct virtio_net_hdr for tx

Quoted 59 lines

From: Xuan Zhuo <[email protected]>
Sent: Wednesday, December 13, 2023 12:00 PM

Quoted 7 lines · Parav Pandit
Quoted 7 lines

From: Xuan Zhuo <[email protected]>
Sent: Wednesday, December 13, 2023 11:33 AM

Quoted 1 line · Parav Pandit

The feature VIRTIO_NET_F_HASH_REPORT only applies to the receive

side.

Quoted 35 lines
Quoted 25 lines
Quoted 1 line

However, when VIRTIO_NET_F_HASH_REPORT feature was introduced, it

was

Quoted 23 lines

not clarified that the size of the struct virtio_net_hdr on the packet transmission also uses higher size when VIRTIO_NET_F_HASH_REPORT is negotiated.

Explicitly clarify this.

---
 device-types/net/description.tex | 6 ++++++
 1 file changed, 6 insertions(+)
device-types/net/description.tex +0 -0
index f5647d4..00ea58d 100644
@@ -531,6 +531,12 @@ \subsubsection{Packet

Transmission}\label{sec:Device Types / Network Device / De

\drivernormative{\paragraph}{Packet Transmission}{Device Types /
Network Device / Device Operation / Packet Transmission}

Quoted 9 lines

device-types/net/description.tex \subsubsection{Packet Transmission}\label{sec:Device Types / Network Device / De · line 539

Quoted 6 lines
device-types/net/description.tex +6 -0
+If VIRTIO_NET_F_HASH_REPORT is not negotiated, the size of the
+field \field{struct virtio_net_hdr} is 12 bytes.
+
+If VIRTIO_NET_F_HASH_REPORT is negotiated, the size of the field
+\field{struct virtio_net_hdr} is 20 bytes.
+

If we need a new feature, because that the implement of the current linux kernel has the same size on the tx patch.

Quoted 8 lines

I didn't understand your comment - "if we need a new feature" part.

Current Linux kernel has same size for tx and rx, snippet below.

        if (vi->has_rss_hash_report)
                vi->hdr_len = sizeof(struct virtio_net_hdr_v1_hash);

So if you are asking if we need a new feature bit? I believe, we don't need a

new feature bit for current implementations and behavior.

Quoted 1 line
Quoted 7 lines
Quoted 1 line

We will new feature bit in future to have shorter virtio_net_hdr on tx,

however we better consume it as part of new inline descriptor format.

Sorry, I missed something.

One question, for "If VIRTIO_NET_F_HASH_REPORT is not negotiated", should we consider the legacy mode.

Most of the legacy text is not mixed with rest of the spec, so I think we don't need to mention legacy in this area of the text.

I realized that 12B line is not accurate due to optional VIRTIO_NET_F_MRG_RXBUF feature. I will send v1 to remove 12B wording, and only keep for HASH_REPORT negotiated.

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

#11 lore raw

Re: [virtio-comment] [PATCH 2/2] virtio-net: Clarify the size of the struct virtio_net_hdr for tx

In reply to Parav Pandit
Quoted 19 lines · Parav Pandit

The feature VIRTIO_NET_F_HASH_REPORT only applies to the receive side. However, when VIRTIO_NET_F_HASH_REPORT feature was introduced, it was not clarified that the size of the struct virtio_net_hdr on the packet transmission also uses higher size when VIRTIO_NET_F_HASH_REPORT is negotiated.

Explicitly clarify this.

---
 device-types/net/description.tex | 6 ++++++
 1 file changed, 6 insertions(+)
device-types/net/description.tex +0 -0
index f5647d4..00ea58d 100644

device-types/net/description.tex \subsubsection{Packet Transmission}\label{sec:Device Types / Network Device / De · line 539

Quoted 9 lines
device-types/net/description.tex +6 -0
@@ -531,6 +531,12 @@ \subsubsection{Packet Transmission}\label{sec:Device Types / Network Device / De
 
 \drivernormative{\paragraph}{Packet Transmission}{Device Types / Network Device / Device Operation / Packet Transmission}
 
+If VIRTIO_NET_F_HASH_REPORT is not negotiated, the size of the field
+\field{struct virtio_net_hdr} is 12 bytes.
+
+If VIRTIO_NET_F_HASH_REPORT is negotiated, the size of the field
+\field{struct virtio_net_hdr} is 20 bytes.
+

How about just say the tx header is equal to the rx hdr?

Thanks.

Quoted 14 lines
device-types/net/description.tex +0 -1
 The driver MUST set \field{num_buffers} to zero.
 
 If VIRTIO_NET_F_CSUM is not negotiated, the driver MUST set
--

2.34.1

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Quoted 9 lines

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

#12 lore raw

RE: [virtio-comment] [PATCH 2/2] virtio-net: Clarify the size of the struct virtio_net_hdr for tx

Quoted 39 lines

From: Xuan Zhuo <[email protected]>
Sent: Thursday, December 14, 2023 7:57 AM
To: Parav Pandit <[email protected]>
Cc: Shahaf Shuler <[email protected]>; Parav Pandit <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: Re: [virtio-comment] [PATCH 2/2] virtio-net: Clarify the size of the struct virtio_net_hdr for tx

Quoted 2 lines · Parav Pandit

The feature VIRTIO_NET_F_HASH_REPORT only applies to the receive side. However, when VIRTIO_NET_F_HASH_REPORT feature was introduced, it

was

Quoted 23 lines

not clarified that the size of the struct virtio_net_hdr on the packet transmission also uses higher size when VIRTIO_NET_F_HASH_REPORT is negotiated.

Explicitly clarify this.

---
 device-types/net/description.tex | 6 ++++++
 1 file changed, 6 insertions(+)
device-types/net/description.tex +0 -0
index f5647d4..00ea58d 100644
@@ -531,6 +531,12 @@ \subsubsection{Packet

Transmission}\label{sec:Device Types / Network Device / De

\drivernormative{\paragraph}{Packet Transmission}{Device Types /
Network Device / Device Operation / Packet Transmission}

Quoted 10 lines

device-types/net/description.tex \subsubsection{Packet Transmission}\label{sec:Device Types / Network Device / De · line 539

Quoted 6 lines
device-types/net/description.tex +6 -0
+If VIRTIO_NET_F_HASH_REPORT is not negotiated, the size of the field
+\field{struct virtio_net_hdr} is 12 bytes.
+
+If VIRTIO_NET_F_HASH_REPORT is negotiated, the size of the field
+\field{struct virtio_net_hdr} is 20 bytes.
+

How about just say the tx header is equal to the rx hdr?

Yep. Working on rewording as acked yday.

Quoted 28 lines

Thanks.

Quoted 25 lines

The driver MUST set \field{num_buffers} to zero.

If VIRTIO_NET_F_CSUM is not negotiated, the driver MUST set
--
2.34.1

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected] List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License:
https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines:
https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/