Date: Mon, 06 Apr 2015 13:52:36 -0700 From: Lawrence Stewart <lstewart@freebsd.org> To: Gleb Smirnoff <glebius@freebsd.org>, src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: Re: svn commit: r281151 - projects/ifnet/sys/net Message-ID: <5522F214.5060903@freebsd.org> In-Reply-To: <201504061522.t36FMXwX092973@svn.freebsd.org> References: <201504061522.t36FMXwX092973@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5522F214.5060903>