opaque ifnet progress

Gleb Smirnoff glebius at FreeBSD.org
Fri Apr 3 11:03:50 UTC 2015


  Anuranjan,

On Fri, Apr 03, 2015 at 01:42:49AM +0000, Anuranjan Shukla wrote:
A> Hello Gleb,
A> Thanks for sharing the details.
A> From looking at the wiki page it's not exactly clear what your plan is
A> regarding the accessor functions as they stand today (if_get*/if_set*
A> after drvapi change was made). I briefly glanced through some of the code
A> changes but that takes time so it'd be good to know sort of the overall
A> plan in that area if you foresee major rework.

The plan is that they go away. They were a quick solution, that allow
to avoid recompilation of a driver when struct ifnet change, but they
still dictate the layout of the structure and don't give enough flexibility
for the stacj to change in future.

Also, new world order dictates that all change to flags/capenable/etc
go directly through if_ioctl, so that we have one place to catch all
events. Field accessor functions violate this rule.

-- 
Totus tuus, Glebius.


More information about the freebsd-arch mailing list