Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1998pxk; Tue, 8 Sep 2020 19:31:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRnI8+yy8N5P+swCG0h7UjV6cpydAgBkHMWbTFcSHbCC6psgr7vyv3ZbD3Qx2cFGxtV9PA X-Received: by 2002:a17:906:7cc6:: with SMTP id h6mr1462054ejp.266.1599618706529; Tue, 08 Sep 2020 19:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599618706; cv=none; d=google.com; s=arc-20160816; b=w/eIRbyUQVsqzKAfuflyEcaqvHrSQF8w4zSHa1EUiDIOKLOaV0Vgd5vUEAlhOKxfae S/qHNQsZ7+5lWKKGf34yAzZzwXAC8ImOxnNPxin+VVXozch00pDqhWflN9Rm2wX+iMBJ /XIrKRA9T5CsUCZIG4fdwmcQ2UWqplPqZh8LRisu8DJekTcZ1ynTUgn31yMVymOsEhTk 1Ot6/bc7v273De8/6L7Pf2r54j3XZkp+G+kz3uMWod+ajoqFoaD+IjG3CzWHGiY3Y3xh EPE0qSguiD1eDdDTmYU6iaQfdif71vAN/bwJoFbumW4MqX9Y4VjlxsmWjxz6B3fW5lBL TXRw== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=Vq2X43zbslbYo7ST0bZ5xljj+z5ZBSPLnTnM3h4xQQ8=; b=aDIXoaDXGTM0g1lVHt3bFsQkU6sdhixSkfu1rOtXtmhntNHwk1SG5OQlQkmWVXCCFv WEj9+/D7K4P+wdXg4uL6r4KfIZh6I4eCvHIvUL/96hr6O5SSSu1boy4uqT+VNBT5TXnK 0bu3QytAwmo6q1SfsH2Q2xT20xIaxGQfYSRoJOYSGFztgpgkWHgnldYmon1Ze15DG6Dp dwepaA0IH24cz7UOuVQ7BIVQgGpMBJTNXolOiftsEKRPiy2xX/eNQUqMfXUuqy3Q4u+x ACehWxu4G9uAwegY3teRdp5DkWRbmKcVd5/qHohSXV3w5MUtBVtB32iAHViSrR4i7Zyk +nKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z3si633434ejw.415.2020.09.08.19.31.23; Tue, 08 Sep 2020 19:31:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728458AbgIIC25 (ORCPT + 99 others); Tue, 8 Sep 2020 22:28:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbgIIC25 (ORCPT ); Tue, 8 Sep 2020 22:28:57 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3135C061573; Tue, 8 Sep 2020 19:28:56 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 087B411E3E4C2; Tue, 8 Sep 2020 19:12:00 -0700 (PDT) Date: Tue, 08 Sep 2020 19:28:45 -0700 (PDT) Message-Id: <20200908.192845.1191873689940729972.davem@davemloft.net> To: grygorii.strashko@ti.com Cc: netdev@vger.kernel.org, kuba@kernel.org, vigneshr@ti.com, m-karicheri2@ti.com, nsekhar@ti.com, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH net-next v2 2/9] net: ethernet: ti: ale: add static configuration From: David Miller In-Reply-To: <20200907143143.13735-3-grygorii.strashko@ti.com> References: <20200907143143.13735-1-grygorii.strashko@ti.com> <20200907143143.13735-3-grygorii.strashko@ti.com> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [2620:137:e000::1:9]); Tue, 08 Sep 2020 19:12:01 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Grygorii Strashko Date: Mon, 7 Sep 2020 17:31:36 +0300 > + ale_dev_id = cpsw_ale_match_id(cpsw_ale_id_match, params->dev_id); > + if (ale_dev_id) { > + params->ale_entries = ale_dev_id->tbl_entries; > + params->major_ver_mask = ale_dev_id->major_ver_mask; ... > - if (!ale->params.major_ver_mask) > - ale->params.major_ver_mask = 0xff; This is exactly the kind of change that causes regressions. The default for the mask if no dev_id is found is now zero, whereas before the default mask would be 0xff. Please don't make changes like this, they are very risky. In every step of these changes, existing behavior should be maintained as precisely as possible. Be as conservative as possible.