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 New Issue
Block a user