git: e7705585fed8 - stable/12 - bridgestp: Ensure we send STP on VLAN interfaces

Kristof Provost kp at FreeBSD.org
Thu Mar 4 09:33:21 UTC 2021


The branch stable/12 has been updated by kp:

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

commit e7705585fed8ef9612388729a4e3247ceed3f038
Author:     Kristof Provost <kp at FreeBSD.org>
AuthorDate: 2021-02-24 15:38:53 +0000
Commit:     Kristof Provost <kp at FreeBSD.org>
CommitDate: 2021-03-04 09:30:26 +0000

    bridgestp: Ensure we send STP on VLAN interfaces
    
    Reviewed by:    donner@
    MFC after:      1 week
    X-MFC-with:     711ed156b94562c3dcb2ee9c1b3f240f960a75d2
    Sponsored by:   Orange Business Services
    Differential Revision:  https://reviews.freebsd.org/D28916
    
    (cherry picked from commit f5537cd0693c85efdb2180a0a107c51eae15ba39)
---
 sys/net/bridgestp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c
index d0259c37bf84..4be8e2f20819 100644
--- a/sys/net/bridgestp.c
+++ b/sys/net/bridgestp.c
@@ -2046,7 +2046,7 @@ bstp_reinit(struct bstp_state *bs)
 	 */
 	IFNET_RLOCK_NOSLEEP();
 	CK_STAILQ_FOREACH(ifp, &V_ifnet, if_link) {
-		if (ifp->if_type != IFT_ETHER)
+		if (ifp->if_type != IFT_ETHER && ifp->if_type != IFT_L2VLAN)
 			continue;	/* Not Ethernet */
 
 		if (ifp->if_bridge != bridgeptr)


More information about the dev-commits-src-all mailing list