Abstracting struct ifnet

Adrian Chadd adrian at freebsd.org
Tue Feb 21 00:37:31 UTC 2012


On 20 February 2012 16:15, Luigi Rizzo <rizzo at iet.unipi.it> wrote:

>> The concept seems fine to me and I like that it might simplify future
>> API changes.  Have you verified that if_get_*() accessors don't add
>> significant overhead?
>
> the vast majority of these fields are only accessed in the control path,
> not on each packet, so there isn't really a performance issue. Besides
> they can be trivially implemted as macros or inline functions.

I doubt Juniper need _binary_ level compatibility. So we could get
away with inline methods.

This sort of thing just makes source level compatibility a lot easier.


Adrian


More information about the freebsd-net mailing list