Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp467037pxk; Wed, 9 Sep 2020 09:55:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVbjdbcNLxYtRXzSmje/CMwG8umY6XdnZ8k+mWhF197P7ceIGXOqlWp6AtnbKEdrbyx7VM X-Received: by 2002:a17:906:2618:: with SMTP id h24mr4375992ejc.198.1599670516258; Wed, 09 Sep 2020 09:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599670516; cv=none; d=google.com; s=arc-20160816; b=VAPy7GUBnzoVAwpVwblPuNvP99ncm/ZaDcSVKi5Atx8RmbmxB1DZV8AfaePC4jd2fe 3Z2L7Suxh8gnoH8Ha7/2CJiqobAEIcOOnEISvsfe4eZZzAzK4bYZg0+jSX1CzgM80D5/ TfXp1E4Slx1cOZsrIY1Pj5DqG0L9gANuOsylD1IfFGQOazslqnA3e3q++tmhIJdmL4qL 57Hzh/oamXkh8t7SGMeG6dnKQihIRXz6Wyt3PvMdpDt13mQEOt7C5y7Nln/xnlnDrPTs SwqyUyGJ3nnC91IWYPikazQdCjpKReyw763qaenqZsXigAT5rHNogg01rYzySh2EdY4O LC1g== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=XqRw5QT7qAOnA0fHlBfRovQaKRWcEo/7X0wdNzUW/5g=; b=CRjWr+oRgQD5v0IVTN8wyMTFnMCRzVNF5tRnJs2yxO+x4ip1TrO443CxzaBAe5cc76 bNcXcyXVoPfVDdQSZzqgawWmkDunj9w3eoXZXK2VL6e6HXum6qBNxW77usAsdy1JVrA7 r6NmeUDZM7pg/qETkdoTYHpu9kDJvqypyYusSpjEXJEF7wPwH+VRsNVbRbs1MoRkAExW WW2x1z+4Ii6U5O0zFT3i07awUQ+PNHjEl/FeoL1VBwRGYEggL1WId5NHXjUIGXA42Axx qcTQDZqtmO/G1T/v8lSyGZUG3YBG7sVjir3CsTuNZweRDIfVqc1ZVCV7HVoraQ0tFIvG igKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wps6n6OO; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si1843738edw.288.2020.09.09.09.54.53; Wed, 09 Sep 2020 09:55:16 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wps6n6OO; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730979AbgIIQwH (ORCPT + 99 others); Wed, 9 Sep 2020 12:52:07 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45890 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731122AbgIIQvU (ORCPT ); Wed, 9 Sep 2020 12:51:20 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 089Gp7Pa047647; Wed, 9 Sep 2020 11:51:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599670267; bh=XqRw5QT7qAOnA0fHlBfRovQaKRWcEo/7X0wdNzUW/5g=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=wps6n6OO9R6UmvqkUtasili/Tgvw8xxS5fisiW8Vm91sOxmwDWAs1IaC+Au76LhQV Sv92Jv4J1/rFqWLO9++qxexT1BcGikpAM8b/lSMqLw7jWAKr1LlAd47bw6CzQ1EaI6 ydRsOtW15tJkhtot90HM4yasQgZZzgvKwlZDbd3c= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 089Gp7DW110141; Wed, 9 Sep 2020 11:51:07 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 9 Sep 2020 11:51:07 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 9 Sep 2020 11:51:07 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 089Gp59h087921; Wed, 9 Sep 2020 11:51:05 -0500 Subject: Re: [PATCH net-next v2 2/9] net: ethernet: ti: ale: add static configuration To: David Miller CC: , , , , , , References: <20200907143143.13735-1-grygorii.strashko@ti.com> <20200907143143.13735-3-grygorii.strashko@ti.com> <20200908.192845.1191873689940729972.davem@davemloft.net> From: Grygorii Strashko Message-ID: <61332531-0166-c5af-0475-1c338d2ea043@ti.com> Date: Wed, 9 Sep 2020 19:51:01 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200908.192845.1191873689940729972.davem@davemloft.net> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/09/2020 05:28, David Miller wrote: > 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. > Sorry and thank you for catching it. This part belongs to Patch 6. I'll fix it. -- Best regards, grygorii