Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5298833img; Wed, 27 Mar 2019 06:06:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSNo4D1y6k37m6mi95qqLP2vrIZ5NMmUWzL5LldcJ+BRPy9BYtkdrNYF3gA4L5xUnTs4Ea X-Received: by 2002:a63:ff5a:: with SMTP id s26mr32001219pgk.96.1553691967456; Wed, 27 Mar 2019 06:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553691967; cv=none; d=google.com; s=arc-20160816; b=l3sc4s9fzXqXZUavF2PnDk5YHrFBAKqXDM4ofGP9bgGOyrWvnXQMm/xgrW2vY1j/m1 n8hzpdhCvdHJBk4sFSszPl9w/m820P0NqsUciLtCVJZIUMtvl1PTC+Oe/wmFwC4UKkQ7 yzNb/1tDpWjRikqYLQM+yeu8yIhvKiLVIsfo9jJdeIZWeRQHgEbqNgkmD1B6XJc/LObT YuReE0kjsGuvIJZt5+9BxPjc8WgfueE8fx4vYbrW8xZtWRRTdT9QyspHQOzM03YiTvLd U1Nb49WUbTtR/UMBQYe1qekjp2GAZil3ABTpsGiwc5iUzirf6fvv9Zv3qxk1B4DD647u fIzw== 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=crf1Iecu3EOEPIAilP0B17w6/ntCR3m+XRl1tzv0Lek=; b=MXZ2n9kBpxoXXQpB8yGwGTx5xlutb4BcDKvkNq6QVIO5hc5ZIfd1HQwZkktQkY0El1 mWFG7DSEpjK73TGzsU1AbxA2264uocdLZgPIb7XnL6c08A7F+m0xHR4miNbhrtaS8WL7 /+KENx379zUB3M44j89ZzykcvAS5mFcMA1IwX9vMictb883LqC3ceol2WdzsOIcXhwAm 2xMkFdeBpcGJ8JXdv8SlWLCtRWiZ4Spj29XpwJ1GBcAPvv3zDOEx2C/0dBu3Lx00G8X5 ZukeL+0ZW+GI7aNpDk/J6Su7aVYxMTCUKhs5RuBx5M+tvLuvxQyPxXsMP30XzxnZw76r sZ1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=bkH0m9SD; 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 q8si5831059pgp.480.2019.03.27.06.05.51; Wed, 27 Mar 2019 06:06:07 -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=bkH0m9SD; 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 S1732165AbfC0NEc (ORCPT + 99 others); Wed, 27 Mar 2019 09:04:32 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39118 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbfC0NEb (ORCPT ); Wed, 27 Mar 2019 09:04:31 -0400 Received: by mail-wr1-f65.google.com with SMTP id j9so18473938wrn.6 for ; Wed, 27 Mar 2019 06:04:30 -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=crf1Iecu3EOEPIAilP0B17w6/ntCR3m+XRl1tzv0Lek=; b=bkH0m9SDwm9Uw2UujNsQbl7tcQUwj2HqYbF1eHksp8PReaG/yRIvJojVadxen3wxEW 1jq44Ud9sZvKizEvcRg5EIIFSWNFRAoQ99TIidDZ/1l4SiJj+NOGb6WM4EV/OwKPxDtf F9Zbz522SaeBqPPammzpkeTLUbhEKp/Em/KcZAkA4TBZ8OsaxOoq+MTW0oaKjqiNzCIf wt3mPJkOwfaFsjoosoaKNj2G8VNRRJlBkurI+fMh7ANGixWs3TnQBkk+aLcO2rJ2/NXR iJu1mBxHRhsvLVnfzcB204pSEWqmlB/eNkWjj2N+50erchBZDZTzrvC48MltXEYnSvK2 KhLA== 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=crf1Iecu3EOEPIAilP0B17w6/ntCR3m+XRl1tzv0Lek=; b=KmxSbAFCi9bLYc+xtGSL6LIIPdDwP4FzTEZLLyPEsjBaRZbAfXrSM0E5PqLJJHnUp7 1zXW5vap5tCjEyueoj8o48btvFc6iS4c4cuBMJU6CsQyzVLlVC9uPwBDPyMQAxDTeYMX KSRoFN6EWjzHuzsNCEDNvCECQv52enymMeAHfDJOLIGIykt8LrDZr29kbm4QmAp2pLJu TRYADKcerVWc2yFQwedvisfAsKmZ/HjQzqCi/BdBQlOD2YcgtHWyrYI5TPrpyIMgkEGz Z2GdyNF555knTkTdX+jPFjiNjeDz9QOEMNkaH6nFb7FeY3QBzust1g/UfZSg4h/kVm42 cemQ== X-Gm-Message-State: APjAAAXHBr0mUOSFVodugmUaDZrb8zZiJTyPHFEvHRuOoh2AUlMFK2+w rLaSSGZgXzjfX1YAx9VvVvbXGQ== X-Received: by 2002:a5d:6b4a:: with SMTP id x10mr22874279wrw.63.1553691869937; Wed, 27 Mar 2019 06:04:29 -0700 (PDT) Received: from localhost (ip-94-113-223-73.net.upcbroadband.cz. [94.113.223.73]) by smtp.gmail.com with ESMTPSA id a22sm1752102wmj.44.2019.03.27.06.04.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Mar 2019 06:04:29 -0700 (PDT) Date: Wed, 27 Mar 2019 14:04:28 +0100 From: Jiri Pirko To: Michal Kubecek 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 09/22] ethtool: implement EVENT notifications Message-ID: <20190327130428.GB14297@nanopsycho> References: <971a93b567c81103716902cd1ad00946201f9710.1553532199.git.mkubecek@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <971a93b567c81103716902cd1ad00946201f9710.1553532199.git.mkubecek@suse.cz> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mon, Mar 25, 2019 at 06:08:21PM CET, mkubecek@suse.cz wrote: >Three types of netlink notifications are introduced: > > - ETHA_EVENT_NEWDEV to notify about newly registered network devices > - ETHA_EVENT_DELDEV to notify about unregistered network devices > - ETHA_EVENT_RENAMEDEV to notify about renamed network device > >The notifications are triggered by NETDEV_REGISTER, NETDEV_UNREGISTER and >NETDEV_CHANGENAME notifiers. > >These notifications are intended for applications and daemons monitoring >ethtool events to allow updating the list of existing devices without >having to open another socket for rtnetlink. Wait. You duplicate events that are already going out through RTNETLINK. App should open RTNETLINK in order to get those. Other apps are doing that too. I don't think that duplications like this are desirable :/