Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4500239img; Tue, 26 Mar 2019 10:33:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBik+RTh7EdiZ5IPKUrOCx81EnLoKpSLtBPGQzShFDZqzru3N7NtmPJdIsuzlhOoaxpOrz X-Received: by 2002:a62:ae13:: with SMTP id q19mr30531969pff.152.1553621593391; Tue, 26 Mar 2019 10:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553621593; cv=none; d=google.com; s=arc-20160816; b=qgj+uUoTHKf4pJmgxDYzorLpBLnIAzGDKro9iER9lkMHvHGpSIAE+wGzEGqp0DWcu6 eI8YSlYqhpR3bSZq54oHQJAOE8FsSk6iQI/4qOwX/PjAB42EIQ6t7mSr4HlnuBnDiOit legs27H3AQnDP/6KhJaMT5IFBsZ43xqlpK4Jb6vo8blAynh4R8brz16KhP7Z2St0owv/ mT16zaCbfTPAXTBYu5RJowp7k5pJAqfd6+pMwsK16VsD35IlauPFTwZ14jEtxyKPJOq5 tIMEP7x1pZTwCI/6YAbrgSAXAOeGmLYQmj5Q1KOhZaEaC5lWBILVKxKuyqQctl6fxFMt MCKg== 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; bh=kGg62GuU7XkUlTX0qCeNOW5K6zzPu/Q8olvgUm9ezy4=; b=Vi6yMz9EvoKD2EFF7HbYBCuHLdjy1Le8k8vQkl3w6Ep8ZJfac1+e3BXhPqpSmujm86 DJHWbMFFRVAEJIgzrbVtvgTP0d2ViRWZhgwFbpAXQOHa3m9uXDDNYsixBXnTasFOrzQ2 GJd24L1qiIEuWKG+p6yEWInYchXl3aHtE0Q5kgCaMmsXn5vJj9J55xd3w1EzoBjjh2W7 4P9pY48npuLnwrHjyrTu/bJ847KgVJbfQUWw4QyiOimbEfTyc1ufhmgCf5no7FKorQLj Y6oGZLuu15qf7k+nvCz1PdBg9cSWvReJR+QpdsdKTL8ItydZPrGUefodH5apRv1fYnuQ a5Lg== 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 l39si18015997plb.143.2019.03.26.10.32.58; Tue, 26 Mar 2019 10:33:13 -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 S1731832AbfCZRcU (ORCPT + 99 others); Tue, 26 Mar 2019 13:32:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:51772 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726207AbfCZRcU (ORCPT ); Tue, 26 Mar 2019 13:32:20 -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 DEEA9AF45; Tue, 26 Mar 2019 17:32:18 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 1A71AE1404; Tue, 26 Mar 2019 18:32:15 +0100 (CET) Date: Tue, 26 Mar 2019 18:32:15 +0100 From: Michal Kubecek To: Jiri Pirko Cc: David Miller , netdev@vger.kernel.org, Jakub Kicinski , Andrew Lunn , Florian Fainelli , John Linville , Stephen Hemminger , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v5 05/22] ethtool: introduce ethtool netlink interface Message-ID: <20190326173215.GM26076@unicorn.suse.cz> References: <8795d07d3315b232b4e7ebc7d109c9aa3185e555.1553532199.git.mkubecek@suse.cz> <20190326163640.GD4958@nanopsycho.orion> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190326163640.GD4958@nanopsycho.orion> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 26, 2019 at 05:36:40PM +0100, Jiri Pirko wrote: > Mon, Mar 25, 2019 at 06:08:09PM CET, mkubecek@suse.cz wrote: > >+/* genetlink setup */ > >+ > >+static const struct genl_ops ethtool_genl_ops[] = { > > Please be consistent with prefixes. Either use "ethtool_" or "ethnl_" > for all functions and variables in this code. OK > >+/* module setup */ > >+ > >+static int __init ethnl_init(void) > >+{ > >+ int ret; > >+ > >+ ret = genl_register_family(ðtool_genl_family); > >+ if (WARN(ret < 0, "ethtool: genetlink family registration failed")) > > Why do you need this warning? Please avoid it. I'm confused now... few days ago you replied "+1" to the idea: http://lkml.kernel.org/r/20190321162105.GU2087@nanopsycho I agreed that panic() (which is what e.g. rtnetlink does) would be an overkill but I would be definitely opposed to not having anything in the log at all and just silently going on without the interface (which may result in misconfigured network). I believe that if this fails, it is a sign of something going very wrong inside the kernel so that the "W" taint flag would be appropriate. Michal