From owner-freebsd-net@FreeBSD.ORG Sat Jan 3 17:17:02 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3AC05472 for ; Sat, 3 Jan 2015 17:17:02 +0000 (UTC) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id F28DF64972 for ; Sat, 3 Jan 2015 17:17:01 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 254D47300A; Sat, 3 Jan 2015 18:21:39 +0100 (CET) Date: Sat, 3 Jan 2015 18:21:39 +0100 From: Luigi Rizzo To: Slawa Olhovchenkov Subject: Re: netmap pipes Message-ID: <20150103172139.GB95134@onelab2.iet.unipi.it> References: <20150103164035.GC49169@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150103164035.GC49169@zxy.spb.ru> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 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, 03 Jan 2015 17:17:02 -0000 On Sat, Jan 03, 2015 at 08:40:35PM +0400, Slawa Olhovchenkov wrote: > Can anybody explain netmap pipes (more then netmap(4))? > How use it? > How it works? > pipes works over existing network adapter in netmap mode? > Or indepened (can I create netmap pipe named 'some_strange_name')? > What purpose of master and slave? think of pipes as regular netmap ports connected back to back, (or as two ports on a VALE switch, if you like). They are unrelated to network devices (though the name indicates how they share memory, but forget that for the time being); are created using the "strange names" like valeX:Y{0 and valeX:Y}0 (which I realize are not yet in the manpage, sorry); and you have master and slave because need to name both endpoints. cheers luigi