Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jun 2025 14:13:14 GMT
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 48af70e7c821 - main - pfsync: Remove a redundant assignment of if_type
Message-ID:  <202506161413.55GEDEIe044183@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by zlei:

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

commit 48af70e7c82150942fd095a38131e454e47ad162
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-06-16 14:12:03 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2025-06-16 14:12:03 +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
---
 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 0795c75e8de0..31b641b43fe3 100644
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -403,7 +403,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?202506161413.55GEDEIe044183>