Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Feb 2012 07:48:35 -0800
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        net@FreeBSD.org
Subject:   Re: Abstracting struct ifnet
Message-ID:  <E23BCF0B-1C2F-4767-B2C5-ADAC62AEE7AF@xcllnt.net>
In-Reply-To: <20120217135320.GJ55075@FreeBSD.org>
References:  <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> <20120217135320.GJ55075@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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@xcllnt.net





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E23BCF0B-1C2F-4767-B2C5-ADAC62AEE7AF>