qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Vincenzo Maffione <v.maffione@gmail.com>
Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org,
	aliguori@amazon.com, pbonzini@redhat.com,
	g.lettieri@iet.unipi.it, rizzo@iet.unipi.it, rth@twiddle.net
Subject: Re: [Qemu-devel] [PATCH v2] net: Disable netmap backend when not supported
Date: Fri, 21 Feb 2014 11:05:32 +0100	[thread overview]
Message-ID: <20140221100532.GA17890@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1392907243-10781-1-git-send-email-v.maffione@gmail.com>

On Thu, Feb 20, 2014 at 03:40:43PM +0100, Vincenzo Maffione wrote:
> This patch fixes configure so that the netmap backend is not compiled in if the
> host doesn't support an API version >= 11. A version upper bound (15) has been
> added so that the netmap API can be extended with some minor features without
> requiring QEMU code modifications.
> 
> Moreover, some changes have been done to net/netmap.c in order to reflect the
> current netmap API/ABI (11).
> 
> The NETMAP_WITH_LIBS macro makes possible to include some utilities (e.g.
> netmap ring macros, D(), RD() and other high level functions) through the netmap
> headers. In this way we get rid of the D and RD macro definitions in the QEMU
> code, and we open the way for further code simplifications that will be
> introduced by future patches.
> 
> Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com>
> ---
> Note: This patch is against the net-next/net Stefan's branch.
> 
> Changes against the previous version:
>    (1) more complete commit description
>    (2) add comment in ./configure to explain version checks
> 
>  configure    | 10 +++++++++-
>  net/netmap.c | 55 +++++++++++++------------------------------------------
>  2 files changed, 22 insertions(+), 43 deletions(-)

Thanks for adding the explanations, it will make it easier for people
reading the code to understand this change in the future.

Applied to my net tree:
https://github.com/stefanha/qemu/commits/net

Stefan

  reply	other threads:[~2014-02-21 10:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20 14:40 [Qemu-devel] [PATCH v2] net: Disable netmap backend when not supported Vincenzo Maffione
2014-02-21 10:05 ` Stefan Hajnoczi [this message]
2014-02-24  9:54   ` Vincenzo Maffione
2014-02-25 10:52     ` 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=20140221100532.GA17890@stefanha-thinkpad.redhat.com \
    --to=stefanha@redhat.com \
    --cc=aliguori@amazon.com \
    --cc=g.lettieri@iet.unipi.it \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rizzo@iet.unipi.it \
    --cc=rth@twiddle.net \
    --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).