Received: with ECARTIS (v1.0.0; list netdev); Tue, 26 Nov 2002 07:34:12 -0800 (PST) Received: from mail.isg.de (rzfoobar.is-asp.com [217.11.194.155]) by oss.sgi.com (8.12.5/8.12.5) with SMTP id gAQFY6uR031603 for ; Tue, 26 Nov 2002 07:34:07 -0800 Received: from barkeeper.isg.de (barkeeper.is-asp.com [192.168.5.46]) by mail.isg.de (Postfix) with ESMTP id 0DAD4CBB030; Tue, 26 Nov 2002 16:36:36 +0100 (CET) Received: from isg.de (localhost.localdomain [127.0.0.1]) by barkeeper.isg.de (8.9.3/8.9.3) with ESMTP id QAA07571; Tue, 26 Nov 2002 16:36:35 +0100 Message-ID: <3DE39503.4A24DCB2@isg.de> Date: Tue, 26 Nov 2002 16:36:35 +0100 From: Stefan Rompf X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.20rc1-sr i686) X-Accept-Language: en MIME-Version: 1.0 To: "David S. Miller" Cc: netdev@oss.sgi.com Subject: Re: Patch resubmission: RFC2863 operstatus for 2.5.49 References: <3DE33D6D.25B9C9B4@isg.de> <20021126.021546.91313706.davem@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-archive-position: 1242 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: srompf@isg.de Precedence: bulk X-list: netdev Hi, > This locking below achieves nothing. Ok, so I was too cautious by locking read access to a one byte structure. I'll change that and read additional documentation on SMP ;-) > Probably something else in > the device struct can be reused. Right now, I don't see which. There are other spinlocks available in the net_device structure, but they are used by the queuing code and we should not give up the semantic that netif_set_operstate() can be called from everywhere. One global spinlock may be acceptable for this special case. > I also don't think this should be conditional, either we want > it or we don't. The conditional stuff is inspired from my first 2.4 version, but I'm happy to remove it. Btw, can you also have a look the 2.4 backport of my link state notification feature (posting available under http://marc.theaimsgroup.com/?l=linux-netdev&m=103722967214290&w=2, just one typo fixed in Configure.help since then). Is this stuff acceptable for 2.4? Cheers, Stefan