I'm currently working on a diff to make bpf a cloning device. Therefore
it is necessary to increase the number of clones possible of a cloning
device, as there are users with a need for more than 64 open bpf devices
at the same time. mikeb@ pointed me to this thread:
https://marc.info/?l=openbsd-tech&m=135410367503770

Objections/Ok?

natano


Index: sys/specdev.h
===================================================================
RCS file: /cvs/src/sys/sys/specdev.h,v
retrieving revision 1.34
diff -u -p -r1.34 specdev.h
--- sys/specdev.h       2 Nov 2013 00:16:31 -0000       1.34
+++ sys/specdev.h       30 Mar 2016 13:48:00 -0000
@@ -46,7 +46,7 @@ struct specinfo {
        daddr_t si_lastr;
        union {
                struct vnode *ci_parent; /* pointer back to parent device */
-               u_int8_t ci_bitmap[8]; /* bitmap of devices cloned off us */
+               u_int8_t ci_bitmap[128]; /* bitmap of devices cloned off us */
        } si_ci;
 };
 

Reply via email to