git: if_tun: Use pointer to ifnet in tun_softc struct

Aaron LI aly at
Thu Jul 19 19:19:17 PDT 2018

On Fri, 20 Jul 2018 09:40:21 +0800
Sepherosa Ziehau <sepherosa at> wrote:

> Most of the physical drivers are ethernet ones, so they need arpcom;
> please do w/ care.

Sure, I have to understand the drivers more before really touching them.

> I am not quite sure why we want to use if_alloc() in the first place?

Since our if_alloc() is very simple, so there is no big benefit to use it
over the direct kmalloc().  But if_alloc() is easier to use and more

> We don't have the synchronization issue if_alloc() tries to address
> in FreeBSD.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Commits mailing list