svn commit: r363252 - head/sys/net

Kyle Evans kevans at FreeBSD.org
Thu Jul 16 15:02:11 UTC 2020


Author: kevans
Date: Thu Jul 16 15:02:11 2020
New Revision: 363252
URL: https://svnweb.freebsd.org/changeset/base/363252

Log:
  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

Modified:
  head/sys/net/if_tuntap.c

Modified: head/sys/net/if_tuntap.c
==============================================================================
--- head/sys/net/if_tuntap.c	Thu Jul 16 14:21:55 2020	(r363251)
+++ head/sys/net/if_tuntap.c	Thu Jul 16 15:02:11 2020	(r363252)
@@ -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;
 


More information about the svn-src-all mailing list