From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEJ1D-0007JF-Jf for qemu-devel@nongnu.org; Fri, 14 Feb 2014 08:41:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEJ1B-0003LK-Rx for qemu-devel@nongnu.org; Fri, 14 Feb 2014 08:41:27 -0500 Received: from mail-ob0-x230.google.com ([2607:f8b0:4003:c01::230]:56137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEJ1B-0003LD-LB for qemu-devel@nongnu.org; Fri, 14 Feb 2014 08:41:25 -0500 Received: by mail-ob0-f176.google.com with SMTP id gq1so13905533obb.35 for ; Fri, 14 Feb 2014 05:41:25 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <52FBB6DD.6090300@msgid.tls.msk.ru> <20140214095244.GA12053@stefanha-thinkpad.redhat.com> Date: Fri, 14 Feb 2014 14:41:24 +0100 Message-ID: From: Vincenzo Maffione Content-Type: multipart/alternative; boundary=047d7b66f0bd4df04304f25df619 Subject: Re: [Qemu-devel] net: Adding netmap network backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luigi Rizzo Cc: Michael Tokarev , qemu-devel , Stefan Hajnoczi --047d7b66f0bd4df04304f25df619 Content-Type: text/plain; charset=ISO-8859-1 Stefan, It is ok for you if I prepare a patch (touching configure and net/netmap.c) that makes sure the host kernel has the minimum netmap version required for QEMU to work (and if not just --disable-netmap)? Cheers, Vincenzo 2014-02-14 11:24 GMT+01:00 Luigi Rizzo : > > > > On Fri, Feb 14, 2014 at 2:20 AM, Vincenzo Maffione wrote: > >> Yes, for sure we need to do a check. >> >> However, this would involve - I think - some non-trivial modifications to >> net/netmap.c, because without NS_MOREFRAG you cannot split a packet over >> more "netmap slots/descriptors" (both tx and rx side) >> >> Therefore I would ask (manly Luigi, since netmap is in-tree in FreeBSD): >> Wouldn't it be better to force --disable-netmap when we realize that >> NETMAP_API (version number for the netmap API) is less than the value >> required by QEMU? This can be done in ./configure. In this way we keep the >> QEMU code cleaner. >> > > yes we should do exactly what vincenzo suggests. > > cheers > luigi > -- Vincenzo Maffione --047d7b66f0bd4df04304f25df619 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Stefan,
=A0 It is ok for you if I = prepare a patch (touching configure and net/netmap.c) that makes sure the h= ost kernel has the minimum netmap version required for QEMU to work (and if= not just --disable-netmap)?

Cheers,
=A0 Vincenzo


2014-02-14 11:24 GMT+01:00 Luigi Rizzo = <rizzo@iet.unipi.it>:



On Fri, Feb 14, 2014 at = 2:20 AM, Vincenzo Maffione <v.maffione@gmail.com> wrote:<= br>
Yes, for sur= e we need to do a check.

However, this would involve - I think - som= e non-trivial modifications to net/netmap.c, because without NS_MOREFRAG yo= u cannot split a packet over more "netmap slots/descriptors" (bot= h tx and rx side)

Therefore I would ask (manly Luigi, since netmap is in-tree in Fr= eeBSD): Wouldn't it be better to force --disable-netmap when we realize= that NETMAP_API (version number for the netmap API) is less than the value= required by QEMU? This can be done in ./configure. In this way we keep the= QEMU code cleaner.

yes we should d= o exactly what vincenzo suggests.

cheers
luigi



--
Vincenzo Maffione
--047d7b66f0bd4df04304f25df619--