git: if_tun: Use pointer to ifnet in tun_softc struct

Sepherosa Ziehau sepherosa at
Thu Jul 19 18:40:21 PDT 2018

Most of the physical drivers are ethernet ones, so they need arpcom;
please do w/ care.  I am not quite sure why we want to use if_alloc()
in the first place?  We don't have the synchronization issue
if_alloc() tries to address in FreeBSD.

On Fri, Jul 20, 2018 at 9:29 AM, Aaron LI <aly at> wrote:
> On Fri, 20 Jul 2018 09:09:07 +0800
> Sepherosa Ziehau <sepherosa at> wrote:
>> Just panic if_com_alloc[type]() fails.
> Ok, I'll do it.  I'll also look at the drivers to make them use if_alloc()
> and if_free() when appropriate.
> Cheers,
> --
> Aaron

Tomorrow Will Never Die

More information about the Commits mailing list