Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp967964ybi; Wed, 3 Jul 2019 07:20:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWtypubCD58CcbDhf2aEFfH/RGJy7ulwG1XtgWk5q12QDmptyui9AKFF16hMVqsIRvcvrr X-Received: by 2002:a63:4c14:: with SMTP id z20mr37129331pga.360.1562163648568; Wed, 03 Jul 2019 07:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562163648; cv=none; d=google.com; s=arc-20160816; b=rxRGTFq+RLESHjiIzIIAzuVMyeAwTamLIDAFzTY0jRLanJS3//uvROfIfPQuGzLTyJ QHUw4/4kf2eXOn1PDbZ3B503Jlv4jBxvIYluTD9GzVuACLlM5xOb2Gn8e6HPIUaAgEnD jSuHCWRaTI4ZVRTxYc8r9qBL8Kz+xmbaz/rCyOR89feiJd+qCkr+KloYIEKgc4rrAvY8 P7XDyeeFjhRkfqEs7iIvzdlYMLiOMOln2uePgqAirjTkBKR4FghDx9984O9Q2sfe8lul Js9fp8ICpEmAS0ibDPP9nzfo6v0XVDijGWi/OOyDM0YxT5ftn5tOapHdW0n2hZK3kfUy /DBA== 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=bqj0CvHZzsRmsvJKGJ1sbGfXxAQo7NCxM6t4uBmuQoM=; b=LUgMd30iIZ9pcuEOMOpk87dzUN8mpkxc0muYriFrq/LK7GMdHmwHP+2xed/mEj7hVU qAb0LrK0/YDIqrzxD5/a6DzMn+tjhPXFoEz/TJedboDATpUKr6AeO9XDAzJegsmv+GnU 2L+fn5bJePydeX/YeOBHX3vrNzq5KKYUkk7iUIwNQp/GzIj4xDPXgFjrZn7LT/ReJPWk MUBGOUGPiyYxhERUgk/GPbqEWd0rO/ajMqBXFMiZdLIb4zLwc4aHZjHA/voZOFa5af5a ESgPHd9YuFk/Ms221BAVkO4bd7CELMp9/H+d/vKsboSqT3Aonb/6VC3lcUyAKy5tezNT B8uQ== 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 z193si2476146pgd.235.2019.07.03.07.20.32; Wed, 03 Jul 2019 07:20:48 -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 S1727076AbfGCOSs (ORCPT + 99 others); Wed, 3 Jul 2019 10:18:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:41582 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726473AbfGCOSs (ORCPT ); Wed, 3 Jul 2019 10:18:48 -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 C2AA1AEBB; Wed, 3 Jul 2019 14:18:46 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 7126AE0159; Wed, 3 Jul 2019 16:18:46 +0200 (CEST) Date: Wed, 3 Jul 2019 16:18:46 +0200 From: Michal Kubecek To: netdev@vger.kernel.org Cc: Johannes Berg , David Miller , Jakub Kicinski , Jiri Pirko , Andrew Lunn , Florian Fainelli , John Linville , Stephen Hemminger , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v6 07/15] ethtool: support for netlink notifications Message-ID: <20190703141846.GM20101@unicorn.suse.cz> References: <4dcac81783de8686edefa262a1db75f9e961b123.1562067622.git.mkubecek@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Jul 03, 2019 at 03:39:54PM +0200, Johannes Berg wrote: > On Tue, 2019-07-02 at 13:50 +0200, Michal Kubecek wrote: > > > > +static bool ethnl_ok __read_mostly; > > Not sure it makes a big difference, but it could probably be > __ro_after_init instead? Yes, that's more fitting; the flag is initialized to false, changes to true once ethtool netlink is ready and never changes back. I wasn't aware of __ro_after_init annotation. Michal