All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Akihiko Odaki <akihiko.odaki@daynix.com>
Cc: Jason Wang <jasowang@redhat.com>,
	"open list:All patches CC here" <qemu-devel@nongnu.org>
Subject: Re: [PATCH 1/6] tap: Fix virtio-net header buffer size
Date: Sun, 8 Oct 2023 02:25:20 -0400	[thread overview]
Message-ID: <20231008022442-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20231008052917.145245-2-akihiko.odaki@daynix.com>

On Sun, Oct 08, 2023 at 02:29:10PM +0900, Akihiko Odaki wrote:
> The largest possible virtio-net header is struct virtio_net_hdr_v1_hash.
> 
> Fixes: fbbdbddec0 ("tap: allow extended virtio header with hash info")
> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>

This thread is malformed BTW: cover letter seems to be
missing on list.


> ---
>  net/tap.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/net/tap.c b/net/tap.c
> index c6639d9f20..ea46feeaa8 100644
> --- a/net/tap.c
> +++ b/net/tap.c
> @@ -118,7 +118,7 @@ static ssize_t tap_receive_iov(NetClientState *nc, const struct iovec *iov,
>      TAPState *s = DO_UPCAST(TAPState, nc, nc);
>      const struct iovec *iovp = iov;
>      struct iovec iov_copy[iovcnt + 1];
> -    struct virtio_net_hdr_mrg_rxbuf hdr = { };
> +    struct virtio_net_hdr_v1_hash hdr = { };
>  
>      if (s->host_vnet_hdr_len && !s->using_vnet_hdr) {
>          iov_copy[0].iov_base = &hdr;
> @@ -136,7 +136,7 @@ static ssize_t tap_receive_raw(NetClientState *nc, const uint8_t *buf, size_t si
>      TAPState *s = DO_UPCAST(TAPState, nc, nc);
>      struct iovec iov[2];
>      int iovcnt = 0;
> -    struct virtio_net_hdr_mrg_rxbuf hdr = { };
> +    struct virtio_net_hdr_v1_hash hdr = { };
>  
>      if (s->host_vnet_hdr_len) {
>          iov[iovcnt].iov_base = &hdr;
> -- 
> 2.42.0
> 
> 



  reply	other threads:[~2023-10-08  6:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20231008052917.145245-1-akihiko.odaki@daynix.com>
2023-10-08  5:29 ` [PATCH 1/6] tap: Fix virtio-net header buffer size Akihiko Odaki
2023-10-08  6:25   ` Michael S. Tsirkin [this message]
2023-10-08  5:29 ` [PATCH 2/6] virtio-net: Copy header only when necessary Akihiko Odaki
2023-10-08  5:29 ` [PATCH 3/6] virtio-net: Disable RSS on reset Akihiko Odaki
2023-10-08  5:29 ` [PATCH 4/6] virtio-net: Unify the logic to update NIC state for RSS Akihiko Odaki
2023-10-08  5:29 ` [PATCH 5/6] virtio-net: Return an error when vhost cannot enable RSS Akihiko Odaki
2023-10-08  5:29 ` [PATCH 6/6] virtio-net: Do not clear VIRTIO_NET_F_RSS Akihiko Odaki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231008022442-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=akihiko.odaki@daynix.com \
    --cc=jasowang@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.