Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp621186rwb; Wed, 14 Dec 2022 00:08:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7GLNluyUFWKlrXyqjJjWZ1VAj6hKnwJpGYIpdy965mCBPC/taFJnN7xhFG8ZULajOal0JV X-Received: by 2002:a05:6402:1154:b0:462:16a2:a2e7 with SMTP id g20-20020a056402115400b0046216a2a2e7mr19485926edw.6.1671005292621; Wed, 14 Dec 2022 00:08:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671005292; cv=none; d=google.com; s=arc-20160816; b=xfpM9zKPMHfwKEsudzJ1DAkGB+FedHEmjDlA/zLmxitSqZtK/6EtYYrYqtcrL+qpWl mHGOGXkLf0g82LO9lGVYK/FPNx0pQBFWhPZi5/4A1ApX+hSmNv4SCtV5Jgo1+jMddiYJ SXFD6dxuOSmXhz+UKXmZAV6khebfHjye6xC1nH4q1uljQVLoUNQIAZrnbuplWacBDv19 Bxgr1/QDsUKL0Mnr/AR3GtWbt7NSAa7DuKSYeggBweENOYM+l0FTOP1hL0vOqhTDOCy7 C3kUqUQYpqfdrDcrhsocLxIxg5oVobBB50xphaC7gOsGgqpAQZ++6br6hVkAyW8HTk/E GaVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IMnTfytR/Eti2AmaaAJGK4UOlI4NqTNp8VimmozwsAY=; b=kIVORB8UFnSJ36pZo/2mo1poPxIPycBpuFnaJ/nArl3bZQJtV0DjBK8nL1ZtGRa+hF TXkIVHFE7jyxrrwg7xZoHEjziLqctOCdBCd+SktPn2LOW90syU5MmSZE7pCLTOMOIb50 Krv5lusz+RDZEO8D2aD8tOqjbjyMTNGHDSu78IAbEPT34bYHX87VhFMXmbHWTO5Cqfny 8jwhRjSEXoRpuWRy8Z+/3xg7DixfAUBkojCfaaKblts4zvQbkpgMITpAVNhJOvD8beVL ej0fUc+2GzbPSxXmpAr/Sf8IvPmn3+ykM9LbPN1EAigbYaFYwHLqLfTcPTdPNWP8Tppl LkzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JKHdadIs; 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 cm10-20020a0564020c8a00b0046c51875c2csi10560392edb.526.2022.12.14.00.07.53; Wed, 14 Dec 2022 00:08:12 -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=JKHdadIs; 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 S237484AbiLNHWW (ORCPT + 71 others); Wed, 14 Dec 2022 02:22:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbiLNHWU (ORCPT ); Wed, 14 Dec 2022 02:22:20 -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 66B6714D19; Tue, 13 Dec 2022 23:22: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 1E4F5B81619; Wed, 14 Dec 2022 07:22:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40048C433D2; Wed, 14 Dec 2022 07:22:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671002537; bh=48GqGmbbMjxf6Q6um0LMW66Yba8Lyd9HBbxBxv4GInE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JKHdadIsebQU85kcM8OKKKjwRC2K7GRQ+zQb1WQgrNiCa1VBHlEVSIIPI9tzJpR/w hLiOTKpsS+GAdPWirAcA594kso60N39a71p7xgygxlA04KXaAsVohjeokTpr3S6FuI OkFicXLMdRqYgHodF9Y2Lc1vNmqVoGhGevSPvzQE//rbY7TviXeHtd+UF/r/kNqYS7 M/AN0OuzZyJiu8GzvP9kgpr6nx5P4Voc6PLgvNp1pF52jphtuq7x+T1fH8G/fMqn80 ZO7oMCiPnIEC/Q2quO1IMo0lBr0Ogtp33g2efe749qFrJae8R/SbEtKwH0iG9Xw+JZ LzUSN+iUAIQYA== Date: Wed, 14 Dec 2022 09:22:13 +0200 From: Leon Romanovsky To: Lixue Liang Cc: anthony.l.nguyen@intel.com, kuba@kernel.org, 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, kernel test robot Subject: Re: [PATCH v7] igb: Assign random MAC address instead of fail in case of invalid one Message-ID: References: <20221213074726.51756-1-lianglixuehao@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221213074726.51756-1-lianglixuehao@126.com> 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 Tue, Dec 13, 2022 at 07:47:26AM +0000, Lixue Liang wrote: > From: Lixue Liang > > 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. > > Signed-off-by: Lixue Liang I'm amused that we are in v7 version of module parameter. 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. Thanks