* [PATCH] virtio-net: Fix receive buffer size typo
@ 2025-02-07 7:48 Steffen Trumtrar
2025-02-07 11:07 ` Michael S. Tsirkin
2025-02-17 7:00 ` Steffen Trumtrar
0 siblings, 2 replies; 3+ messages in thread
From: Steffen Trumtrar @ 2025-02-07 7:48 UTC (permalink / raw)
To: virtio-comment; +Cc: Steffen Trumtrar, Parav Pandit
The commit 00806815385340dd411cc67df3f6837935bb5e26 introduced a slight
typo in the struct virtio_net_hdr size calculation depending on
VIRTIO_NET_F_HASH_REPORT negotiation.
Without VIRTIO_NET_F_HASH_REPORT the struct is smaller than with the
feature. This mix up only occurs in one instance; sizes are correct in
all other occurences.
Fix this typo.
Fixes: 008068153853 ("virtio-net: Fix receive buffer size calculation text")
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Reviewed-by: Parav Pandit <parav@nvidia.com>
---
device-types/net/description.tex | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/device-types/net/description.tex b/device-types/net/description.tex
index 4e4ffdb6e04e346af491edf65886fa096e506abc..08736b6804eafb303a5cfb2f27ec200cec8bd942 100644
--- a/device-types/net/description.tex
+++ b/device-types/net/description.tex
@@ -789,10 +789,10 @@ \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi
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 accounting for 20 bytes of
+size is either 65601 or 1526 bytes accounting for 12 bytes of
\field{struct virtio_net_hdr} followed by receive packet.
When VIRTIO_NET_F_HASH_REPORT is negotiated, the required receive buffer
-size is either 65609 or 1534 bytes accounting for 12 bytes of
+size is either 65609 or 1534 bytes accounting for 20 bytes of
\field{struct virtio_net_hdr} followed by receive packet.
\drivernormative{\paragraph}{Setting Up Receive Buffers}{Device Types / Network Device / Device Operation / Setting Up Receive Buffers}
---
base-commit: b2990c8a6642e696d6f269d1db991b2c928d3a9f
change-id: 20250207-v1-4-topic-virtio-net-receive-buffer-fix-b6487b58813c
Best regards,
--
Steffen Trumtrar <s.trumtrar@pengutronix.de>
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] virtio-net: Fix receive buffer size typo
2025-02-07 7:48 [PATCH] virtio-net: Fix receive buffer size typo Steffen Trumtrar
@ 2025-02-07 11:07 ` Michael S. Tsirkin
2025-02-17 7:00 ` Steffen Trumtrar
1 sibling, 0 replies; 3+ messages in thread
From: Michael S. Tsirkin @ 2025-02-07 11:07 UTC (permalink / raw)
To: Steffen Trumtrar; +Cc: virtio-comment, Parav Pandit
On Fri, Feb 07, 2025 at 08:48:47AM +0100, Steffen Trumtrar wrote:
> The commit 00806815385340dd411cc67df3f6837935bb5e26 introduced a slight
> typo in the struct virtio_net_hdr size calculation depending on
> VIRTIO_NET_F_HASH_REPORT negotiation.
>
> Without VIRTIO_NET_F_HASH_REPORT the struct is smaller than with the
> feature. This mix up only occurs in one instance; sizes are correct in
> all other occurences.
>
> Fix this typo.
>
> Fixes: 008068153853 ("virtio-net: Fix receive buffer size calculation text")
> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> Reviewed-by: Parav Pandit <parav@nvidia.com>
Thanks!
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Can you follow the process outlined here:
https://github.com/oasis-tcs/virtio-spec/blob/master/README.md#use-of-github-issues
to get it merged, or do you need help with that?
> ---
> device-types/net/description.tex | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/device-types/net/description.tex b/device-types/net/description.tex
> index 4e4ffdb6e04e346af491edf65886fa096e506abc..08736b6804eafb303a5cfb2f27ec200cec8bd942 100644
> --- a/device-types/net/description.tex
> +++ b/device-types/net/description.tex
> @@ -789,10 +789,10 @@ \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi
> 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 accounting for 20 bytes of
> +size is either 65601 or 1526 bytes accounting for 12 bytes of
> \field{struct virtio_net_hdr} followed by receive packet.
> When VIRTIO_NET_F_HASH_REPORT is negotiated, the required receive buffer
> -size is either 65609 or 1534 bytes accounting for 12 bytes of
> +size is either 65609 or 1534 bytes accounting for 20 bytes of
> \field{struct virtio_net_hdr} followed by receive packet.
>
> \drivernormative{\paragraph}{Setting Up Receive Buffers}{Device Types / Network Device / Device Operation / Setting Up Receive Buffers}
>
> ---
> base-commit: b2990c8a6642e696d6f269d1db991b2c928d3a9f
> change-id: 20250207-v1-4-topic-virtio-net-receive-buffer-fix-b6487b58813c
>
> Best regards,
> --
> Steffen Trumtrar <s.trumtrar@pengutronix.de>
>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] virtio-net: Fix receive buffer size typo
2025-02-07 7:48 [PATCH] virtio-net: Fix receive buffer size typo Steffen Trumtrar
2025-02-07 11:07 ` Michael S. Tsirkin
@ 2025-02-17 7:00 ` Steffen Trumtrar
1 sibling, 0 replies; 3+ messages in thread
From: Steffen Trumtrar @ 2025-02-17 7:00 UTC (permalink / raw)
To: virtio-comment; +Cc: Parav Pandit
On 2025-02-07 at 08:48 +01, Steffen Trumtrar <s.trumtrar@pengutronix.de> wrote:
> The commit 00806815385340dd411cc67df3f6837935bb5e26 introduced a slight
> typo in the struct virtio_net_hdr size calculation depending on
> VIRTIO_NET_F_HASH_REPORT negotiation.
>
> Without VIRTIO_NET_F_HASH_REPORT the struct is smaller than with the
> feature. This mix up only occurs in one instance; sizes are correct in
> all other occurences.
>
> Fix this typo.
>
> Fixes: 008068153853 ("virtio-net: Fix receive buffer size calculation text")
> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> Reviewed-by: Parav Pandit <parav@nvidia.com>
> ---
> device-types/net/description.tex | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/device-types/net/description.tex b/device-types/net/description.tex
> index 4e4ffdb6e04e346af491edf65886fa096e506abc..08736b6804eafb303a5cfb2f27ec200cec8bd942 100644
> --- a/device-types/net/description.tex
> +++ b/device-types/net/description.tex
> @@ -789,10 +789,10 @@ \subsubsection{Setting Up Receive Buffers}\label{sec:Device Types / Network Devi
> 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 accounting for 20 bytes of
> +size is either 65601 or 1526 bytes accounting for 12 bytes of
> \field{struct virtio_net_hdr} followed by receive packet.
> When VIRTIO_NET_F_HASH_REPORT is negotiated, the required receive buffer
> -size is either 65609 or 1534 bytes accounting for 12 bytes of
> +size is either 65609 or 1534 bytes accounting for 20 bytes of
> \field{struct virtio_net_hdr} followed by receive packet.
>
> \drivernormative{\paragraph}{Setting Up Receive Buffers}{Device Types / Network Device / Device Operation / Setting Up Receive Buffers}
>
> ---
> base-commit: b2990c8a6642e696d6f269d1db991b2c928d3a9f
> change-id: 20250207-v1-4-topic-virtio-net-receive-buffer-fix-b6487b58813c
>
This small typo is reviewed now. Please raise a vote for this issue:
Fixes: https://github.com/oasis-tcs/virtio-spec/issues/216
--
Pengutronix e.K. | Dipl.-Inform. Steffen Trumtrar |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686| Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-17 7:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-07 7:48 [PATCH] virtio-net: Fix receive buffer size typo Steffen Trumtrar
2025-02-07 11:07 ` Michael S. Tsirkin
2025-02-17 7:00 ` Steffen Trumtrar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox