From owner-freebsd-net@FreeBSD.ORG Sat Jan 3 17:32:58 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 36419B27 for ; Sat, 3 Jan 2015 17:32:58 +0000 (UTC) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E4F4C64C85 for ; Sat, 3 Jan 2015 17:32:57 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1Y7SZL-0007bu-Qv; Sat, 03 Jan 2015 21:32:55 +0400 Date: Sat, 3 Jan 2015 21:32:55 +0400 From: Slawa Olhovchenkov To: Luigi Rizzo Subject: Re: netmap pipes Message-ID: <20150103173255.GD49169@zxy.spb.ru> References: <20150103164035.GC49169@zxy.spb.ru> <20150103172139.GB95134@onelab2.iet.unipi.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150103172139.GB95134@onelab2.iet.unipi.it> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false 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:32:58 -0000 On Sat, Jan 03, 2015 at 06:21:39PM +0100, Luigi Rizzo wrote: > 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); can I use names other then valeX:Y? for example 'inside0'? > and you have master and slave because need to name both endpoints. I create pipe with many slaves (NIOCREGIF with nr_arg1=16, for example), how I can use this? Writing to master replicated to all slaves? Writing to any slaves reading from master? Or unidirected?