[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251105021637-mutt-send-email-mst@kernel.org>
Date: Wed, 5 Nov 2025 02:17:49 -0500
From: "Michael S. Tsirkin" <mst@...hat.com>
To: Jason Wang <jasowang@...hat.com>
Cc: xuanzhuo@...ux.alibaba.com, eperezma@...hat.com, andrew+netdev@...n.ch,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, virtualization@...ts.linux.dev,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
stable@...r.kernel.org
Subject: Re: [PATCH net V2] virtio_net: fix alignment for
virtio_net_hdr_v1_hash
On Fri, Oct 31, 2025 at 02:05:51PM +0800, Jason Wang wrote:
> diff --git a/include/linux/virtio_net.h b/include/linux/virtio_net.h
> index 4d1780848d0e..b673c31569f3 100644
> --- a/include/linux/virtio_net.h
> +++ b/include/linux/virtio_net.h
> @@ -401,7 +401,8 @@ virtio_net_hdr_tnl_from_skb(const struct sk_buff *skb,
> if (!tnl_hdr_negotiated)
> return -EINVAL;
>
> - vhdr->hash_hdr.hash_value = 0;
> + vhdr->hash_hdr.hash_value_lo = 0;
> + vhdr->hash_hdr.hash_value_hi = 0;
> vhdr->hash_hdr.hash_report = 0;
> vhdr->hash_hdr.padding = 0;
>
BTW is it just me or is old code space-indented here?
We should probably switch it to tabs.
--
MST
Powered by blists - more mailing lists