From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BB19ECE58E for ; Fri, 11 Oct 2019 05:59:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E2B1B214E0 for ; Fri, 11 Oct 2019 05:59:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727033AbfJKF7q (ORCPT ); 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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