|
From: | Luigi Rizzo |
Subject: | Re: [Qemu-devel] [PATCH] net: Disable netmap backend when not supported |
Date: | Wed, 19 Feb 2014 10:30:03 -0800 |
On Fri, Feb 14, 2014 at 05:40:24PM +0100, Vincenzo Maffione wrote:Why error when NETMAP_API > 15?
> This patch fixes configure so that netmap is not compiled in if the
> host doesn't support an API version >= 11.
>
> Moreover, some modifications have been done to net/netmap.c in
> order to reflect the current netmap API (11).
>
> Signed-off-by: Vincenzo Maffione <address@hidden>
> ---
> configure | 3 +++
> net/netmap.c | 57 ++++++++++++++-------------------------------------------
> 2 files changed, 17 insertions(+), 43 deletions(-)
>
> diff --git a/configure b/configure
> index 88133a1..61eb932 100755
> --- a/configure
> +++ b/configure
> @@ -2118,6 +2118,9 @@ if test "$netmap" != "no" ; then
> #include <net/if.h>
> #include <net/netmap.h>
> #include <net/netmap_user.h>
> +#if (NETMAP_API < 11) || (NETMAP_API > 15)
> +#error
> +#endif
> - ring->cur = NETMAP_RING_NEXT(ring, i);> - ring->avail--;Are these changes related to the NETMAP_WITH_LIBS macro? Please do that
> + ring->cur = ring->head = nm_ring_next(ring, i);
> ioctl(s->me.fd, NIOCTXSYNC, NULL);
>
> return size;
in a separate patch so we keep the version checking change separate from
the NETMAP_WITH_LIBS change.
[Prev in Thread] | Current Thread | [Next in Thread] |