From owner-freebsd-net@FreeBSD.ORG Tue May 27 09:49:56 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 82048A14 for ; Tue, 27 May 2014 09:49:56 +0000 (UTC) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19CB62538 for ; Tue, 27 May 2014 09:49:55 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id cc10so1338957wib.10 for ; Tue, 27 May 2014 02:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=7l3Z7vsy2GrSZkd6eNUWOdsLOAD4vK4hqzTpiZfj9Nw=; b=TsYlObz2YzfrLhHF0unuz+nhlcVxjYeHHq90kND0Z7m/glfYQgOryH3SIUQG90HHkQ cf2Hr0zXgQTZ0J90qWZuTBINQ+D9wEQBqXQWlQBCWd22KpU81xK64OabzFPAdXFzOXHk TsQ/P2vvJxB/lQTn2h0ki5nfJYCVc1Vi1VYb2D1EBKY1y8CDpRALiUDmIZoB4GnhBkYw /FlcTIZigge2olNhRN33F8AU48ejeBYQ8auDK5BEHf1iM+EE6hctSLBmPPq8ibWJJFUr UkUqNXU6t5BaD+msGeqsS3t9BB+IejRskGLmelDS7JlvlfLFKiCL9ydHGMYUI6z86Q1b udzQ== MIME-Version: 1.0 X-Received: by 10.194.246.234 with SMTP id xz10mr37003498wjc.77.1401184193759; Tue, 27 May 2014 02:49:53 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.194.246.130 with HTTP; Tue, 27 May 2014 02:49:53 -0700 (PDT) In-Reply-To: References: <20140526170643.GE40172@onelab2.iet.unipi.it> Date: Tue, 27 May 2014 11:49:53 +0200 X-Google-Sender-Auth: 1jdyFRiuEMmdxSp8-XSVUvXhC88 Message-ID: Subject: Re: Regarding Netmap in VM From: Luigi Rizzo To: Jack Vogel Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: FreeBSD Net , Prashant Upadhyaya X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2014 09:49:56 -0000 On Tue, May 27, 2014 at 5:00 AM, Jack Vogel wrote: > I don't think we've ever tried this at Intel either. I had meant to check > the ixv code to > see if it had your code in it Luigi but got distracted, if it doesn't the= n > it obviously can't > work for the case of a VM. > =E2=80=8Bixv.c does not contain the netmap hooks though it might be relatively straightforward to add them, possibly reusing the same netmap hooks and support functions used in ixgbe.c As a matter of fact, there seems to be a large amount of duplicated code between ixv.c and ixgbe.c, so i wonder whether it makes sense to remove the duplication and use just a single copy of the common parts ? cheers luigi