Date: Tue, 8 Jul 2025 10:05:07 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: 2db01aea744f - stable/13 - pfsync: Remove a redundant assignment of if_type Message-ID: <202507081005.568A57fo067399@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=2db01aea744fcbae5d11bec6e42410e9acb58508 commit 2db01aea744fcbae5d11bec6e42410e9acb58508 Author: Zhenlei Huang <zlei@FreeBSD.org> AuthorDate: 2025-06-16 14:12:03 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2025-07-08 10:03:28 +0000 pfsync: Remove a redundant assignment of if_type On initializing the interface, if_alloc(IFT_PFSYNC) has set if_type already. No functional change intended. MFC after: 1 week (cherry picked from commit 48af70e7c82150942fd095a38131e454e47ad162) (cherry picked from commit 082a6da890f3487f1465c0757784798ebe38ef84) --- sys/netpfil/pf/if_pfsync.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c index 8044f302ed35..412739513472 100644 --- a/sys/netpfil/pf/if_pfsync.c +++ b/sys/netpfil/pf/if_pfsync.c @@ -346,7 +346,6 @@ pfsync_clone_create(struct if_clone *ifc, int unit, caddr_t param) ifp->if_softc = sc; ifp->if_ioctl = pfsyncioctl; ifp->if_output = pfsyncoutput; - ifp->if_type = IFT_PFSYNC; ifp->if_hdrlen = sizeof(struct pfsync_header); ifp->if_mtu = ETHERMTU; mtx_init(&sc->sc_mtx, pfsyncname, NULL, MTX_DEF);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507081005.568A57fo067399>