From owner-cvs-src@FreeBSD.ORG Fri Jun 15 02:53:52 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 26EBE16A41F; Fri, 15 Jun 2007 02:53:52 +0000 (UTC) (envelope-from csjp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 017A513C489; Fri, 15 Jun 2007 02:53:52 +0000 (UTC) (envelope-from csjp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l5F2rpKr089073; Fri, 15 Jun 2007 02:53:51 GMT (envelope-from csjp@repoman.freebsd.org) Received: (from csjp@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l5F2rpBV089069; Fri, 15 Jun 2007 02:53:51 GMT (envelope-from csjp) Message-Id: <200706150253.l5F2rpBV089069@repoman.freebsd.org> From: "Christian S.J. Peron" Date: Fri, 15 Jun 2007 02:53:51 +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 bpf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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, 15 Jun 2007 02:53:52 -0000 csjp 2007-06-15 02:53:51 UTC FreeBSD src repository Modified files: sys/net bpf.c Log: - Conditionally pickup Giant around the network interface ioctl routines if we are running with !mpsafenet - Change un-conditional Giant acquisition around ifpromisc to occur only if we are running with !mpsafenet With these locking bits in place, we can now remove the Giant requirement from BPF, so drop the D_NEEDGIANT device flag. This change removes Giant acquisitions around BPF device handlers (read, write, ioctl etc). MFC after: 1 month Discussed with: rwatson Revision Changes Path 1.177 +4 -3 src/sys/net/bpf.c