Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3839779rdb; Thu, 28 Dec 2023 01:24:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIgDZR1Z73fekBYC4/ZEvWpw0ToImBLhWXEeiK7sOpc2jmf0yffuP+LKSuYxqawo/YhY4Y X-Received: by 2002:a17:906:bcf7:b0:a23:3091:28c1 with SMTP id op23-20020a170906bcf700b00a23309128c1mr4250115ejb.32.1703755481328; Thu, 28 Dec 2023 01:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703755481; cv=none; d=google.com; s=arc-20160816; b=rokCYjhQoPqCfNhUCSWroGGeFoWTMUaYs6DNWG09VEdzyaamk0WM1UrYDAkYt+0vSt wYiCrF2yXCiPuMEKCOBvS52AUscYKkDFBKtcvCX+lrpmrhSaodXvpm8crgSP9H8ppxse G0/RzrY8Dr1QRBDkQhJGflz/OkSnUahyuGKw0pNeNYQngADwNZOar7ZsrgL0vJwsfkya 5GMRFYcit8njArkZodDTpY5+FdU5VSHv/r2iSSbz1MBecmZ3hJ6ZGCS2/emkLSkwnkqI cNG0eNzs0kkB3eNiqJc/tqBkuXjB3tMxpjXD3+77i9DXm/gV85wEoO/37lBUxgzm9eZy sevw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=yt16tXDOIiqglrHWPHNmrsT716v6jtZETUti9q6/ASE=; fh=E9rdAL6of27Ugl9SNLZXcHRT4Ji0b14G1iMu3y/WrCw=; b=zYYj6t3335/WCE4ruW0APM9QeX4ClJBAXpZtshJ+Aij1+K2d1q0e6oKaSPA5caPGi2 7SEi10JPrvrXKJ5gI1pZgqb6YSymxedtCKZtc5NoE0wDDgvP98PcyNbqvPnRemLFNTp9 c3BEFMDFIzY9NRzfQTEpd7StxPZsFqm3bd1/dwMDbW3BJ0Pg4dkc7iF4dpgBsRxYOo18 pCrrEMwnZpxGBfKs0b/d6GFVKZhotOMgsqoHaRat8FCtlbSe3KR7Mg8CiZxYMxajX2YE po1Dh4HbHX6DkKDN9pjqp/TlU1dH6ZauEmr4Dr66MYA9yWe1aKRmI2f4PYk+9TEWtN/d q+Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SPL99FjM; spf=pass (google.com: domain of linux-kernel+bounces-12531-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dm16-20020a170907949000b00a1dfe5894aasi6497767ejc.332.2023.12.28.01.24.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 01:24:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12531-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SPL99FjM; spf=pass (google.com: domain of linux-kernel+bounces-12531-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 185B31F22F84 for ; Thu, 28 Dec 2023 09:24:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7392963D1; Thu, 28 Dec 2023 09:24:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="SPL99FjM" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C724163A8; Thu, 28 Dec 2023 09:24:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703755469; x=1735291469; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=0BnRPGjZ08Szibrn+c+3PaPkhu55oPawbz2u9zwgUAU=; b=SPL99FjMfJSlEk42JVfx4MRHUILI78BFRQU7ki0D9mw2x+2n/i2TxNSo gYkV/7oO5OgkNmUX2h9yBqEw9wSNnpK2lsjzVnjfJ1XVllRCcMs9pqJJH F0vJtpDDS1+nAw3EpCoH+213eRcE83ObswjPkhtk4CVcj9e9k4bOvefZp 8BCMT8GTtU0SXoSq+N5C168KTxsbr3pJHwF+LNZcOJLSd1zs24JfMyfZr 1DJ9Qs7TJho7RTCMLLX3x8D/DHlvRTl8GmarR73U4Jekw1tILuohN8Mxi WpWXIKAb+I1g3vbe9iIutwq2gFf5hGz4s2OqPN6m6ghO7GZ6Q1CuKVc/o A==; X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="9924249" X-IronPort-AV: E=Sophos;i="6.04,311,1695711600"; d="scan'208";a="9924249" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2023 01:24:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="771675446" X-IronPort-AV: E=Sophos;i="6.04,311,1695711600"; d="scan'208";a="771675446" Received: from naamamex-mobl.ger.corp.intel.com (HELO [10.245.129.232]) ([10.245.129.232]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2023 01:24:23 -0800 Message-ID: <02414651-df89-48cf-ac13-25f581f3e34f@linux.intel.com> Date: Thu, 28 Dec 2023 11:24:21 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Intel-wired-lan] [PATCH iwl-net] igc: Fix hicredit calculation To: rodrigo.cadore@l-acoustics.com, Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Aravindhan Gunasekaran , Mallikarjuna Chilakala , Vinicius Costa Gomes Cc: netdev@vger.kernel.org, Kurt Kanzenbach , intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org References: <20231208-igc-fix-hicredit-calc-v1-1-7e505fbe249d@l-acoustics.com> Content-Language: en-US From: "naamax.meir" In-Reply-To: <20231208-igc-fix-hicredit-calc-v1-1-7e505fbe249d@l-acoustics.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/8/2023 16:58, Rodrigo Cataldo via B4 Relay wrote: > From: Rodrigo Cataldo > > According to the Intel Software Manual for I225, Section 7.5.2.7, > hicredit should be multiplied by the constant link-rate value, 0x7736. > > Currently, the old constant link-rate value, 0x7735, from the boards > supported on igb are being used, most likely due to a copy'n'paste, as > the rest of the logic is the same for both drivers. > > Update hicredit accordingly. > > Fixes: 1ab011b0bf07 ("igc: Add support for CBS offloading") > Reviewed-by: Kurt Kanzenbach > Signed-off-by: Rodrigo Cataldo > --- > This is a simple fix for the credit calculation on igc devices > (i225/i226) to match the Intel software manual. > > This is my first contribution to the Linux Kernel. Apologies for any > mistakes and let me know if I improve anything. > --- > drivers/net/ethernet/intel/igc/igc_tsn.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Tested-by: Naama Meir