On Wed, Aug 03, 2011 at 02:04:09PM -0700, Ben Pfaff wrote: > [Adding patch author as CC.] > > On Wed, Aug 03, 2011 at 04:04:11PM +0900, Simon Horman wrote: > > I believe that there is some discussion to be had on if some sort of API > > should be provided to allow vendors to register their own extensions (e.g. > > at compile time). But as there is currently no such API I would like this > > patch considered for merging. > > I'd rather actually talk about what that "API" should look like. > Ideally we'd be able to also implement at least some of the Nicira > extensions using the same compile-time method, which would mean that > we wouldn't accidentally break it. > > Do you have an initial proposal?
To be honest I haven't thought about what the API would look like in detail. But I had got as far as thinking in terms of register and unregister functions which take a structure which describes a list of types which are in turn structures that describe a list of subtypes. Beyond that, I imagine that the portions of existing case statements that handle extensions would need to be replaced by loops that search through registered types or subtypes. I guess that this wouldn't be particularly efficient. But assuming that there is a reasonable small number of extensions it seems that it ought to be fast enough. _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
