From: Jason Wang <jasowang@redhat.com>
To: Vincenzo Maffione <v.maffione@gmail.com>
Cc: Giuseppe Lettieri <g.lettieri@iet.unipi.it>,
Luigi Rizzo <rizzo@iet.unipi.it>,
qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] net: netmap: probe netmap interface for virtio-net header
Date: Tue, 23 Feb 2016 11:29:44 +0800 [thread overview]
Message-ID: <56CBD228.8010707@redhat.com> (raw)
In-Reply-To: <CA+_eA9iqKgZWkiVKRcQ6ygF00q8DKLNQF1gg7QopK6KYzgKf=A@mail.gmail.com>
On 02/18/2016 09:34 PM, Vincenzo Maffione wrote:
>>> static void netmap_set_offload(NetClientState *nc, int csum, int tso4, int tso6,
>>> >> @@ -376,7 +394,7 @@ static void netmap_set_offload(NetClientState *nc, int csum, int tso4, int tso6,
>>> >> * enables the offloadings.
>>> >> */
>>> >> if (!s->vnet_hdr_len) {
>>> >> - netmap_set_vnet_hdr_len(nc, sizeof(struct virtio_net_hdr));
>>> >> + netmap_do_set_vnet_hdr_len(s, sizeof(struct virtio_net_hdr), true);
>>> >> }
>>> >> }
>>> >>
>>> >> @@ -388,7 +406,7 @@ static NetClientInfo net_netmap_info = {
>>> >> .receive_iov = netmap_receive_iov,
>>> >> .poll = netmap_poll,
>>> >> .cleanup = netmap_cleanup,
>>> >> - .has_ufo = netmap_has_ufo,
>>> >> + .has_ufo = netmap_has_vnet_hdr,
>> >
>> > This look suspicious, I'm not sure this is correct for netmap. May need
>> > a comment to explain. Usually vnet hdr does not imply ufo.
>> >
>>> >> .has_vnet_hdr = netmap_has_vnet_hdr,
>>> >> .has_vnet_hdr_len = netmap_has_vnet_hdr_len,
>>> >> .using_vnet_hdr = netmap_using_vnet_hdr,
>> >
> Yes, I know it sounds weird in general, but a netmap port using
> virtio-net headers always provides TCPv4, TCPv6, UDP and ECN
> offloadings (done in software inside netmap).
>
> This patch already provides a little comment about UFO support on the
> netmap_has_vnet_hdr() function.
Just saw that.
> Do you want me to move it here, or is
> the comment not understandable enough?
>
> Thanks for your review,
> Vincenzo
Nope, it's ok.
Thanks
prev parent reply other threads:[~2016-02-23 3:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 10:30 [Qemu-devel] [PATCH] net: netmap: implement virtio-net header probe Vincenzo Maffione
2016-02-05 10:30 ` [Qemu-devel] [PATCH] net: netmap: probe netmap interface for virtio-net header Vincenzo Maffione
2016-02-18 2:52 ` Jason Wang
2016-02-18 13:34 ` Vincenzo Maffione
2016-02-23 3:29 ` 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=56CBD228.8010707@redhat.com \
--to=jasowang@redhat.com \
--cc=g.lettieri@iet.unipi.it \
--cc=qemu-devel@nongnu.org \
--cc=rizzo@iet.unipi.it \
--cc=v.maffione@gmail.com \
/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).