The branch stable/14 has been updated by zlei:

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

commit 193f0bde3b048559d36c3e6db5d6b2be7daeaf6f
Author:     Zhenlei Huang <z...@freebsd.org>
AuthorDate: 2025-06-16 14:35:40 +0000
Commit:     Zhenlei Huang <z...@freebsd.org>
CommitDate: 2025-07-07 10:05:10 +0000

    bridge: Remove a redundant assignment of if_type
    
    ether_ifattach() no longer sets if_type to IFT_ETHER and keeps it as is
    since the change [1].
    
    [1] fc74a9f93a5f Stop embedding struct ifnet at the top of driver softcs
    
    No functional change intended.
    
    MFC after:      1 week
    
    (cherry picked from commit a07604e6264b88222941fa61c6f989bad5490765)
---
 sys/net/if_bridge.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 4d4f52263748..035ba0f0806c 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -806,7 +806,6 @@ bridge_clone_create(struct if_clone *ifc, char *name, 
size_t len,
        ether_ifattach(ifp, sc->sc_defaddr.octet);
        /* Now undo some of the damage... */
        ifp->if_baudrate = 0;
-       ifp->if_type = IFT_BRIDGE;
 #ifdef VIMAGE
        ifp->if_reassign = bridge_reassign;
 #endif

Reply via email to