From owner-cvs-all@FreeBSD.ORG Thu Nov 9 23:03:20 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8223B16A407; Thu, 9 Nov 2006 23:03:20 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 552D643D49; Thu, 9 Nov 2006 23:03:20 +0000 (GMT) (envelope-from thompsa@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kA9MonXR021149; Thu, 9 Nov 2006 22:50:49 GMT (envelope-from thompsa@repoman.freebsd.org) Received: (from thompsa@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kA9MonfC021148; Thu, 9 Nov 2006 22:50:49 GMT (envelope-from thompsa) Message-Id: <200611092250.kA9MonfC021148@repoman.freebsd.org> From: Andrew Thompson Date: Thu, 9 Nov 2006 22:50:49 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/net bridgestp.c bridgestp.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Nov 2006 23:03:20 -0000 thompsa 2006-11-09 22:50:49 UTC FreeBSD src repository Modified files: sys/net bridgestp.c bridgestp.h Log: MFp4 - Each stp port is added sequentially so it was possible for our bridgeid to change every time because the new port has a lower MAC address. Instead just find the lowest MAC address from all Ethernet adapters in the machine as the value only needs to be unique, this stops a lot of churn on the protocol. - Update the states after enabling or disabling a port. - Keep tabs if we have been stopped or started by our parent bridge. - The callout only needs to be drained before destroying the mutex, move it to bstp_detach. Revision Changes Path 1.26 +43 -20 src/sys/net/bridgestp.c 1.6 +1 -0 src/sys/net/bridgestp.h