Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp501879ybp; Thu, 10 Oct 2019 23:02:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5PnF1fpOGUGcE+kTGk/3GE4nxa/8vrBLX28RxP+QgkbYrkx0Vs+0Em0w2wtqYswxCGU9v X-Received: by 2002:aa7:dd18:: with SMTP id i24mr12119193edv.239.1570773745578; Thu, 10 Oct 2019 23:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570773745; cv=none; d=google.com; s=arc-20160816; b=Tmcfo62uoTVZT9sp1pH1QPJf8E6qr2kA80eBFtr8VAG80cX+xkmNSFr+6t8A5bEF+p bejlf5hIUB/gGs5bsHFv8IN4yUKi3887wxtx+DA4KHwlzYClGKIrstwhCWyfamXFVFC9 sj8kJJP5KDrDKf3eaXvoE5sY0FurSBWj+tSfXNdjWI0XJ/31BdBPBCdV1cJ5kRccNFDi 0k/0NDtfhYQNS05NP1rOdJzDyrNg4139MpTSR95w4ugmg74qELMczC9siv8FYQY+nliL 58VOx0ARyUOMswMLQhFmgP6HT0wJol9tFwaCMR6tVU4vJIHLmY8V/rtJpanXYyDBXnqm 9pEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from; bh=PBH14A6xLj1AxAzgOrFpp/gM1mexvYEwq48I+dzZM4M=; b=rHPk2OsT3HaKg4RbfRjkvGEebFvlkYB7rGpMhhV5jCuUBI8Ze9yuXcCX2l97ADbmkR JpHcfT/+SQ+x+ecpOc7zgPGJYQRhokEr8xycvK9Etpb7gPT2Qq4dzBeHdj0nlDI72pkN /VKzZR14U3EdRBGSsa3jMKnmGn6Rw8neFcOUUkgnipGCmq0Xk/b/30iJv3tBhFNsZ+0a uVkxLnBEEJumouDekwRtfMUgH3WtfXweuYAD9ABLGY6IJgZ61dOhXz1aI5xw0Nw16T1N AFlf9lDzhGNSuaVEXyaWY7Xo/V9/+6Z+jfKoGCNd9ZTeGVtOJeH1M1IdsdK15epL9Y2U Y+/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g29si5127601edb.13.2019.10.10.23.02.02; Thu, 10 Oct 2019 23:02:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726800AbfJKF7q (ORCPT + 99 others); Fri, 11 Oct 2019 01:59:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:39858 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726174AbfJKF7q (ORCPT ); Fri, 11 Oct 2019 01:59:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 64A02AC2C; Fri, 11 Oct 2019 05:59:44 +0000 (UTC) From: Michal Kubecek To: netdev@vger.kernel.org Cc: Jiri Pirko , David Miller , Jakub Kicinski , Andrew Lunn , Florian Fainelli , John Linville , Stephen Hemminger , Johannes Berg , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v7 13/17] ethtool: add standard notification handler Date: Fri, 11 Oct 2019 07:59:41 +0200 Message-ID: <9029806.L7hU43c9um@alaris> Organization: SuSE In-Reply-To: <20191011055619.GC2901@nanopsycho> References: <20191010181743.GF22163@unicorn.suse.cz> <20191011055619.GC2901@nanopsycho> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, 11 October 2019 7:56 Jiri Pirko wrote: > Thu, Oct 10, 2019 at 08:17:43PM CEST, mkubecek@suse.cz wrote: > >On Thu, Oct 10, 2019 at 05:25:59PM +0200, Jiri Pirko wrote: > >> Wed, Oct 09, 2019 at 10:59:40PM CEST, mkubecek@suse.cz wrote: > [...] > > >> >+ > >> >+/* generic notification handler */ > >> >+static void ethnl_std_notify(struct net_device *dev, unsigned int > >> >cmd,>> > >> Better "common" comparing to "standard", I believe. > > > >That's similar to ethnl_std_parse(), the idea is that this is the > >standard handler for notifications which are triggered without > >additional data and the message is the same as reply to corresponding > >"GET" request (which is generated by the standard ethnl_get_doit() > >handler). Notifications for actions and notifications for SET > >commands which cannot be generated this standard way will have to > >use their own (nonstandard) handler. > > So "default"? The "standard" sounds rather weird to me. It isn't any > "standard" :) Yes, "default" sounds fine. Michal