From: Jason Wang <jasowang@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel@nongnu.org, qemu-stable@nongnu.org,
Dmitry Fleytman <dfleytma@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] virtio-net: fix offload ctrl endian
Date: Mon, 17 Jul 2017 17:28:35 +0800 [thread overview]
Message-ID: <f2e868dd-c845-aae4-2eba-13c6715dc1eb@redhat.com> (raw)
In-Reply-To: <20170714172631-mutt-send-email-mst@kernel.org>
On 2017年07月14日 22:26, Michael S. Tsirkin wrote:
> On Fri, Jul 14, 2017 at 08:27:06PM +0800, Jason Wang wrote:
>> Spec said offloads should be le64, so use virtio_ldq_p() to guarantee
>> valid endian.
>>
>> Fixes: 644c98587d4c ("virtio-net: dynamic network offloads configuration")
>> Cc: qemu-stable@nongnu.org
>> Cc: Dmitry Fleytman <dfleytma@redhat.com>
>> Signed-off-by: Jason Wang <jasowang@redhat.com>
>> ---
>> hw/net/virtio-net.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
>> index 657d099..eb8f5b6 100644
>> --- a/hw/net/virtio-net.c
>> +++ b/hw/net/virtio-net.c
>> @@ -757,6 +757,7 @@ static int virtio_net_handle_offloads(VirtIONet *n, uint8_t cmd,
>>
>> if (cmd == VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET) {
>> uint64_t supported_offloads;
> An empty line wouldn't hurt here.
I apply this patch by adding a new line here.
Thanks
>
>> + offloads = virtio_ldq_p(vdev, &offloads);
>>
>> if (!n->has_vnet_hdr) {
>> return VIRTIO_NET_ERR;
>> --
>> 2.7.4
prev parent reply other threads:[~2017-07-17 9:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-14 12:27 [Qemu-devel] [PATCH] virtio-net: fix offload ctrl endian Jason Wang
2017-07-14 14:26 ` Michael S. Tsirkin
2017-07-17 9:28 ` Jason Wang [this message]
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=f2e868dd-c845-aae4-2eba-13c6715dc1eb@redhat.com \
--to=jasowang@redhat.com \
--cc=dfleytma@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).