aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2021-02-24 15:38:53 +0000
committerKristof Provost <kp@FreeBSD.org>2021-02-25 09:16:25 +0000
commitf5537cd0693c85efdb2180a0a107c51eae15ba39 (patch)
tree0446c34d858b68f15ec2c7397e7992576f66f78d
parentf3245be3499b60e790f59f84ebe24f9cc91dd982 (diff)
downloadsrc-f5537cd0693c85efdb2180a0a107c51eae15ba39.tar.gz
src-f5537cd0693c85efdb2180a0a107c51eae15ba39.zip
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
-rw-r--r--sys/net/bridgestp.c2
1 files changed, 1 insertions, 1 deletions
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)