Re: clonable bpf

2012-11-28 Thread Janne Johansson
2012/11/27 Mike Belopuhov m...@belopuhov.com: apply the diff and see how all your apps are happily using single device node: /dev/bpf0. i'm not 100% sure we want this but why wouldn't we? generally speaking we also need to move to a single /dev/bpf node, but that can be done, once this diff

Re: clonable bpf

2012-11-28 Thread Reyk Floeter
On Tue, Nov 27, 2012 at 10:17 PM, Mike Belopuhov m...@belopuhov.com wrote: apparently it works just fine. the number of clones is limited by the v_specbitmap which currently allows for 64 clones total (per system, not per process). Please clarify: Does it mean 64 cloned bpf devices per

Re: clonable bpf

2012-11-28 Thread Mike Belopuhov
On Wed, Nov 28, 2012 at 12:43 PM, Reyk Floeter r...@openbsd.org wrote: On Tue, Nov 27, 2012 at 10:17 PM, Mike Belopuhov m...@belopuhov.com wrote: apparently it works just fine. the number of clones is limited by the v_specbitmap which currently allows for 64 clones total (per system, not per

Re: clonable bpf

2012-11-28 Thread Theo de Raadt
there's not supposed to be bpf0,1,2,3... Unfortunately history argues otherwise.

Re: clonable bpf

2012-11-28 Thread Mike Belopuhov
On Wed, Nov 28, 2012 at 11:38 PM, Theo de Raadt dera...@cvs.openbsd.org wrote: there's not supposed to be bpf0,1,2,3... Unfortunately history argues otherwise. no, i meant if we move to the clonable bpf, we will need only one node. sorry for not making it clear.

clonable bpf

2012-11-27 Thread Mike Belopuhov
apparently it works just fine. the number of clones is limited by the v_specbitmap which currently allows for 64 clones total (per system, not per process). apply the diff and see how all your apps are happily using single device node: /dev/bpf0. thanks to pedro and thib for the spec_open_clone

Re: clonable bpf

2012-11-27 Thread Mike Belopuhov
On Tue, Nov 27, 2012 at 22:17 +0100, Mike Belopuhov wrote: apparently it works just fine. the number of clones is limited by the v_specbitmap which currently allows for 64 clones total (per system, not per process). apply the diff and see how all your apps are happily using single device