mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
tuntap: drop redundant if_mtu assignment in tuncreate
ether_ifattach will immediately clobber if_mtu with ETHERMTU anyways, just let it happen. MFC after: 1 week
This commit is contained in:
parent
39523b486b
commit
cef5fc74c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363252
|
@ -965,7 +965,6 @@ tuncreate(struct cdev *dev)
|
|||
ifp->if_capenable |= IFCAP_LINKSTATE;
|
||||
|
||||
if ((tp->tun_flags & TUN_L2) != 0) {
|
||||
ifp->if_mtu = ETHERMTU;
|
||||
ifp->if_init = tunifinit;
|
||||
ifp->if_start = tunstart_l2;
|
||||
|
||||
|
|
Loading…
Reference in a new issue