Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1051091rwj; Sun, 18 Dec 2022 00:56:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf4SQtm+oG7NeikCi6xmTaLrA0h48rSiXj9oIRbBY8v+dV1mDrifGzoYqypTxY4Jz+/ChVqF X-Received: by 2002:a05:6402:249e:b0:470:174c:4fe with SMTP id q30-20020a056402249e00b00470174c04femr21575656eda.8.1671353797346; Sun, 18 Dec 2022 00:56:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671353797; cv=none; d=google.com; s=arc-20160816; b=W2OpjEu6qISbdfMr4GkjHwK3uZfTbqM/pS7+GQQzVrNLGSbBxNX+7Ksv3rzvbWHx2z cRJKTOcbggQx/X9LFk67r3MHOEO9IZ9Yq+jdlo2uxEdbkC2QuUwqZsX9AYULZt2tA8qE WVNiLmcGUAKRnhT3vcWd8ULDQNJy0MBgRB84wr/LaSkD+xZYyVpkN/vUwqxzCUsLbbhS VvK062bCDQ4w3xkSGsY8nA6Q1kKEpqBNcrRPY9Ruqa2mLxVd1f2ICIjEqtbOYYgtzetX voY7M/m8NEdJzztidFTkxPs1DTuUl2XdbJSCQB/3eQ6BjNWUUzAvhmL6xXbXJ89yCdeZ GwPQ== 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=fjNOK0aamoJIzGU51nhu2rU9JJ+XpH4miukxa1XYITo=; b=PPOymUD6D7+uLs/XcZwylvVgjAazoO5yBeAObWfnSMqddqNs41hkvUJr/4bNlTU+lu r+ofQQ9R9lts/zqJbqTU+w+1Io5Jbh8JGqUofZbM4ZFIGjhRZxirlVGySc2yNs6KnhjD 8ikxMQZiwBkS0PgIxRs5hPhEBbDjjaWAyCZYsmvHlNqlUlfw+1fV0PJd7GuuaYb//slD yWCVLb7TDWc/b4CA3qyJi5AN/C8jgqFPi9BOxcObfV9AHnuH6SxWxO8KKbQbxm74TFiw N2rgL9VRJZ42dn/KlyvnPkGAAUADphcJN5IZm5QULKPdimNf5vEfdRlFHUrbi2R3RBqB pqNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sFyZe5Z+; 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 w5-20020a056402268500b00461992160edsi7079601edd.384.2022.12.18.00.56.20; Sun, 18 Dec 2022 00:56:37 -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=sFyZe5Z+; 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 S230089AbiLRIln (ORCPT + 70 others); Sun, 18 Dec 2022 03:41:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbiLRIll (ORCPT ); Sun, 18 Dec 2022 03:41:41 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 321505F4C; Sun, 18 Dec 2022 00:41:39 -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 dfw.source.kernel.org (Postfix) with ESMTPS id A03F560C40; Sun, 18 Dec 2022 08:41:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C0BBC433EF; Sun, 18 Dec 2022 08:41:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671352897; bh=bTTHW54ywvYaPl0xp7dDxXJxXxuIkgm4KU9HqKO/f6k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sFyZe5Z+xuPBxmDdc1BY9PDe12EdH7hq2wEzbJdvbf7mZXYtdapzdc2TB5THbjgUD 8Ui6iyY/8cO+t2ZXXpFt6joQERaiPSuXlqODSG7iGKrcXTfhBrHsUtyiyWwSxQpno7 Lk8CiczP6Gw+cTvCxmJPvp6/R5XGDciFYlU4myMK3TLufTI0Pir9AYcY1RblwXitIL k2aE2aIch4fqR8oarlAPK5oPMyiUq7VouvKAOwcXMBQKJsslCe4bNSclNfg0AgMgbv Cqokj9ZJb1Q2JhnU5lKKpo05qDARkipL1a9fBwFa0iMSTTONWhA7MvQUCVpKSHEbh8 oG/UbjdLd0wZQ== Date: Sun, 18 Dec 2022 10:41:32 +0200 From: Leon Romanovsky To: Jakub Kicinski 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: References: <20221213074726.51756-1-lianglixuehao@126.com> <20221214085106.42a88df1@kernel.org> <20221214125016.5a23c32a@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221214125016.5a23c32a@kernel.org> 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, Dec 14, 2022 at 12:50:16PM -0800, Jakub Kicinski wrote: > 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. And system policy should be controlled by userspace and applicable to as much as possible NICs, without custom module parameters. I would imagine global (at the beginning, till someone comes forward and requests this parameter be per-device) to whole stack parameter with policies: * Be strict - fail if mac is not valid * Fallback to random * Random only ??? Thanks