Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6915871ybp; Wed, 16 Oct 2019 00:34:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyloGjURxp0wIpemGoUW/6OvA7go+mC0WmLA8PCSojIG2UXVdzZjmDGHglrv+E5Am2i2JsF X-Received: by 2002:a50:fd16:: with SMTP id i22mr36918169eds.154.1571211285837; Wed, 16 Oct 2019 00:34:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571211285; cv=none; d=google.com; s=arc-20160816; b=Aqb2Tb1rESt2Nlv7KvYTFTPckUQeJazptrqS812rTcp/erEx2wLLR60QDVPeDdnVvz IW9WLAjvYcOGjs5Fh3+AWYtts71IJU5dPA7QJ5bAqQzq91xPGqm5npe0qAh4lPj6KrPW khBPNyD0Nyjcl7bCGw8KxHMjDP82TXl8yZmvszmtbv6PHOcItfyvv7ExhZb2iKyiwYY+ OfyRFhg9u9DAnTo23i0ltnsc/QfwTICRytcgjf5SeF64XFKxGG6A7PPIYvy118j3qe49 BIaCK3FFzq7tVsWdjIjZ5xWZMkqnfdjNmmn2bF0jHG0GYJjBiqWr7rMG2oVab/N6zAt2 vvXw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=iZRsPQdHp9SLgaak0uCg5zZVvF+bpajXIslG7GktzEQ=; b=Uu2H6suL1tu0L3AdvKPkwtlVrDFzFpo+kl7HRGLWQXHfOeLSM1DmWFacJDAPpjK1GU yNhIfMQU/JxIwlNqkoY7Wyr5lVdSwcbmpFnvw64A9pZCUIVHI6CL8DgcpkdnogM21huw 8wBHK+bbs2IfRXwndG2OyqjyArdGtXlZeRI3hR+tUKznkF+hZkbDnThcgUspwkGuol0g 28y/SN6AXUSnSb2vKA4xxikjGIwNGunpxtuV59BDEjEzTe1C1f5Dt8sXOpiwmXUnnNNp A/Xn+qN25bISRTZr+5EAyCxgXw5lPThPw9LzCyEY2QdNDZT1ke4/t0Yr2idMiByXgkGj KT8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=1zG6Jhap; 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 jo19si14819393ejb.271.2019.10.16.00.34.22; Wed, 16 Oct 2019 00:34:45 -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=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=1zG6Jhap; 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 S2389984AbfJOWkK (ORCPT + 99 others); Tue, 15 Oct 2019 18:40:10 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51263 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733024AbfJOWkJ (ORCPT ); Tue, 15 Oct 2019 18:40:09 -0400 Received: by mail-wm1-f67.google.com with SMTP id 7so732635wme.1 for ; Tue, 15 Oct 2019 15:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=iZRsPQdHp9SLgaak0uCg5zZVvF+bpajXIslG7GktzEQ=; b=1zG6JhapAFrNl9H/G9haIjwOSPhXxIzgd+JP8SxRf8dnolCqxWD1w6CO7HDJsTyypi +A6EfO2IJXDbdIdoYxIX3WO8yav7uD01sSFSZUD2HUCArC6u28MFvlqLS4IgjbGTLoFS O0kqSq6o1QnhEFkfh3asOqJLit5Dq6ibvv06O9x6Lut3VGsWFCT7vANBNOU1XDozmgtE rJWRhQwVKSRSCs1W2UVQrvoFSr0xaGywDweOnuNMkbJ07BLg+1sU37WWQqaMd6AZtSAJ otPBO3uDRRWfdhwm41enVEbzlXHiFNc5PhpDwEAMA/SMlOpClNF/+KO9a61XGhW9oBI6 PP5g== 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:organization:mime-version:content-transfer-encoding; bh=iZRsPQdHp9SLgaak0uCg5zZVvF+bpajXIslG7GktzEQ=; b=RAgdMKMMf4DHuq50BnV+SXkRV3YkTlZ2CMOP4Ucrgf9fvfgXUsuyrn0fVVyCbN3hDn hl/kVRxK4622lqIWzs3rKl6CoR/MsLFUBC6XSHFpoWi30BdTUqPmYrTySbTMXbbESrVw t/896BY5iW8NFkDKG1Sm5nsye01a8BtyszYKAtyy8skk7qjO3Z10PzcJEdJVv4OcH+pN jBU+p+/sBef3NWQljbdPmFyA6zfrtYck+YL/o0dfu3qCoE+6GAHsSO1Pj0p1e3xxCXXQ wKmpSqnERdEbG34dg4w7wuZ1/JoEWKYXPjZKB3wrrkVGYM2M9nkkCLRgLwB/c9Tp9vih n9bw== X-Gm-Message-State: APjAAAWNcSM+MVoCzlh6l4yxsh7pGCiurEBWYYHwf8Mvrntd+GNkkZ0J fUMNtUYPrZ4r9432q6bLN0ddwQ== X-Received: by 2002:a1c:6a0b:: with SMTP id f11mr711493wmc.78.1571179206429; Tue, 15 Oct 2019 15:40:06 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id x5sm41120834wrg.69.2019.10.15.15.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 15:40:06 -0700 (PDT) Date: Tue, 15 Oct 2019 15:39:55 -0700 From: Jakub Kicinski To: Scott Branden Cc: Florian Fainelli , netdev@vger.kernel.org, phil@raspberrypi.org, jonathan@raspberrypi.org, matthias.bgg@kernel.org, linux-rpi-kernel@lists.infradead.org, wahrenst@gmx.net, nsaenzjulienne@suse.de, Doug Berger , "David S. Miller" , bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2] net: bcmgenet: Generate a random MAC if none is valid Message-ID: <20191015153955.2e602903@cakuba.netronome.com> In-Reply-To: References: <20191014212000.27712-1-f.fainelli@gmail.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Oct 2019 15:32:28 -0700, Scott Branden wrote: > > @@ -3482,7 +3476,12 @@ static int bcmgenet_probe(struct platform_device= *pdev) > > =20 > > SET_NETDEV_DEV(dev, &pdev->dev); > > dev_set_drvdata(&pdev->dev, dev); > > - ether_addr_copy(dev->dev_addr, macaddr); > > + if (IS_ERR_OR_NULL(macaddr) || !is_valid_ether_addr(macaddr)) { > > + dev_warn(&pdev->dev, "using random Ethernet MAC\n"); =20 >=20 > I would still consider this warrants a dev_err as you should not be=20 > using the device with a random MAC address assigned to it.=C2=A0 But I'll= =20 > leave it to the "experts" to decide on the print level here. FWIW I'd stick to warn for this message since this is no longer a hard failure.