Date: Mon, 7 Jul 2025 10:06:59 GMT From: Zhenlei Huang <zlei@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 3da0853d7119 - stable/14 - ng_iface(4): Remove a redundant assignment of if_type Message-ID: <202507071006.567A6xsn053447@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=3da0853d71197610375262b8bb06cadda6c8f4dc commit 3da0853d71197610375262b8bb06cadda6c8f4dc Author: Zhenlei Huang <zlei@FreeBSD.org> AuthorDate: 2025-06-13 10:07:18 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2025-07-07 10:05:09 +0000 ng_iface(4): Remove a redundant assignment of if_type That is unnecessary since change [1], as if_alloc(IFT_PROPVIRTUAL) has set if_type already. [1] fc74a9f93a5f Stop embedding struct ifnet at the top of driver softcs No functional change intended. MFC after: 1 week (cherry picked from commit c43d6dadf7e34a94f4d119ff6d7113ad9a9b4d38) --- sys/netgraph/ng_iface.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c index d42e74d5fd22..fbe89e13474b 100644 --- a/sys/netgraph/ng_iface.c +++ b/sys/netgraph/ng_iface.c @@ -545,7 +545,6 @@ ng_iface_constructor(node_p node) ifp->if_ioctl = ng_iface_ioctl; ifp->if_mtu = NG_IFACE_MTU_DEFAULT; ifp->if_flags = (IFF_SIMPLEX|IFF_POINTOPOINT|IFF_NOARP|IFF_MULTICAST); - ifp->if_type = IFT_PROPVIRTUAL; /* XXX */ ifp->if_addrlen = 0; /* XXX */ ifp->if_hdrlen = 0; /* XXX */ ifp->if_baudrate = 64000; /* XXX */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507071006.567A6xsn053447>