Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4123305img; Tue, 26 Mar 2019 03:32:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzf3uddORbtzR5n2rACNoezke0u58DkJ9tcKjCvlEUvXc8GHojwtk+KiDMjdra1FJZ7Vhet X-Received: by 2002:a62:2bc8:: with SMTP id r191mr542135pfr.102.1553596340862; Tue, 26 Mar 2019 03:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553596340; cv=none; d=google.com; s=arc-20160816; b=W/5fF3UQBVwGdRkVkmAtOU+M8L0h4s76CmoKGT+TVb9dbjUybZN8g92yO3SZf2bUyK UIppqadlnI7DdDh+2ImlglO8iVs31NYqnaPPDp9RYWHNkLrli+S+ILEA3R1dkce/YYxs 2JWBeSqFlfeUcEhC0v3qAqe4qEZuIV0GxQMQJTVDo2EMz32k7c1735mjyY/equ7181MB Y1p4ZpR9KykbP5VPhjDkate4bF9ENQdlcVSVLXcQbsAStQOe5mAY032i2LQ2ASYR8VmN stDU5NNf+UG3L4/DiyNwHVEmwN0YiTwLC8AFsZKFmv4hFe+lQKQ1EVQVcqm+4Fd6kFJD H7Xg== 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=yjf3scDsF5h8mlgSGB6aoLwY5Cp1kfxqes4MyGbDEWU=; b=XDtqgFvH5fL+pG5UPu9c3yFtxmYtzg9mMk2jBV90UjlT+dX72nwVK+hpBaoRF4UCjZ sJ2t+OjgYeKcx5AO/NbwvisgRbA7mFMC466w7zII1BiqdKamrGB3apKopQVnoOuT/kKh CYStxTijOimNB9wMh9ZSFSinNcJCUAUl2QFZlXQnMFgNGmGgWq4GYCa4E7SqLd7OWPLb sv5mpClXreEnzVTqZ4eyum/8YxSpaJ8+9wLDn7dMzp9Hj9RbwsRM2LURf6zmgSrSZDL4 +/8JgLZiUqlk5Uohy1wfhj+0eeL8dui+Pa8EkTcVoHTusjlxvRDG0LkAqvngqUPyIpDe DAEg== 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 12si12387002pgu.111.2019.03.26.03.32.05; Tue, 26 Mar 2019 03:32:20 -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 S1730804AbfCZKbX (ORCPT + 99 others); Tue, 26 Mar 2019 06:31:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:53678 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726111AbfCZKbW (ORCPT ); Tue, 26 Mar 2019 06:31:22 -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 93773ADE7; Tue, 26 Mar 2019 10:31:21 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 52EE5E1404; Tue, 26 Mar 2019 11:31:15 +0100 (CET) Date: Tue, 26 Mar 2019 11:31:15 +0100 From: Michal Kubecek To: Jiri Pirko 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 01/22] rtnetlink: provide permanent hardware address in RTM_NEWLINK Message-ID: <20190326103115.GI26076@unicorn.suse.cz> References: <16ffb1fbfa8f54de587ac52f4ff95e5034c590b4.1553532199.git.mkubecek@suse.cz> <20190326100836.GA2230@nanopsycho> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190326100836.GA2230@nanopsycho> 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, Mar 26, 2019 at 11:08:36AM +0100, Jiri Pirko wrote: > > I don't think we should put permaddr if driver did not set it. 2 > solutions: > 1) provide a helper that driver will use to set the perm_addr. This > helper sets a "valid bit". Then you only put IFLA_PERM_ADDRESS > in case the "valid bit" is set. > 2) Assuming that no driver would set permaddr to all zeroes, > don't put IFLA_PERM_ADDRESS in case permadd is all zeroes. I already replied to similar suggestion in v4 discussion: http://patchwork.ozlabs.org/patch/1060164/#2117512 But I don't have really strong opinion about this. The problem with not being able to distinguish between "no/unknown permanent address" and "old kernel not providing the information" is going to become less important over time. Michal