Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3058032imj; Mon, 18 Feb 2019 18:45:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IY3pBDnKHFuzCfAD30KPTpoZsvwVBZcDmd+cjZ4HQsyVIoedwLzbb9K+vnKybEsehTgfNDA X-Received: by 2002:aa7:808a:: with SMTP id v10mr27589300pff.8.1550544343491; Mon, 18 Feb 2019 18:45:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550544343; cv=none; d=google.com; s=arc-20160816; b=OwV0DjiDHtXcCvllvWH27wYInEEPlmR2bQA4mnW95KjwwFH91s509qo8eCg6LwbJfE NkEEPr+t9YHPUv1xxAs2iu0H3R0VC5WUyhGfTXskdnmNNU8fmnknieGcTYtdE89/J1Tr bDkF9v7RpamJZPA9vhtWLZohT/Ee/gpQIcam8ZaXfa68iwROKbQdhq02fknmpHPiMvPg VTdFkm1YaaQGlHQqigp2NvHeamk8zZJcgAS5QFnM7eOWPVyry5QvRzeRu+QlWcFDNYov lTcjJkIFT3bJjoyEh41A4LZ8WqzCatOKhoY8HjrQ+gmpO6JtjQ+oaEcw+FBTvfI+pqil eOdg== 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=VxbytXycNU9uc0b8gBx0ktORNuTfpm6vCkwd92AI3H4=; b=UqFm4yQvgXS+A3kPrUF1j+qU9/zygW1awFzlNaqkVFku5fo+W+gIjRHMjfxnn2NgNs gDQJ79Wm8BJNG+PZglYW23nFjy5vHp9xV9NEMG6C8WUssJCwoZZ85tGzE3CIyOUL9Tav 6D4NZgZqQFjN0kn6bSWHM4P/I06yRKMnkY62i8BGdaopQocYjtYTHcaXJ9nREvEwvnAb 5rjEBFyYp3dbZmdiyDPx4S7ClVVwsdrQSAivAkR6gc2ku4KDkBz8up5Gf04mutMIEcFw Jh5yzcETlz1gh0dY1yVLbmfVyBCcAww4meLGunK1t6+D1jL8MJOzU+YGGgM+nR0JoYDe vC0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=e+8ZoVK5; 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 r75si5170706pfc.136.2019.02.18.18.45.28; Mon, 18 Feb 2019 18:45:43 -0800 (PST) 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=fail header.i=@lunn.ch header.s=20171124 header.b=e+8ZoVK5; 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 S1731529AbfBRXqU (ORCPT + 99 others); Mon, 18 Feb 2019 18:46:20 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:57626 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbfBRXqU (ORCPT ); Mon, 18 Feb 2019 18:46:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=VxbytXycNU9uc0b8gBx0ktORNuTfpm6vCkwd92AI3H4=; b=e+8ZoVK5k61GxdtULZb8OURI27 Z+KtZmBK/xaK+v7r4S9qucYtBODpWN9+P6RTnmvZinIyDkhXzFiqzgWNrX6yqq+znMOVhJA7ZUCDs aPERvx8z07kJVpVDru8+OLhX5Gobw67mwjlN8cyMGQfIWPpcnMnUwHPXflZ5mdwIiiNM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1gvsbw-0004VS-F3; Tue, 19 Feb 2019 00:46:08 +0100 Date: Tue, 19 Feb 2019 00:46:08 +0100 From: Andrew Lunn To: Michal Kubecek Cc: netdev@vger.kernel.org, David Miller , Jakub Kicinski , Jiri Pirko , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH net-next v3 07/21] ethtool: implement EVENT notifications Message-ID: <20190218234608.GI14879@lunn.ch> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 18, 2019 at 07:21:59PM +0100, Michal Kubecek 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. Hi Michal Does ETHA_EVENT_RENAMEDEV actually contain enough information to avoid needing a rtnetlink lookup? If i understand the code correctly, all you have is the new name. You don't know the old name? Having said that, i don't see an easy way to get access to the old name when handling the NETDEV_CHANGENAME. Andrew