git: fa3f6655421f - main - netmap: drop redundant if_mtu assignment

From: Vincenzo Maffione <vmaffione_at_FreeBSD.org>
Date: Wed, 08 Feb 2023 21:07:57 UTC
The branch main has been updated by vmaffione:

URL: https://cgit.FreeBSD.org/src/commit/?id=fa3f6655421f734ee8a01102612dd2092970c001

commit fa3f6655421f734ee8a01102612dd2092970c001
Author:     Vincenzo Maffione <vmaffione@FreeBSD.org>
AuthorDate: 2023-02-08 21:05:32 +0000
Commit:     Vincenzo Maffione <vmaffione@FreeBSD.org>
CommitDate: 2023-02-08 21:05:32 +0000

    netmap: drop redundant if_mtu assignment
    
    Reported by:    zlei
    MFC after       3 days
---
 sys/dev/netmap/netmap_freebsd.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/dev/netmap/netmap_freebsd.c b/sys/dev/netmap/netmap_freebsd.c
index 0f7372e959bb..8c480f2fb092 100644
--- a/sys/dev/netmap/netmap_freebsd.c
+++ b/sys/dev/netmap/netmap_freebsd.c
@@ -620,7 +620,6 @@ nm_os_vi_persist(const char *name, struct ifnet **ret)
 		return ENOMEM;
 	}
 	if_initname(ifp, name, IF_DUNIT_NONE);
-	ifp->if_mtu = 65536;
 	ifp->if_flags = IFF_UP | IFF_SIMPLEX | IFF_MULTICAST;
 	ifp->if_init = (void *)nm_vi_dummy;
 	ifp->if_ioctl = nm_vi_dummy;