Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4184848img; Tue, 26 Mar 2019 04:51:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTr5hE+jxfUTRyWBxEaKWVpdYt9l4FiHtKz2WDBH4+liHvJc8uv0dAxuT+udNfFx5+dE6H X-Received: by 2002:a17:902:248:: with SMTP id 66mr31440429plc.286.1553601084287; Tue, 26 Mar 2019 04:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553601084; cv=none; d=google.com; s=arc-20160816; b=fZhQZawp6zFVZqNzeNv6GauRIrVuzlmNY9c7sp8em7UvCSctc3NvbMOExOymxqNEO/ YOZl/BEvmv/OkrPy91PF26jW7WMjMe2zXmAP7eiGKzfWdKF4ints4K1TXiCf4EVbXjxf TwrTretOl1D5h8AqoCJw9bO8LwhPUbnNzRsskyksB/rNimQwDGXcodgU4xpH533CtJBp 99TCmn3+0JTRsFnvy9Vqt3N4XJ1wS28YENHykBfIKd911tTj3itGUB0C4GjSANOnL6uK qJaxpTiBtogDYIU6Cv3RBghWGahobGzwxTRd+J35xW4K1mM7F+T6HZjWEN46tuX/9vqb CauQ== 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=Fa2xvDyBWPKh1AMvGuNxT7XAM2KGvKq3flijrnW9m+M=; b=vRhE+EN84MfzH0ddIIJFelO76qYi1VML5x9ZLK1d2AhnI2li++F8h/xyV9JJE0npMx /bYkGTjRfKiPe+UNQ/XOgQi9xAi7dDM1d48vzMFJiZcpZC0Z4PnVN//HXVlBslxMqrzC VxmyQp2Qi42/8eP2/72wl6J2S4QJfwU7rNzw2qHICXvGbwm4lUJ70l9M0grPhZeQ/C43 CEn/X9H81RyTavQUVi2FE9wJQhs+IPbT011iwnIYOUfoXnARlYDhIlMonNYt0/VhPFMz 5bc3iDSrGUVkB5G8WOmIKJSXrl9vXLkYj1r6lS+GoVq5BoX/CT/vhRDgUOstxcM9nyKe PhRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=dMnvRTnZ; 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 f22si15560287pfd.79.2019.03.26.04.51.08; Tue, 26 Mar 2019 04:51:24 -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=dMnvRTnZ; 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 S1731451AbfCZLsz (ORCPT + 99 others); Tue, 26 Mar 2019 07:48:55 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36495 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbfCZLsz (ORCPT ); Tue, 26 Mar 2019 07:48:55 -0400 Received: by mail-wm1-f65.google.com with SMTP id h18so12576455wml.1 for ; Tue, 26 Mar 2019 04:48:54 -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=Fa2xvDyBWPKh1AMvGuNxT7XAM2KGvKq3flijrnW9m+M=; b=dMnvRTnZ10nw9pxJmvvzNPMcAp0Lyt8z9wnS+MD1YUjzwVlFJo7SdeNicuN0tggadj eOtVNLSgtGhi75+H7vs1viBFnY1bItVW9WlKvY18m87/f6O+zJUoqH1aCI79aJMFYCJ+ r55nEk0sWOFCl8Lwza3+Yw8eJqNfVsw8Fu7SoXyRXqgeu06G5xPvGG8QZl/ieDgWuX/2 /vA5a8Xc290YtCuz+ko7uAQgF5WUGTlKzyutIAT6iXtHm9IpZ3hKL9lWS7ATvgMPKdSU 8ztAT68oXX+IwLSnx43riawPAmzj8w4NwlOrnKTqUXHv/lD91HgVd38ZJnyIqyXLs2Am zBgA== 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=Fa2xvDyBWPKh1AMvGuNxT7XAM2KGvKq3flijrnW9m+M=; b=IL1u7kZcLuP/qm/LDryW5x48jvvdacH1O6vuEfJcuUtSkTx52MutyBX6xPm/mNDhA7 7wu7ww/gZ6kV4MVu6Ns3tWSkueiKuqFDQMHp3OspU0ldw1ZooeK5KusDmXcvtUOMnq1Y cJQkA7qkeyyXT8w1pNVzKc8zg6wIKUyczBsOsHSBmTczI1KHayiLQXrAzwUYdpsJSfdC Xf8spz0jDPewyld55Qv2+TY7OlKWU7s2aNVsUQNZ6P9Jk0SmnejQKM4kRbUklJnGK4ak Bu+VH/hnMe56QnbFHn44qivYXvySzg3pkFULCnBnRqCCAoOf8HDQGea3rL1d13edp89v EuTw== X-Gm-Message-State: APjAAAX2mYoSyTIPaDZqJqH20dAOcGSFVfWy7juNUgo42sOkWJJTV782 CWR3Wis+Tn+S0rtSCkrt+tAd4Q== X-Received: by 2002:a05:600c:2309:: with SMTP id 9mr15288275wmo.52.1553600933629; Tue, 26 Mar 2019 04:48:53 -0700 (PDT) Received: from localhost (mail.chocen-mesto.cz. [85.163.43.2]) by smtp.gmail.com with ESMTPSA id v16sm19884003wro.48.2019.03.26.04.48.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Mar 2019 04:48:53 -0700 (PDT) Date: Tue, 26 Mar 2019 12:38:05 +0100 From: Jiri Pirko To: Michal Kubecek 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: <20190326113805.GE2230@nanopsycho> References: <16ffb1fbfa8f54de587ac52f4ff95e5034c590b4.1553532199.git.mkubecek@suse.cz> <20190326100836.GA2230@nanopsycho> <20190326103115.GI26076@unicorn.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190326103115.GI26076@unicorn.suse.cz> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tue, Mar 26, 2019 at 11:31:15AM CET, mkubecek@suse.cz wrote: >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. If the attribute is sent to userspace, it should mean the permaddr is there and valid. > >Michal