Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762981AbXIZVGx (ORCPT ); Wed, 26 Sep 2007 17:06:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759826AbXIZVGX (ORCPT ); Wed, 26 Sep 2007 17:06:23 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:58750 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762844AbXIZVGV (ORCPT ); Wed, 26 Sep 2007 17:06:21 -0400 Date: Wed, 26 Sep 2007 14:06:08 -0700 From: Stephen Hemminger To: Oleg Verych Cc: "Jan Beulich" , , Subject: Re: why network devices don't do reference counting? (Re: [PATCH] Module use count must be updated as bridges are created/destroyed) Message-ID: <20070926140608.6e6d3d0c@freepuppy.rosehill> In-Reply-To: References: <46FA2C17.76E4.0078.0@novell.com> <20070926083705.6bc65ea5@fujitsu-loaner> Organization: Linux Foundation X-Mailer: Claws Mail 3.0.0 (GTK+ 2.10.14; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1337 Lines: 37 On Wed, 26 Sep 2007 23:06:53 +0200 Oleg Verych wrote: > * Wed, 26 Sep 2007 08:37:05 -0700 > * Organization: Linux Foundation > > > > On Wed, 26 Sep 2007 08:53:27 +0100 > > "Jan Beulich" wrote: > > > >> Otherwise 'modprobe -r' on a module having a dependency on bridge will > >> implicitly unload bridge, bringing down all connectivity that was > >> using bridges. > >> > >> Signed-off-by: Jan Beulich > >> > > > > No, network devices don't do reference counting. > > Could you explain why, please? > > After `udevd` on boot loads lots of unused crap, i surrendered, and use > $(rmmod `lsmod | just first column`). Networing bravely wipes away. OK, > there are lots of configs: udev, hotplug, modprobe, that somebody might > like to fix. But it came to the end with me. I just don't care. So, > please answer :) > ____ For hotplug and other reasons, the network developers decided that being able to remove a network module at any time was a good thing. It works. -- Stephen Hemminger - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/