Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3263115ybi; Tue, 2 Jul 2019 04:58:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqymHGXOT3fBGFEyM7u8JIFYnEWePW6dwN39ZZNBEpuVz/W9OuCAVSjjFvKdVqpjer0qsN6g X-Received: by 2002:a63:c607:: with SMTP id w7mr30056428pgg.379.1562068709663; Tue, 02 Jul 2019 04:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562068709; cv=none; d=google.com; s=arc-20160816; b=aiIpJYenR1TzpLizYOD+McdrQ0PvsASa6hNeKvKsru6MQ33t8r3QE8eoomHqQNGJr8 NlpkuOM/q1kkeU7X7m0P/W3a3KstC1jPPPT2DPpIQBXLZTS8eva7316oFWtq7yuOrno7 ogoL64RW0uhwTomGAbuAPeocrP15e1os3hS6RJtMMYIzOgcHctbEKhIB9ZB4PkU8cLts wST6I2M7/+OrUvfJRhEO2jPeu2J8izB46kW08g2n3cmNNarjyBCLHw6ytlPLPreQAx/q uXAsZPcMAJ6c11wIB/9emTTecVjDL/AK6aZwaX3w/Oc0H0Ex1z8lkNddWmNk+3iewKQu recg== 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=twoed304bVANHmzTBGu83qACybedl04wF9pEcLlsQ7g=; b=cDFELgOAB4kUHOwZ44Nav+iKKfJqLsfcUbTmWsxfk0SvJzwTeA6Ouo2wBi9p9S86iS kF8uBgbjODGWa5uO1O4VduD3ubSKbskkqeJ/s9gn/PFUubfYS7eWzdt5jaR5dQZ5Z6qy Ir3ocLpe3tSVFMP1Wowu2YoqjmRuMZpn7k43rXzWFKbLmclSMn3VTsa55Lao24WxpVUv 60/QHArIKJv77UtXPTBjB/TiWJ0+R6HJgyUhiaOiuHGlo6LWO7DJKl1ATTe8FkZNDHRp 4ANCev+w0ik12nW5xaDFsmOR5w3+sUKDO+FZBlAGCiwH7oqOY2djV4AcMmOg3ZyxGTq4 MUdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=p5+MgVUg; 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 v38si13118460pgn.341.2019.07.02.04.58.14; Tue, 02 Jul 2019 04:58:29 -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=p5+MgVUg; 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 S1726658AbfGBL5y (ORCPT + 99 others); Tue, 2 Jul 2019 07:57:54 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:38201 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726362AbfGBL5y (ORCPT ); Tue, 2 Jul 2019 07:57:54 -0400 Received: by mail-wr1-f67.google.com with SMTP id p11so6271600wro.5 for ; Tue, 02 Jul 2019 04:57:52 -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=twoed304bVANHmzTBGu83qACybedl04wF9pEcLlsQ7g=; b=p5+MgVUg30QZOEvU3DNgmUA3aC46BhnbMqOeupqqsWTqAXZSMCgbzOB+jammgHIiJe SBoanEe6kV+few/FCFhJv+wqst9rDwGhBbeUIzciEytg9mjufMW+0tBNnYkR+p4e2z57 tnu7X4hXVAJBD0WhvyRUp0o1AQsHAkD5OYlstXyB0waLFkOIQbf/FJTZ7r+WJfR83aGJ R+VSjJugI22/GaEC5k4W7PM5UofS0vjDOqMmRKV2dTa/HOdFJEivTSQhFP7tNYSmUIRh IqxjP0KexxLnKoiUM8NBQnyQcll7Swi8PFRr+AqR5vvBmJStxGkIk7jh+i//oOOrLy8B 8C1g== 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=twoed304bVANHmzTBGu83qACybedl04wF9pEcLlsQ7g=; b=h0PtqOb5JsvKDdDMIm8j0asekpy/YPsot6rbrrrhLDLLaUIvvKZeK9T+LNl7Zp7Lpb Rb8ybmdeYFfYipF95JpoQggKgb28j4d1CT9+FR6TpgYAf1YAehEAsYQouy1cVh1jyw4G 9JV/WcRpjL2H4ZjB1bo9q4vDVFhrr78XuE9RTLgxUVwepagxTk2j83LRLUK8vrs4uYGg WVm4JaqdbdtBiByDrMsXoqJFVAn/64kAcssQOJylE6tjyov/pbR0Mdytg/Vqgl4qbQVZ VdFj1VZG541v+1PQqf+vhH9J4vvIr9Zuwc4H8aQhLckO3edBCF0mc7K2WpJHw7T02sSr WSrg== X-Gm-Message-State: APjAAAUI+JP26kC2QdZdYlGvUVJ8ilNPLHgEwLOSb86GvO5OrQlxr7o7 nsi10QlxH8OHqn1H6wbLKnUu+dCve2A= X-Received: by 2002:a5d:618d:: with SMTP id j13mr23127089wru.195.1562068671649; Tue, 02 Jul 2019 04:57:51 -0700 (PDT) Received: from localhost (ip-213-220-235-213.net.upcbroadband.cz. [213.220.235.213]) by smtp.gmail.com with ESMTPSA id e20sm20148618wrc.9.2019.07.02.04.57.51 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 02 Jul 2019 04:57:51 -0700 (PDT) Date: Tue, 2 Jul 2019 13:57:50 +0200 From: Jiri Pirko To: Michal Kubecek Cc: David Miller , netdev@vger.kernel.org, Jakub Kicinski , Andrew Lunn , Florian Fainelli , John Linville , Stephen Hemminger , 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: <20190702115750.GL2250@nanopsycho> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tue, Jul 02, 2019 at 01:49:44PM CEST, mkubecek@suse.cz 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 Acked-by: Jiri Pirko