Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp745970rwb; Wed, 14 Dec 2022 02:09:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXsO4Nf2Out3Icq6eZ1oJ79dN9PbUz71K3j1u+aUT2CR4Ii/zK1w5f9/oxPcgM+bO5bdtzqL X-Received: by 2002:a17:902:f30c:b0:190:ec35:d32c with SMTP id c12-20020a170902f30c00b00190ec35d32cmr915177ple.25.1671012554435; Wed, 14 Dec 2022 02:09:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671012554; cv=none; d=google.com; s=arc-20160816; b=NxNg/LGASM9Gz8GPwCSw4+2yqF8vGMf3mXEfvGJcnyiX+Bj+XoIxgjvbUL7jsH1RJ9 ZWo22zdAb7zc1nofleqlv2aRhdF8IHNw/GkZ2Aymd9SPWhQQVWrPByWnnk5LDU1FRpdV ua7Hix7OQquXrplswBsfimklqYSe/w8Vv1GHBxDedI3m5uSZhgvZQJfyksvUIdThzJWo o2ecggQ2UfgpfsRNjBZSJ2lj9gO42U9rzr2CG4jJkAjUbMiGr+VH1APeoQXFd2H9fBzF cIoXniY/wn5dmf6jh16VXzrfoR1jKNgl12Vz4DV8IJ8z+jAFV2ahvcW5Vly2tS8TvXBj bQZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=DdXAi3a4xLdPWmSfsmnWtnIG13EOG5Vlr4x3NyxVLpk=; b=ZIbGTlrAQKlAVxmma+zWF/043QbVCozaIHG6mIE9Y3gzck8AVd15N6jQ4bGhE5uYJX J0Lsf9eWGXgqLQfriMqrQZH4O/EaXiINdLgmRUa4FndhT+O2Pl7fTnjxid9JsKs1LnGF AESB1vQeFzjaBepx6SrC7xvSjmWhFQy3z9447U31D2XLNLwehoaYUp8R07Kz1Z5Nu85A 6bvBNUfYOryGEbk3pM8TjYcVivTzH7F8yI+og2hlnXdVGrzL+1LjVTX7GJgM0wqH8zib HpDq87Rv0akHUCJqkMN3jiO6TqTfFFDLwCNF2pf9XRm6fZuqzyq2sTP1YyQIZryGlECX GgmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=GjBx+yrU; 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=126.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a170902b40500b00178b88d40ebsi2339206plr.51.2022.12.14.02.09.05; Wed, 14 Dec 2022 02:09:14 -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=@126.com header.s=s110527 header.b=GjBx+yrU; 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=126.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237963AbiLNKF3 (ORCPT + 70 others); Wed, 14 Dec 2022 05:05:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbiLNKFY (ORCPT ); Wed, 14 Dec 2022 05:05:24 -0500 Received: from m126.mail.126.com (m126.mail.126.com [220.181.12.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8795919C38; Wed, 14 Dec 2022 02:05:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Content-Type:Mime-Version:Subject:From:Date: Message-Id; bh=DdXAi3a4xLdPWmSfsmnWtnIG13EOG5Vlr4x3NyxVLpk=; b=G jBx+yrUdY489zjU+zbSAfm0Tz+6Md4p4ha3C3lMuM3mb7r8cH1zJwHTvbW05ijoI bn2JB6Fkz6jmM59OC/kBcVJn1H/hhwK3Yny6cZI49jC02dfNzf+wlUR5dqa3xaw6 VWa4hdQ5cQSfhTMvtKVeJ6iy201S0OmGUB2crMTp24= Received: from smtpclient.apple (unknown [117.136.33.142]) by zwqz-smtp-mta-g2-0 (Coremail) with SMTP id _____wDHkApOn5ljb0YKAA--.23247S3; Wed, 14 Dec 2022 18:02:57 +0800 (CST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Re: [PATCH v7] igb: Assign random MAC address instead of fail in case of invalid one From: =?utf-8?B?5qKB56S85a2m?= In-Reply-To: Date: Wed, 14 Dec 2022 18:02:53 +0800 Cc: Tony Nguyen , Jakub Kicinski , linux-kernel@vger.kernel.org, Jesse Brandeburg , David Miller , Eric Dumazet , Paolo Abeni , Netdev , kernel test robot Content-Transfer-Encoding: quoted-printable Message-Id: <216119AA-C362-445D-9F04-47AC2A15EC11@126.com> References: <20221213074726.51756-1-lianglixuehao@126.com> To: Leon Romanovsky X-Mailer: Apple Mail (2.3696.80.82.1.1) X-CM-TRANSID: _____wDHkApOn5ljb0YKAA--.23247S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xw4fGry8GryfurW7KrykKrg_yoWkGFcE9F 45uFy5W3WDGr93KF4jkF4YvrWF93WUWFWF9a4UtF93W3sxAa4xXw1qqryruw4aqrWvkFn8 u3W2vrs2q34qgjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRi75rDUUUUU== X-Originating-IP: [117.136.33.142] X-CM-SenderInfo: xold0w5ol03vxkdrqiyswou0bp/1tbi5RnXFlpD9gGR-wAAs9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 hi Leon, Currently this module parameter is only used for igb. Is the more user-friendly way not to use module parameters? just like other network card drivers, use random MAC.=20 As I submitted [patch v3] before, link:=20 = https://lore.kernel.org/netdev/20220530105834.97175-1-lianglixuehao@126.co= m/ Or, can you suggest me how to do it more reasonable? Thanks > 2022=E5=B9=B412=E6=9C=8814=E6=97=A5 15:22=EF=BC=8CLeon Romanovsky = =E5=86=99=E9=81=93=EF=BC=9A >=20 > On Tue, Dec 13, 2022 at 07:47:26AM +0000, Lixue Liang wrote: >> From: Lixue Liang >>=20 >> Add the module parameter "allow_invalid_mac_address" to control the >> behavior. When set to true, a random MAC address is assigned, and the >> driver can be loaded, allowing the user to correct the invalid MAC = address. >>=20 >> Signed-off-by: Lixue Liang >=20 >=20 > I'm amused that we are in v7 version of module parameter. >=20 > 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. >=20 > Thanks