Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp562261rwd; Sun, 14 May 2023 02:09:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42F3a2Qvd3q1GyQohymT5OVW893ekxiSzPqZvLDQvJaYzWSofqRp6/V5ktXOXA3Xh9msCR X-Received: by 2002:a17:902:cec9:b0:19a:a9d8:e47f with SMTP id d9-20020a170902cec900b0019aa9d8e47fmr42755578plg.36.1684055352556; Sun, 14 May 2023 02:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684055352; cv=none; d=google.com; s=arc-20160816; b=qGapDtl9qg82p99SHNU5m2wtAl5gSmEgQnFouxHc028gWWNK/nZ2tJAjOAxBFOM5UG mzS5sH5M2XkpVtJuvVDn4+SBFdgEPHbFUMmroygcYuNazSNEvT/UghoRAZMiQA0Gum9D UGsQHSGvVIBydpoieShkeoT/rROoYZlwromjK99NXsxLHqQHbZ8rus9FPNQbMK58y0+L TyccrrhaB1vLMPFgOdt4RzBhhaRsgiYzqKakEtYPXEloDfNgOXZ+bpkCEejCW7fItK0m VhJo3fJ1Qpk1nkX4J8R7leCBz/A+gboBR9foi8w9QCpVeqSSZEcL9TEnMBZPGotMJ1Ww EyPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id; bh=dWADnJBA5OpN8dnaFGBalD4eEqJwhnk/ByeckI4uVn0=; b=grgPK+JDz7uzGEggt5FDRTCJlhg6P2srvY8fX7d6KHxud5oiPBGuWvKr/kuvzwMUdA XD8Qu3NbRgWMy03vp4faL/lhoY8l45SXdEfFCvbjMpzauTm8PXIhwXDMg5ga8VGben+6 HeKpHB7+1/KumueFXIugBO3vtiYLqFvHTsig3/NDDlPKQ+Q2qPtKzshWwLrYcdiKDpbR H1+8eNqcCqOasmdfYe7fyK84pihAxXYUhgGXG9nnhOnKyuj/PUK9BG3/+HW7e1DMMZgu jLzF0ngTmxLLfhwmm7tSvfUj/Tp0C6QdFehPbFWPUYLBVQaYfsfOSGnIhdoB/8WGh/E5 wqxw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a170902bb8200b001adfe95b2f7si2536426pls.318.2023.05.14.02.08.59; Sun, 14 May 2023 02:09:12 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231916AbjENIPL (ORCPT + 99 others); Sun, 14 May 2023 04:15:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjENIPK (ORCPT ); Sun, 14 May 2023 04:15:10 -0400 X-Greylist: delayed 600 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 14 May 2023 01:15:07 PDT Received: from air.basealt.ru (air.basealt.ru [194.107.17.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E66002125; Sun, 14 May 2023 01:15:07 -0700 (PDT) Received: by air.basealt.ru (Postfix, from userid 490) id 7251D2F20227; Sun, 14 May 2023 07:59:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Received: from [192.168.120.181] (unknown [176.59.56.94]) by air.basealt.ru (Postfix) with ESMTPSA id 52EE52F20226; Sun, 14 May 2023 07:59:46 +0000 (UTC) Message-ID: <6894e9f7-7100-255b-b026-5ccf485a7e31@basealt.ru> Date: Sun, 14 May 2023 10:59:44 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH] e1000e: Fix bind network card with ID = 0x0D4F To: "Neftin, Sasha" , kovalev@altlinux.org, nickel@altlinux.org, jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, kuba@kernel.org, jeffrey.t.kirsher@intel.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, pabeni@redhat.com, edumazet@google.com, "Ruinskiy, Dima" , "Fuxbrumer, Devora" , "naamax.meir" References: <20230512231944.100501-1-kovalev@altlinux.org> Content-Language: en-US From: =?UTF-8?B?0JLQsNGB0LjQu9C40Lkg0JrQvtCy0LDQu9C10LI=?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 14.05.2023 09:00, Neftin, Sasha пишет: >> Fixes: 914ee9c436cbe9 ("e1000e: Add support for Comet Lake") >> Signed-off-by: Vasiliy Kovalev >> --- >>   drivers/net/ethernet/intel/e1000e/netdev.c | 2 +- >>   1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c >> b/drivers/net/ethernet/intel/e1000e/netdev.c >> index db8e06157da29..8b13f19309c39 100644 >> --- a/drivers/net/ethernet/intel/e1000e/netdev.c >> +++ b/drivers/net/ethernet/intel/e1000e/netdev.c >> @@ -7887,7 +7887,7 @@ static const struct pci_device_id >> e1000_pci_tbl[] = { >>       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ICP_I219_LM9), >> board_pch_cnp }, >>       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ICP_I219_V9), >> board_pch_cnp }, >>       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_CMP_I219_LM10), >> board_pch_cnp }, >> -    { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_CMP_I219_V10), >> board_pch_cnp }, >> +    { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_CMP_I219_V10), >> board_pch_adp }, > This is wrong approach. (we can not process old board similar as new) >>       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_CMP_I219_LM11), >> board_pch_cnp }, >>       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_CMP_I219_V11), >> board_pch_cnp }, >>       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_CMP_I219_LM12), >> board_pch_spt }, > Looking in commit 639e298f432fb0 (e1000e: Fix packet loss on Tiger > Lake and later) I would suggest to replace the mac->type as follow: > "if (mac->type >= e1000_pch_tgp)" with "if (mac->type >= > e1000_pch_cnp)" (more correct) - try it on your side. I checked this variant first of all - the behavior is correct, network packets are not lost. Can I prepare a new patch or will this change be made by you? -- Best regards, Vasiliy Kovalev