Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp498412ybp; Thu, 10 Oct 2019 22:58:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2yGHNiOXsYEebqA+13FcQyxGP2G+4F0f73kuSvqw0J5uk6Kud2NkmJEoFSEoZEG7BDYcc X-Received: by 2002:a50:fd16:: with SMTP id i22mr11614495eds.154.1570773536563; Thu, 10 Oct 2019 22:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570773536; cv=none; d=google.com; s=arc-20160816; b=YaS2U9iNyinUkHhl50R+zVcM27EMxFTDE4xZaZl9CPG0URkJbHi8/XzLxsILUty5k+ Cklu8TUe/Vd/4EyCcihRS5VyW/b4EsRhpRXWbc5tSwWgOQSa9r639OONI0s951II8PfL rjonSXVlfUvQ2XXLHTTUrHVQ+pXSKMWxm76YinDs+taznLRVNy1ZVaD4/7uOO7LNOgjt 2YMMy1aru+NeNzj0h4hJLExoLEzMP+qtPUCv1IkET2dBXJAUga6wnh+fgxyUkx92dxXj 7UkmMuB+SffkESH+841ZvthN5GyvKwn/j9XquTYIWDfi9MCqquDm5yjsX2NUVJvRzb1v KFmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mddOv/kniAW1h65FFS1ER017AgO05a4Gs6LK6egWamM=; b=T4kSKznph6hjJL2qaS7jOKmfW3FRj/jDkOXYs4zwxmyWJO9u0uxr3XDN/1G78kdtOA pEVpu5EJDWTxtaxc/y3LnDrLPsWoc/GVrksc5ZsJDxtPQlnQcpbBYhGkmlD03SMfyVt7 DoiXGeounmcnlPV+4A4Al8lajj1Xhs5K3SmfRrKESK1dv0XRBnOH6+vG+gwAPlK2kv/4 O5r8zXtLRxiY2DsT2DDxgvByqzfo4PdXr2pMQa3u3NxFqHmQpAbi5b0AMl4HheM7IbQD wjy/AdcfaX8Qb+3NoBxHiOmRdaj0itUrsyRbnYatyQq07Sqvh/A8pa3GB3QLqzak0yWR dojQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=QS6pxmtW; 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 r8si4304383ejr.33.2019.10.10.22.58.33; Thu, 10 Oct 2019 22:58:56 -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; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=QS6pxmtW; 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 S1727068AbfJKF4X (ORCPT + 99 others); Fri, 11 Oct 2019 01:56:23 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44565 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726891AbfJKF4W (ORCPT ); Fri, 11 Oct 2019 01:56:22 -0400 Received: by mail-wr1-f65.google.com with SMTP id z9so10383395wrl.11 for ; Thu, 10 Oct 2019 22:56:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=mddOv/kniAW1h65FFS1ER017AgO05a4Gs6LK6egWamM=; b=QS6pxmtWmP720XjrWTu2qiOFWZhrlSSkOb8XhEaBgUhLtEYaOTvlE/fp6e27AB1EdI DxQeRjF5QZGWhtC/XZkT3KcSGqy/xtRXAqMZkoFMDODXGf2+v805m3/mOlb+ikO63vMH nTdvYSQUApRvx57FjtmfPMe4OcGg2bOmicea/EDH0l/Odlwp2dTlPxcFuNM720SsH/jd QnaRGzba3cyYfeT1PoYclhU+CjZYDCmTLsYt845kaxK4I2SC+iTKElnFp6Gcqr6lp2Zc +NAQBjWNB5XOU2WRBuOroVci76wqRvtvikXni03vxe2AmTJkTyY9KcpQMxrw7x2lw0Ad tfbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mddOv/kniAW1h65FFS1ER017AgO05a4Gs6LK6egWamM=; b=t26aQo9cIn4az9To/STa23A03NvfIU9AzdOaiVVPg2lhg2dLTfnTWXRGVPYqPI9Gfi w6N8Pt0OE3rqR8CHHwC5LNShX0ACJ4xdSIFz9iB3D8pAdpfhP1RCrAf1LyjAhB5e5KIf tTvLcobIajDn5zVfHRRaf4icbfNCzMaETn4JdxZ/2u5TKv2OxHC+kqGmrzs0E9HEPsnd GX5VqB57cNVz11QA2wJLw00XetKi+NU4YhDVGp/2vKB6U1innndN0xAD3U/N8rLy1KIY 6d8hS9C2PsYXLT7pRYt7LJOUtgnFQIZ9mvT7J22iIbNKZ1MnmLAngHAYKdapyLY/JKZK kpBQ== X-Gm-Message-State: APjAAAUAv4xOQc4sFP+qTu+5KkjYLTWJQGdNV9AAhofXHIdM0f6iD+4o G+MuPRbbPFbljPs+II0YWJ6k8A== X-Received: by 2002:a5d:55ca:: with SMTP id i10mr2880932wrw.12.1570773380351; Thu, 10 Oct 2019 22:56:20 -0700 (PDT) Received: from localhost (jirka.pirko.cz. [84.16.102.26]) by smtp.gmail.com with ESMTPSA id n26sm5815692wmd.42.2019.10.10.22.56.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 22:56:19 -0700 (PDT) Date: Fri, 11 Oct 2019 07:56:19 +0200 From: Jiri Pirko To: Michal Kubecek Cc: netdev@vger.kernel.org, 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 Message-ID: <20191011055619.GC2901@nanopsycho> References: <20191010152559.GA2994@nanopsycho> <20191010181743.GF22163@unicorn.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191010181743.GF22163@unicorn.suse.cz> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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" :)