Received: with ECARTIS (v1.0.0; list netdev); Sun, 17 Oct 2004 06:08:40 -0700 (PDT) Received: from b.mx.projectdream.org (eth0-0.arisu.projectdream.org [194.158.4.191]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id i9HD8Xi4010547 for ; Sun, 17 Oct 2004 06:08:34 -0700 Received: from postel.suug.ch (unknown [195.134.158.23]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by b.mx.projectdream.org (Postfix) with ESMTP id 5733BF; Sun, 17 Oct 2004 15:07:56 +0200 (CEST) Received: by postel.suug.ch (Postfix, from userid 10001) id 557AF1C0E9; Sun, 17 Oct 2004 15:08:38 +0200 (CEST) Date: Sun, 17 Oct 2004 15:08:38 +0200 From: Thomas Graf To: Herbert Xu Cc: pablo@eurodev.net, hadi@cyberus.ca, davem@davemloft.net, netdev@oss.sgi.com Subject: Re: [RFC] Yield in netlink_broadcast when congested Message-ID: <20041017130838.GW21977@postel.suug.ch> References: <20041017110807.GV21977@postel.suug.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-archive-position: 10365 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: tgraf@suug.ch Precedence: bulk X-list: netdev Content-Length: 1143 Lines: 25 > Having 7 listeners in the same process isn't really the killer application > I was looking for :) Agreed, my statement was no offense, I'm totally fine with your path and I think it suits us well. > > Therefore I guess this is fine for now, the problem might appear again > > if someone finally writes the netlink daemon to solve the locking > > problems. > > I don't think I understand what you are referring to. Could you > please elaborte? Although NLM_F_ATOMIC exists it's not a good way to lock certain sets of netlink requests which must be atomic. Currently there is no locking implemented in any application as far as i know, f.e. iproute2 looks up an ifindex and uses it w/o locking so the link could be renamed or removed in between. If we ever implement the ietf netconf protocol we would also require to provide locking functionality. For that reason, the idea of a netlink daemon was mentioned a few times which would act as a gate and implement the required locking in userspace. This daemon could easly lead to multiple listeners in a single process. Nevertheless, I guess we can ignore it for now as it's hypothetical.