From cef5fc74c255369d55850b961163b01e77785a78 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Thu, 16 Jul 2020 15:02:11 +0000 Subject: [PATCH] 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 --- sys/net/if_tuntap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/net/if_tuntap.c b/sys/net/if_tuntap.c index 00b4a0a44ad1..40c96d23e5ed 100644 --- a/sys/net/if_tuntap.c +++ b/sys/net/if_tuntap.c @@ -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;