Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3445210ybi; Tue, 2 Jul 2019 07:56:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBN04S/EITUPkpZImlXdINVdkv3Qed0C+sVQivH0fAjS6H1PweaxUlik+v45Ub3u0aR67g X-Received: by 2002:a17:902:ff09:: with SMTP id f9mr8423215plj.77.1562079360298; Tue, 02 Jul 2019 07:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562079360; cv=none; d=google.com; s=arc-20160816; b=U60Kip77lAz9XATr6gVQBeW/oDr4lqUH/DhdumgQ5TEZaBTuElV2dSygUNUDOQUyX0 aQ/K9LOhZ1ZL2CRpNpN814UIIrtuhS2xthnIWJYG+q1ziIkL7uef/8Ro2dzBRK9YvFbR vnbFgWTjiz387qLQTOJaUjYYHkgfri36jVwEJwmzXaWeNP57PT9D+XjYpJw3neVKzXZs ZhHlIb/kuuT/ri8tJ21z+xNUol5fcEVZeS3ZJxgoSkp/8wbZSQ2o4SwdcNloeQf/ZeBW m2JjAcR8CW/HqOSKT+gt38/yCRdhTJ7f+csYLjv+ydRiYVoBS4m7NnPvhE1OiS2rwGG1 eTQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=8cXSaF+p7DJJ3fZFu8jVrLy+krn1VYp+KO+1g81m2HI=; b=IOsFIa8hlU+sgH07BqWhnzZ/kOo1C5ntfsrbpbWSYIoJvaXrbCgjbEhhY+Hertb/va 1k9hUepySgE6/SC5Xz23mMGzrBKcb1RmLE6+JaxwDPqHG7rdOH6x4eni2ULxdXLQAHJf KqOZyR2izIvj8KS9N8LENCzGycTl7u4VePRcy43HdLkGZhLWqwVdKS5Mg0LNSh6BfJjz ki545/RCdcX4sTWsXZlkI0aSt83zR2V9jZV9rHDdnLdjg9DJEpy/nyeCrsz/8yYxuNgu xThO+vfpJHyKY1vVBnZaJnkxlospP0372yymKJbgnTdZsul1cspxj2gKidok5FmedV4H gwcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=0hh+fBsS; 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 j17si14580926pfn.278.2019.07.02.07.55.42; Tue, 02 Jul 2019 07:56:00 -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=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=0hh+fBsS; 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 S1727066AbfGBOzL (ORCPT + 99 others); Tue, 2 Jul 2019 10:55:11 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39749 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbfGBOzK (ORCPT ); Tue, 2 Jul 2019 10:55:10 -0400 Received: by mail-pf1-f193.google.com with SMTP id j2so8365702pfe.6 for ; Tue, 02 Jul 2019 07:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8cXSaF+p7DJJ3fZFu8jVrLy+krn1VYp+KO+1g81m2HI=; b=0hh+fBsSTKqONYkY5IWchEOsM9q4yZxRMIwfIJXepa2yZShqwzk4b9L2oD1S+tQWBa H/eA4zSEPm9dikIiJ4zysqbuldx53abH6jiU6OXP/0Uz13Gqh97HR/1Es6aEpqoK6xA5 7mGYFiidHQU8PmzXdjRlghY8YEVMcG7Zg/zr02qORI8P8b2YhF5fEBDY0BHZEPKfhzoG TCH0LyHiEfgNeTF8zy1rjnDIBVX+30WGIEmZj0g3YxzdA/9uhPN79OGDL6rn2uPEoCK7 4ayfRzbB7RsrAFN9E4S477frVwrU1utp5vd/zV860EMBOlNMFQVT0UbT9Rkvpo5IjZg8 s6cw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=8cXSaF+p7DJJ3fZFu8jVrLy+krn1VYp+KO+1g81m2HI=; b=l1cf8JbsM3x66mLFXvU7hxXaK7GFYwyvJ9VvTqWg5yKgVIfKoxXYEnH7QE6bZnxytZ I1XNoBwScFM/YtzuvxlHsNTS11c5WOPo20NtiB9zJEhZCqB9xSkGTqn3sPnzpLkw8n+D q2/mbI0+NM0mUHGbb2+HZcL18Ps1lxURfVChBoSv4K6yogjfO4bmmkHpoODWuB0TW1jC XwWwnYNEUQ16vcVoQWWGc6wX20/tM71ucsT41+T5riGI7XzxdMHsxoGDkQI/Jc4s7M56 MSFzZ91T2A6XlS96W1QErcW6lTF6NGEq2CGBX4JLFWh/LmP1m6l0pPU/RAZDMX2Lh25i ifbA== X-Gm-Message-State: APjAAAW7+5T800Z5IyBmE0v/z0cxdNLRsNqo0zYH6Jn/jMIOnNcLGSca ycMK8WfYkZncoP2AmqX6fp16yhY9Lgw= X-Received: by 2002:a17:90a:d997:: with SMTP id d23mr5819114pjv.84.1562079309742; Tue, 02 Jul 2019 07:55:09 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 10sm19371297pfb.30.2019.07.02.07.55.09 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 02 Jul 2019 07:55:09 -0700 (PDT) Date: Tue, 2 Jul 2019 07:55:00 -0700 From: Stephen Hemminger To: Michal Kubecek Cc: David Miller , netdev@vger.kernel.org, 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: <20190702075500.1b9845e1@hermes.lan> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Acked-by: Stephen Hemminger