From: "Julius Volz" Subject: Re: [PATCH 2/2] IPVS: Add genetlink interface implementation Date: Wed, 16 Jul 2008 15:03:40 +0200 Message-ID: References: <1215616317-11386-1-git-send-email-juliusv@google.com> <4874EABC.4000301@trash.net> <20080710112017.GA26952@google.com> <20080710113649.GS20815@postel.suug.ch> <20080710144131.GU20815@postel.suug.ch> <20080710211630.GW20815@postel.suug.ch> <20080716121524.GZ20815@postel.suug.ch> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1216213422; bh=dEclgXmRgTB09o0T1s57UFtA/II=; h=DomainKey-Signature:Message-ID:Date:From:To:Subject:Cc: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-Disposition:References; b=uiZgP0Se0pyf459iXt23pES4fqgt+Zs5 E6i6vGFgmHwJU/9OH7PVrNygCs6H0K9SPZtF02Smt+W0IU4v8Sh2RA== In-Reply-To: <20080716121524.GZ20815@postel.suug.ch> Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Thomas Graf Cc: Patrick McHardy , netdev@vger.kernel.org, lvs-devel@vger.kernel.org, vbusam@google.com, horms@verge.net.au, davem@davemloft.net On Wed, Jul 16, 2008, Thomas Graf wrote: > * Julius Volz 2008-07-11 01:16 >> If a single operation just means create _or_ update (NLM_F_EXCL, etc. >> flags don't work with genetlink), then ipvsadm would have to query for >> an entry first, which is racy and ugly. So I'd like to keep ADD/EDIT >> in separate commands. But then I need a different response id (or just >> use the ADD id?) for a GET. > > That's fine, both methods a) adding your own NLM_F_ flags to genetlink > and b) using separate commands would be straight forward and easy to > understand. Great. > The key point is that a GET or DUMP request should be answered with > one or more NEW requests. An ADD, SET, or DEL request should be simply > ACKed or aborted with an error message. Optionally it can trigger a > notification message which should be either a NEW or DEL request. Makes sense. > Using SET to explicitely update an object is fine as well. The reason we > are not using it in the context of notifications is that listeners can > appear at any time so the listener may not have been around at the time > the object was created. Hm, I like that option most. So if you think it's ok, I will use NEW = add and SET = edit. Julius -- Google Switzerland GmbH