git: f5537cd0693c - main - bridgestp: Ensure we send STP on VLAN interfaces

Kristof Provost kp at FreeBSD.org
Thu Feb 25 12:31:18 UTC 2021


The branch main has been updated by kp:

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

commit f5537cd0693c85efdb2180a0a107c51eae15ba39
Author:     Kristof Provost <kp at FreeBSD.org>
AuthorDate: 2021-02-24 15:38:53 +0000
Commit:     Kristof Provost <kp at FreeBSD.org>
CommitDate: 2021-02-25 09:16:25 +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
---
 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 82524440c241..9e3a3e14ecda 100644
--- a/sys/net/bridgestp.c
+++ b/sys/net/bridgestp.c
@@ -2052,7 +2052,7 @@ bstp_reinit(struct bstp_state *bs)
 	 */
 	NET_EPOCH_ENTER(et);
 	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-main mailing list