Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3555510ybi; Tue, 2 Jul 2019 09:36:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcvAHjoXZMLnL9PiTRFtJC/A8D81fCMHqec2WnZEzOMpJu1REwoNia+Yw6vrCgFCAreN5K X-Received: by 2002:a17:90a:a407:: with SMTP id y7mr6576234pjp.97.1562085402293; Tue, 02 Jul 2019 09:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562085402; cv=none; d=google.com; s=arc-20160816; b=paXWR+hfSPE0cX2ZtS2K5jfBaE95ipAORKqLZWjQ09L+NHhsMa5YMJrhhpfWkRIVHt 7G9LkVe/qW1ETH0WoGjIzM6IlcAViFp7MUZosThrncEw9S+qYTe2gCrNAcNwc9Ydo9LC tBO1NyBfNaZ2Nm+c3qLKwl4tKXdSAsJmPpvH36tCD+ej4O6lTzI1UY1ahTXdA48VHxPA HasyqP0kaaY9NgU/7Xaee15N4DnKuwa4dOrsb0P6ZBKcUJrVy3BbF2m7WRA0MHID9r5z PgZt4dFpiqV5GiX8HDwmeRfVID0LSfnKAHff4STTnLSieRV0u+Nu9GjQT6fMqRD9JMWt l4RA== 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=rzY7AqzDpJVPhVPBnQ+u1LOQHXHNqgTdQnvS0IiBPt8=; b=BfMKOPjUtW1jCKbrZErRYqUfliIOau0tTJ0vyMYlfpQoovMjOQkUduf81WeQjFWj6H jw2ujZJ0SY00VKOY0Xc2PnWbU7Vye4G91jL1ieTE8XKOSptfq9bg4x0cg0/NGepxTyqj f6E2S9UadfRKexZa9t3y+08VwwUFoQnm6IxQCl/sqp4BJ2Rw5Kq3ceklOfKcrsxJkf+4 x6Z3Av0+hJIx1b1QojlNxepe9z7NBlayU4t/D7uxiqqJMIpLXiJIwV1kU8Hyl2eFDdek b+6+C5IUt8jkvXspKHLB1TXXjDesBFeF4u+NJNsVgLzK/ll2MuPrIhohccjxHJTJn/jy ZJqQ== 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 v23si3998311pgn.557.2019.07.02.09.36.26; Tue, 02 Jul 2019 09:36:42 -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 S1726780AbfGBQf7 (ORCPT + 99 others); Tue, 2 Jul 2019 12:35:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:51448 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726046AbfGBQf6 (ORCPT ); Tue, 2 Jul 2019 12:35:58 -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 7AC55B9B1; Tue, 2 Jul 2019 16:35:57 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 2B879E0159; Tue, 2 Jul 2019 18:35:57 +0200 (CEST) Date: Tue, 2 Jul 2019 18:35:57 +0200 From: Michal Kubecek To: netdev@vger.kernel.org Cc: Stephen Hemminger , David Miller , Jakub Kicinski , Jiri Pirko , Andrew Lunn , Florian Fainelli , John Linville , Johannes Berg , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v6 01/15] rtnetlink: provide permanent hardware address in RTM_NEWLINK Message-ID: <20190702163557.GF20101@unicorn.suse.cz> References: <20190702075500.1b9845e1@hermes.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190702075500.1b9845e1@hermes.lan> 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, Jul 02, 2019 at 07:55:00AM -0700, Stephen Hemminger wrote: > On Tue, 2 Jul 2019 13:49:44 +0200 (CEST) > Michal Kubecek wrote: > > > Permanent hardware address of a network device was traditionally provided > > via ethtool ioctl interface but as Jiri Pirko pointed out in a review of > > ethtool netlink interface, rtnetlink is much more suitable for it so let's > > add it to the RTM_NEWLINK message. > > > > Add IFLA_PERM_ADDRESS attribute to RTM_NEWLINK messages unless the > > permanent address is all zeros (i.e. device driver did not fill it). As > > permanent address is not modifiable, reject userspace requests containing > > IFLA_PERM_ADDRESS attribute. > > > > Note: we already provide permanent hardware address for bond slaves; > > unfortunately we cannot drop that attribute for backward compatibility > > reasons. > > > > v5 -> v6: only add the attribute if permanent address is not zero > > > > Signed-off-by: Michal Kubecek > > Do you want to make an iproute patch to display this? Yes, I'm going to submit it once this patch gets into net-next. Michal > Acked-by: Stephen Hemminger