I believe some protocols can be registered, then unregistered, then
re-registered (module loads, unloads, ...)
So you probably want to use a bitmap instead of a counter that will
eventually reach PROTO_INUSE_NR
assign_proto_idx() should find a zero bit, and you should free this bit
at proto_unregister() time
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html