Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Wojciech Puchar
Hi y'all. I have a question about netmap - a novel framework for fast packet I/O. OpenBSD packet I/O is already very fast from what i tested :)

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Tomas Bodzar
On 7/13/12, Bahador NazariFard bahador.nazarif...@gmail.com wrote: Hi y'all. I have a question about netmap - a novel framework for fast packet I/O. Does OpenBSD have any plan to support Netmap framework? I also have a technical question about netmap and firewall relation. As I read

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Chris Cappuccio
framework for fast packet I/O. Does OpenBSD have any plan to support Netmap framework? I also have a technical question about netmap and firewall relation. As I read and understand we can work with nic interface almost directly form user land by netmap. what does mean that? We have to pass

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Andres Perera
On Fri, Jul 13, 2012 at 11:59 AM, Chris Cappuccio ch...@nmedia.net wrote: But having a generic mechanism to bring network data in/out userland for analysis or manipulation, abstracted in a secure way from the kernel across multiple network card types, and zero copy, could be very useful. The

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Chris Cappuccio
Andres Perera [andre...@zoho.com] wrote: On Fri, Jul 13, 2012 at 11:59 AM, Chris Cappuccio ch...@nmedia.net wrote: But having a generic mechanism to bring network data in/out userland for analysis or manipulation, abstracted in a secure way from the kernel across multiple network card

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Andres Perera
from their site: netmap implements a special device, /dev/netmap, which is the gateway to switch one or more network cards to netmap mode, where the card's datapath is disconnected from the operating system. open(/dev/netmap) returns a file descriptor that can be used with ioctl(fd, NIOCREG, ...)

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Chris Cappuccio
Andres Perera [andre...@zoho.com] wrote: so i should move the whole filtering stack to userland... seems like a needless work for simple packet capture And I completely disagree. You think what the kernel does now is simple ?

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Claudio Jeker
On Fri, Jul 13, 2012 at 12:43:42PM -0700, Chris Cappuccio wrote: Andres Perera [andre...@zoho.com] wrote: On Fri, Jul 13, 2012 at 11:59 AM, Chris Cappuccio ch...@nmedia.net wrote: But having a generic mechanism to bring network data in/out userland for analysis or manipulation,

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Chris Cappuccio
Andres Perera [andre...@zoho.com] wrote: for clients (processes) that need to do trivial filtering, e.g., tcpdump 'ether multicast and not broadcast', it's an overhaul for nothing the placement of the filtering stack in the kernel is completely irrelevant to how simple it will end up. if

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Chris Cappuccio
Andres Perera [andre...@zoho.com] wrote: i don't expect *every* application to manage the rx/tx rings directly, reinject when they're done Let's be more practical here. Luigi already gives you a stub pcap library that does this for you. You can take an existing pcap application, link it to

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Andres Perera
for clients (processes) that need to do trivial filtering, e.g., tcpdump 'ether multicast and not broadcast', it's an overhaul for nothing the placement of the filtering stack in the kernel is completely irrelevant to how simple it will end up. if you come up with a sbin/bpfd it will still have

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Chris Cappuccio
Claudio Jeker [cje...@diehard.n-r-g.com] wrote: Why go through layers and layers of kernel processing for applications that simply don't need to? That's the goal here. Not replacing BPF. You think it is better to go through layers and layers of userland code? In the end you need to do

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Andres Perera
On Fri, Jul 13, 2012 at 3:40 PM, Chris Cappuccio ch...@nmedia.net wrote: Andres Perera [andre...@zoho.com] wrote: for clients (processes) that need to do trivial filtering, e.g., tcpdump 'ether multicast and not broadcast', it's an overhaul for nothing the placement of the filtering stack in

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Ted Unangst
On Fri, Jul 13, 2012 at 16:06, Andres Perera wrote: you did! you explicitly said that it would be advantageous for programs looking to perform analysis on captured packets. for those programs, it turns out the placement of the filter doesn't matter Sure it matters. Simple example: count

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Andres Perera
the comparison started against freebsd bpf's augmentations: Zero-copy buffer mode bpf devices may also operate in the BPF_BUFMODE_ZEROCOPY mode, in which packet data is written directly into two user memory buffers by the ker- nel, avoiding both system call and copying overhead.

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Geoff Steckel
On 07/13/2012 05:13 PM, Ted Unangst wrote: On Fri, Jul 13, 2012 at 16:06, Andres Perera wrote: you did! you explicitly said that it would be advantageous for programs looking to perform analysis on captured packets. for those programs, it turns out the placement of the filter doesn't matter

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Ted Unangst
On Fri, Jul 13, 2012 at 17:56, Geoff Steckel wrote: On 07/13/2012 05:13 PM, Ted Unangst wrote: On Fri, Jul 13, 2012 at 16:06, Andres Perera wrote: you did! you explicitly said that it would be advantageous for programs looking to perform analysis on captured packets. for those programs, it

Re: Does OpenBSD have any plan to support Netmap framework?

2012-07-13 Thread Claudio Jeker
On Fri, Jul 13, 2012 at 07:37:09PM -0400, Ted Unangst wrote: On Fri, Jul 13, 2012 at 17:56, Geoff Steckel wrote: On 07/13/2012 05:13 PM, Ted Unangst wrote: On Fri, Jul 13, 2012 at 16:06, Andres Perera wrote: you did! you explicitly said that it would be advantageous for programs looking

Does OpenBSD have any plan to support Netmap framework?

2012-07-12 Thread Bahador NazariFard
Hi y'all. I have a question about netmap - a novel framework for fast packet I/O. Does OpenBSD have any plan to support Netmap framework? I also have a technical question about netmap and firewall relation. As I read and understand we can work with nic interface almost directly form user land