From owner-freebsd-net@FreeBSD.ORG Sat Feb 22 01:10:03 2014 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3DF4CC2B for ; Sat, 22 Feb 2014 01:10:03 +0000 (UTC) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [119.145.14.66]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BAB2211D7 for ; Sat, 22 Feb 2014 01:10:02 +0000 (UTC) Received: from 172.24.2.119 (EHLO szxeml212-edg.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id AKY14311; Sat, 22 Feb 2014 09:03:25 +0800 (CST) Received: from SZXEML404-HUB.china.huawei.com (10.82.67.59) by szxeml212-edg.china.huawei.com (172.24.2.181) with Microsoft SMTP Server (TLS) id 14.3.158.1; Sat, 22 Feb 2014 09:03:21 +0800 Received: from [127.0.0.1] (10.177.19.236) by szxeml404-hub.china.huawei.com (10.82.67.59) with Microsoft SMTP Server id 14.3.158.1; Sat, 22 Feb 2014 09:03:18 +0800 Message-ID: <5307F755.4090303@huawei.com> Date: Sat, 22 Feb 2014 09:03:17 +0800 From: jerry User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Luigi Rizzo , , "freebsd-net@freebsd.org" Subject: Re: netmap, VALE and netmap pipes References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.19.236] X-CFilter-Loop: Reflected X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Feb 2014 01:10:03 -0000 Hi Luigi, How to use netmap pipe by pkt-gen commands? I have tried the commands as follows: ./pkt-gen -i netmap:pipename{1 -f tx ./pkt-gen -i netmap:pipename}1 -f rx (in another terminal) But it works failed. Should the pipename be replaced with a invalid NIC name such as "eth3" in netmap mode? The netmap pipe works from software ring to software ring independently with NICs, I understand. Is that right? B.R. Jerry On 2014/2/17 18:11, Luigi Rizzo wrote: > Hi, > we have recently made a few extensions to netmap/VALE and put various > pieces of code on public repositories, so i thought i'd share the > pointers. All the code below runs with equal features and performance > on FreeBSD and Linux, and we are trying to upstream it in the relevant > projects if possible (as an example, QEMU recently added a netmap backend), > at which point some of these clone repositories will become unnecessary. > > See http://info.iet.unipi.it/~luigi/netmap for more details. > > https://code.google.com/p/netmap/ > The latest netmap code for FreeBSD/Linux. It has native support > for certain NICs; emulated netmap over unmodified drivers; > enhanced parallelism in the VALE switch (20 Mpps/source, scaling > up to ~50Mpps); and a new feature called "netmap pipe" that > does zero-copy blocking I/O at over 100 Mpps. > Other features are the ability to allocate tons of extra > netmap buffers, and configurable sharing of memory among NICs, > VALE ports and netmap pipes. This increases the opportunity for > zero copy operation.