Date: Thu, 23 Jul 2020 03:25:32 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r363443 - stable/12/sys/net Message-ID: <202007230325.06N3PWL1000831@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007230325.06N3PWL1000831>