Abstracting struct ifnet
Luigi Rizzo
rizzo at iet.unipi.it
Mon Feb 20 23:57:52 UTC 2012
On Mon, Feb 20, 2012 at 05:16:02PM -0600, Brooks Davis 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.
cheers
luigi
More information about the freebsd-net
mailing list