Skip site navigation (1)Skip section navigation (2)
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>
References:  <20241113143829.68bfbf8c@ralga.knownspace>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000a545f10626e275b3
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

=F0=9F=91=8D=F0=9F=91=8D You have my thumbs up!

cc

On Wed, Nov 13, 2024 at 2:38=E2=80=AFPM Justin Hibbits <jhibbits@freebsd.or=
g> 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
>
>

--=20
Best Regards,
Cheng Cui

--000000000000a545f10626e275b3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>=F0=9F=91=8D=F0=9F=91=8D=C2=A0You have my thumbs up!<=
br></div><div><br></div><div>cc</div><br><div class=3D"gmail_quote"><div di=
r=3D"ltr" class=3D"gmail_attr">On Wed, Nov 13, 2024 at 2:38=E2=80=AFPM Just=
in Hibbits &lt;<a href=3D"mailto:jhibbits@freebsd.org">jhibbits@freebsd.org=
</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"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.=C2=A0 This means drivers now use the IfAPI, currentl=
y<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&#39;s place is if_t, an opaque pointer.=C2=A0 &quot;Blessed=
&quot; 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.=C2=A0 Manpage updates<br=
>
will be coming &quot;soon&quot;, I&#39;m hoping in the next few weeks, and =
will<br>
likely need lots of review and editing.<br>
<br>
Again, thanks for everyone&#39;s help.=C2=A0 I hope the road forward with t=
his<br>
is not too bumpy.<br>
<br>
- Justin<br>
<br>
</blockquote></div><div><br clear=3D"all"></div><div><br></div><span class=
=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_s=
ignature"><div dir=3D"ltr"><div></div>Best Regards,<div>Cheng Cui</div></di=
v></div></div>

--000000000000a545f10626e275b3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGaXui%2Bmz5O7MEsVWhFdW=KfYJ-sJwBKhtjAH%2BSFoh07hsjMdw>