Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4076rwb; Wed, 14 Dec 2022 13:06:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ZP4zB2kLrwCmduxA8kvlNHAp38FqIefV/o7dDB+NnoIsP78Vqq1/JRAnSYk51lxJbDdPL X-Received: by 2002:a17:903:120b:b0:188:eec0:f1e with SMTP id l11-20020a170903120b00b00188eec00f1emr35803737plh.63.1671052004958; Wed, 14 Dec 2022 13:06:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671052004; cv=none; d=google.com; s=arc-20160816; b=w6yEVHjCE2CD0qqJMt0fQ8DeLmC3azjB3+mGs0jPatiWySHIfRxMj6F7hpoF5aGwgs GlAi+uukda65Wsq5w4K4qU0pqMvKVien2+KhfagXJyFiZhVQvbl4qFt8gEFvwLWJn5gi oNMQs1kZVR2AmLrIk4SEYG2KLB8smAWoOAzOQwb5MnUQ+vAGiglHJDwl/WNFi27YrCHp LKGs5PxTrrZwr2L0mWnk3r9n9DkeafBc15m7GGOjhYSkv/BN5C8BxxaywS3zEVqwy2tE Wju+H1/whGFJnno/oR8VqpSZuszzR3WkJFrLen09yf7nKzOQ+WJoFR1DMZWaarwNMEKI PQcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=OxQwfKlKAJRz20eWjl4cJookEP2mTTI+vH6Z/sTtAJ8=; b=fz0rCA1gOAfN73Ar+Z9hdAdwN3cF/M/BL+1ixSp8+7N5s5bVuDYmWbvnr2KtKka0Ag Zb7DJ2MmacJFeT/QaEv+q57Bm7RX+TYtbv8VY2Jz37BoiX0vNdpal6zf0IhPK5tjupWG PcfOUbhu/RNY0ykB9R+lBmv558Dk4kUAM828s0V+wUDGWC++3JfufMzSx39QxV4DusHc uRTaTGnlXELIVdF51yrfcJgRHwTjLnej7W47KDY8tTr/hJV5Ft5/asgmcMH/IhylS+CI mL3b54izppKS5duAu06qErL5akGWAT1z48exCwIlo0ww7LITfFXTtTsOcn9n883E6moR vtUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gbGMPzTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a170902e21100b00189aee21a03si3412785plb.423.2022.12.14.13.06.24; Wed, 14 Dec 2022 13:06:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gbGMPzTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbiLNUuW (ORCPT + 69 others); Wed, 14 Dec 2022 15:50:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiLNUuV (ORCPT ); Wed, 14 Dec 2022 15:50:21 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AFE31C132; Wed, 14 Dec 2022 12:50:20 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CCF9FB81975; Wed, 14 Dec 2022 20:50:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D48BC433D2; Wed, 14 Dec 2022 20:50:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671051017; bh=DLBa9y167FwzHAQQvHNMlQc3hIkNZJrjzeznR28yPkQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gbGMPzTv1j2uf9ceDwUTTbW3sVOSvhElSNYPhP/PG0Tktr4Izt39lmVsCKCsiZVTC iYMtNLLawQHUapvmFxTx2q1mnTIwBhXGcz62YzPJ6DQgKjY7RIQ6bNrkQh6WYp5rGO 21Ohcclyi5qvDd7oNNLjdb8+0kZvNlC5alsaE6N9GY3O4lZd8SjUB2RsO6avCGxnSH AKNHgyUN0MtApTGEKsIWT1Yqunbq+NSFaJ5kpUNqHTHTirWFksxV+VSLqd/VIaKlsx TfzAdFjRu7XuysyNbB+B4aqBQ3+Cl/+7OyHyEOI6/fgVDRVAlb1fLvaCv2cZPlSZGp NK4Gsgu8fe/uw== Date: Wed, 14 Dec 2022 12:50:16 -0800 From: Jakub Kicinski To: Leon Romanovsky Cc: Lixue Liang , anthony.l.nguyen@intel.com, linux-kernel@vger.kernel.org, jesse.brandeburg@intel.com, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, netdev@vger.kernel.org, lianglixue@greatwall.com.cn, Alexander H Duyck Subject: Re: [PATCH v7] igb: Assign random MAC address instead of fail in case of invalid one Message-ID: <20221214125016.5a23c32a@kernel.org> In-Reply-To: References: <20221213074726.51756-1-lianglixuehao@126.com> <20221214085106.42a88df1@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Dec 2022 20:53:30 +0200 Leon Romanovsky wrote: > On Wed, Dec 14, 2022 at 08:51:06AM -0800, Jakub Kicinski wrote: > > On Wed, 14 Dec 2022 09:22:13 +0200 Leon Romanovsky wrote: > > > NAK to any module driver parameter. If it is applicable to all drivers, > > > please find a way to configure it to more user-friendly. If it is not, > > > try to do the same as other drivers do. > > > > I think this one may be fine. Configuration which has to be set before > > device probing can't really be per-device. > > This configuration can be different between multiple devices > which use same igb module. Module parameters doesn't allow such > separation. Configuration of the device, sure, but this module param is more of a system policy. BTW the name of the param is not great, we're allowing the use of random address, not an invalid address. > Also, as a user, I despise random module parameters which I need > to set after every HW update/replacement. Agreed, IIUC the concern was alerting users to incorrect EEPROM values. I thought falling back to a random address was relatively common, but I haven't done the research.