Abstracting struct ifnet

Marcel Moolenaar marcel at xcllnt.net
Fri Feb 17 15:48:36 UTC 2012


On Feb 17, 2012, at 5:53 AM, Gleb Smirnoff wrote:
> M> Thoughts, feedback and suggestion are welcome,
> 
> Is it possible to make the structure the driver points to opaque?
> 
> Once made, that would allow us to hack on the ifnet (or on its
> successor - iflogical) more aggressively without breaking ABI/API.

Yes, that's the idea. Backward compatibility kinda conflicts
with making struct ifnet entirely abstract, but I don't see
that as a problem without solution. Only as a problem for
which an acceptable solution must be found.

For example: you can introduce a define that either old or
new drivers use to indicate whether they need full visibility
or whether an abstract type works. This then drives what is
defined/declared and how it's defined/declared.

-- 
Marcel Moolenaar
marcel at xcllnt.net




More information about the freebsd-net mailing list