From: Vincenzo Maffione <v.maffione@gmail.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
Jason Wang <jasowang@redhat.com>,
qemu-devel@nongnu.org, anthony@codemonkey.ws,
Paolo Bonzini <pbonzini@redhat.com>,
Giuseppe Lettieri <g.lettieri@iet.unipi.it>,
Luigi Rizzo <rizzo@iet.unipi.it>
Subject: Re: [Qemu-devel] [PATCH v2] e1000: NetClientInfo.receive_iov implemented
Date: Wed, 11 Sep 2013 12:57:58 +0200 [thread overview]
Message-ID: <CA+_eA9j-HqaNAieLSuPp_HSoGeN3g78r9ZHW2eO9gvvbWKwtqw@mail.gmail.com> (raw)
In-Reply-To: <20130911083917.GA5904@stefanha-thinkpad.muc.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]
Thanks for the help!
Actually I've found out that the variable "copied" I use in this patch can
be removed, we can simply increment the variable "ba" instead (ba +=
iov_copy).
I have the patch v3 to do that ready. Do you think it is worth sending it?
Best regards,
Vincenzo
2013/9/11 Stefan Hajnoczi <stefanha@redhat.com>
> On Tue, Sep 10, 2013 at 02:19:47PM +0200, Vincenzo Maffione wrote:
> > This patch implements the NetClientInfo.receive_iov method for the
> > e1000 device emulation. In this way a network backend that uses
> > qemu_sendv_packet() can deliver the fragmented packet without
> > requiring an additional copy in the frontend/backend network code
> > (nc_sendv_compat() function).
> >
> > The existing method NetClientInfo.receive has been reimplemented
> > using the new method.
> >
> > Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com>
> > ---
> > hw/net/e1000.c | 71
> ++++++++++++++++++++++++++++++++++++++++++++++++----------
> > 1 file changed, 59 insertions(+), 12 deletions(-)
> >
> > I propose this patch also because our research group (University of Pisa,
> > Department of Computer Engineering) is working on the e1000 device
> > (optimizations and paravirtual extensions) and we have patches to
> > support the VALE switch as a network backend (see
> > http://info.iet.unipi.it/~luigi/vale/).
> > The VALE backend uses qemu_sendv_packet() to send fragmented packets: For
> > this reason we think it could be interesting to better support these
> packets
> > with e1000.
>
> Thanks, applied to my net tree:
> https://github.com/stefanha/qemu/commits/net
>
> Stefan
>
--
Vincenzo Maffione
[-- Attachment #2: Type: text/html, Size: 2502 bytes --]
next prev parent reply other threads:[~2013-09-11 10:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-10 12:19 [Qemu-devel] [PATCH v2] e1000: NetClientInfo.receive_iov implemented Vincenzo Maffione
2013-09-11 8:39 ` Stefan Hajnoczi
2013-09-11 10:57 ` Vincenzo Maffione [this message]
2013-09-12 8:23 ` Stefan Hajnoczi
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=CA+_eA9j-HqaNAieLSuPp_HSoGeN3g78r9ZHW2eO9gvvbWKwtqw@mail.gmail.com \
--to=v.maffione@gmail.com \
--cc=anthony@codemonkey.ws \
--cc=g.lettieri@iet.unipi.it \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rizzo@iet.unipi.it \
--cc=stefanha@redhat.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).