Date: Thu, 14 Nov 2024 12:05:02 -0500 From: Cheng Cui <cc@freebsd.org> To: Justin Hibbits <jhibbits@freebsd.org> Cc: freebsd-arch@freebsd.org, freebsd-net@freebsd.org Subject: Re: struct ifnet is now hidden Message-ID: <CAGaXui%2Bmz5O7MEsVWhFdW=KfYJ-sJwBKhtjAH%2BSFoh07hsjMdw@mail.gmail.com> In-Reply-To: <20241113143829.68bfbf8c@ralga.knownspace>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 👍👍 You have my thumbs up! cc On Wed, Nov 13, 2024 at 2:38 PM Justin Hibbits <jhibbits@freebsd.org> wrote: > Hi everyone, > > Many thanks to everyone involved, either fixing ports, reviewing > changes, or assisting with the API, struct ifnet is now hidden from > drivers and userspace. This means drivers now use the IfAPI, currently > largely consisting of just getters and setters in place of direct > access, with tools/ifnet/convert_ifapi.sh being a good starting point > for adapting drivers. > > In struct ifnet's place is if_t, an opaque pointer. "Blessed" parts of > the kernel, effectively anything sys/net*, modulo sys/netlink, can > directly access it, as those directories comprise the network stack, so > need direct access, as they manage the interfaces. Manpage updates > will be coming "soon", I'm hoping in the next few weeks, and will > likely need lots of review and editing. > > Again, thanks for everyone's help. I hope the road forward with this > is not too bumpy. > > - Justin > > -- Best Regards, Cheng Cui [-- Attachment #2 --] <div dir="ltr"><div>👍👍 You have my thumbs up!<br></div><div><br></div><div>cc</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 13, 2024 at 2:38 PM Justin Hibbits <<a href="mailto:jhibbits@freebsd.org">jhibbits@freebsd.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi everyone,<br> <br> Many thanks to everyone involved, either fixing ports, reviewing<br> changes, or assisting with the API, struct ifnet is now hidden from<br> drivers and userspace. This means drivers now use the IfAPI, currently<br> largely consisting of just getters and setters in place of direct<br> access, with tools/ifnet/convert_ifapi.sh being a good starting point<br> for adapting drivers.<br> <br> In struct ifnet's place is if_t, an opaque pointer. "Blessed" parts of<br> the kernel, effectively anything sys/net*, modulo sys/netlink, can<br> directly access it, as those directories comprise the network stack, so<br> need direct access, as they manage the interfaces. Manpage updates<br> will be coming "soon", I'm hoping in the next few weeks, and will<br> likely need lots of review and editing.<br> <br> Again, thanks for everyone's help. I hope the road forward with this<br> is not too bumpy.<br> <br> - Justin<br> <br> </blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div></div>Best Regards,<div>Cheng Cui</div></div></div></div>help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGaXui%2Bmz5O7MEsVWhFdW=KfYJ-sJwBKhtjAH%2BSFoh07hsjMdw>
