Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2015 03:45:58 +0400
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        freebsd-net@freebsd.org
Subject:   Re: netmap pipes
Message-ID:  <20150106234558.GG49169@zxy.spb.ru>
In-Reply-To: <20150103181304.GE95134@onelab2.iet.unipi.it>
References:  <20150103164035.GC49169@zxy.spb.ru> <20150103172139.GB95134@onelab2.iet.unipi.it> <20150103173255.GD49169@zxy.spb.ru> <20150103174207.GC95134@onelab2.iet.unipi.it> <20150103175721.GE49169@zxy.spb.ru> <20150103181304.GE95134@onelab2.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 03, 2015 at 07:13:04PM +0100, Luigi Rizzo wrote:

> > Can I write to slave and read from master?
> 
> pipes are bidirectional and blocking. So you can write
> on one and read from the other, in any order.

What you mean 'blocking'? Can't be used in select/poll (as blocking
disk IO)?

> This is a 'power user' feature which maybe is not what you need
> (and at the moment I don't have time to explain in more detail
> or update the manpage).
> Pipes share memory with the netmap port (VALE port or NIC) with the
> same basename, and since memory allocation occurs at once, on the
> first open you need to tell the OS how many pipes need to share
> memory with the same port -- that is the role of nr_arg1.

Can you also explain relations between

dev.netmap.ring_size
dev.netmap.buf_num
open interfaces
rings per interfaces
slots per rings

and zerocopy conditions?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150106234558.GG49169>