From owner-cvs-src@FreeBSD.ORG Fri Sep 5 13:59:00 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C47D916A4BF; Fri, 5 Sep 2003 13:59:00 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49F1443FBD; Fri, 5 Sep 2003 13:59:00 -0700 (PDT) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h85Kx00U060068; Fri, 5 Sep 2003 13:59:00 -0700 (PDT) (envelope-from sam@repoman.freebsd.org) Received: (from sam@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h85KwxfE060067; Fri, 5 Sep 2003 13:58:59 -0700 (PDT) Message-Id: <200309052058.h85KwxfE060067@repoman.freebsd.org> From: Sam Leffler Date: Fri, 5 Sep 2003 13:58:59 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/net if_vlan.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2003 20:59:01 -0000 sam 2003/09/05 13:58:59 PDT FreeBSD src repository Modified files: sys/net if_vlan.c Log: Add locking. We use a single lock to guard the global vlan list and also to protect the vlan state in each ifnet (e.g. vlan count). The latter is probably better handled through an ifnet-centric means but since changes are infrequent shouldn't matter for now. Sponsored by: FreeBSD Foundation Revision Changes Path 1.52 +47 -17 src/sys/net/if_vlan.c