svn commit: r281151 - projects/ifnet/sys/net
Lawrence Stewart
lstewart at freebsd.org
Mon Apr 6 20:58:45 UTC 2015
Hi Gleb,
On 04/06/15 08:22, Gleb Smirnoff wrote:
> Author: glebius
> Date: Mon Apr 6 15:22:32 2015
> New Revision: 281151
> URL: https://svnweb.freebsd.org/changeset/base/281151
>
> Log:
> Provide software context store in struct ifnet for any facility. To add
> a new facility, one needs to grab a value in the ift_feature enum, and
> not need to modify struct ifnet.
>
> The store also has a cache to return frequently requested values,
> which resembles kobj(9) method cache.
>
> The plan is to move into the softc store almost all possible software
> contexts that hang off the struct ifnet, leaving static only the driver
> softc, AF_INET, AF_INET6 pointers, and other frequently used pointer.
It seems likely that this is partially reinventing OSD(9) (also see the
way I used it for for khelp(9)). Perhaps OSD could be improved with some
useful things like the cache and then it might be a suitable drop in
replacement here as well?
Cheers,
Lawrence
More information about the svn-src-projects
mailing list