svn commit: r363443 - stable/12/sys/net
Kyle Evans
kevans at FreeBSD.org
Thu Jul 23 03:25:32 UTC 2020
Author: kevans
Date: Thu Jul 23 03:25:31 2020
New Revision: 363443
URL: https://svnweb.freebsd.org/changeset/base/363443
Log:
tuntap: drop redundant if_mtu assignment in tuncreate
ether_ifattach will immediately clobber if_mtu with ETHERMTU anyways, just
let it happen.
Modified:
stable/12/sys/net/if_tuntap.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/net/if_tuntap.c
==============================================================================
--- stable/12/sys/net/if_tuntap.c Thu Jul 23 03:24:35 2020 (r363442)
+++ stable/12/sys/net/if_tuntap.c Thu Jul 23 03:25:31 2020 (r363443)
@@ -939,7 +939,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;
More information about the svn-src-all
mailing list