From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EAF3AEB64DA for ; Wed, 19 Jul 2023 07:46:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=k9iZSmQkgaFb8ON78fzaoED3w0qCObUmz2gUHGRbpRk=; b=VJbYieM8o5U0PVUJk7ib7JTUk+ lBvmsv9d/Rn3NJQ+ZbflK+kYQ+ndc4FV11HwdToR4y8Qp7MyWoQyrN6ZiKmBWVnfsiqNCn9o+BR55 WTNrUfsMsMbT9O7h8tKf9ZeJgd6F1qguEvfFWispFobgAcvR2fm9KQOTQ60Wbmo2jN1bmsIl2CRiq 3jZqjTks1T6JTbGgdVK9ITZtRRcMXSSISgDcYlZugMgGVA5HXwzbIuBkXH642VI5Mx15LO0AfA6N0 Z2nNz8VmjplfKKiiOfvxa/DZs97MvYxCSFMrNBaBZjJEVJAj3TZlVCQFt9CWdvEZ9rb2WhwgLHS/6 5BcPluFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM1sy-00687C-2j; Wed, 19 Jul 2023 07:46:12 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM1sx-00686o-1j for linux-arm-kernel@bombadil.infradead.org; Wed, 19 Jul 2023 07:46:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=R7xRfRSvgVVrhgxbOcK9k3MGaaEalRaBl97IvWBViA4=; b=I6MaecFUqIdyo8rmuh1/qu4Wj2 846RDYcDtkBOJ/Tiyq4V9erbuLcncYfHtuD7bAhrcD8/45gZJUE+HTa7Lopz4lr8F9Ab7huGlTqbc 44MQkQnqvnJhkzwhMwblpN9F2YgLHh4bIiY/r+tMMS1VUHnPE6meyn8zDnpVEBryVXzKxlZGrw4aT RIsgEgveexo2MhSl/90cDvt8elTzXYrw5lnqySeiVcCXKIz7neL08XvG/ClGWHQ1Mjxa50uVaaZyF lDdj4cMKkzkPvucxHGpleEHKChXlCZ/pBMLIxBgotENv98YBZucS86ok3PFVpwrQkkbK5+VZ1B79S rGtvcA4w==; Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM1ss-00DSpH-1P for linux-arm-kernel@lists.infradead.org; Wed, 19 Jul 2023 07:46:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689752751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=R7xRfRSvgVVrhgxbOcK9k3MGaaEalRaBl97IvWBViA4=; b=UD12wRActMb/ZA2W+kOW5FHcvugbG2YlxCLSXovHW6M5OSMsRXQ519C7LqV2PqtvU7soGZ ZxFUf1yePsxUwciFSMPMywR89rBktrhsqlwHpE6uBZI7izY9fU6w2AYdGbHDL/7IoLmPzc wvAV+Tx8ALkaD57C+jp9jEUXErfgVlg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689752758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=R7xRfRSvgVVrhgxbOcK9k3MGaaEalRaBl97IvWBViA4=; b=hX9TL6v8oEpQlPHwcWV5HszXrju69WOkoiJltovvDEvu4Hbl0oP//tlPZqNwcTWONQkwWZ gBywB12cwb27mIase5LM6J8yuBqgbEKz4IUXHUj9laNyT7lTGf8CMveuRurrbF4miFxMPO FfxmeUYHl9PWU1aVB7W6i3mOxbxCniU= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-330-b5SkomLnPH64qJtY_LHDAA-1; Wed, 19 Jul 2023 03:45:49 -0400 X-MC-Unique: b5SkomLnPH64qJtY_LHDAA-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-3fa9a282fffso37062345e9.1 for ; Wed, 19 Jul 2023 00:45:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689752748; x=1690357548; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=R7xRfRSvgVVrhgxbOcK9k3MGaaEalRaBl97IvWBViA4=; b=ABI7IM7O4xzMYGseBg0M6d1sau3WYqYeMURG0gI55E2Dz2KjO3FzBo18289VbMaMHp QzMyLwX7OTnmZwzMWJT3JLMj7XAmVZbJM6QMzylpOCb2Ew5FDv7tFhOJHEAOcHpW6UOZ UFUSNKYhgASeJLUDQqsSlt2SY5j4p5RYXAw2CPKQ6apvL2ALJKZ/lYtrxi0WcNVQNX6L PzIxjdaE5Y0Nk2w6bX9Pv8oJ3mv1VMk9hlE50rLitNQTA3h/qr5hiY6pFwLLYlRWZE0i TH3Maakn6+sduRTFHugY2oC5dIWtGYNVIJZevv9Ugw9rU3NB/ep7TGR9wP01vKlZtvsH qdyg== X-Gm-Message-State: ABy/qLbWIayIeeb+UNdnIg3GfCHy4dESxYzRut+CnzhdwinKZOzIqXDa 6DaWy4l6LEJRUiDWUfL5wWriVSC1AnA1hsOlGUqoI+saS/cggbxATV89gbJPwUq5+1aP/1qqCmw BY8kip2eDzFGAPj1uW0iDeLq+w/ABCXjlETY= X-Received: by 2002:a7b:c456:0:b0:3fb:a6ee:4cec with SMTP id l22-20020a7bc456000000b003fba6ee4cecmr3820581wmi.33.1689752748813; Wed, 19 Jul 2023 00:45:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlHFMLZKSxq7F5LPg4Fx0AA5d2LL5/pFgLGRKxUm8gQCvGOZCvpj1Ssuw2aSS+V/KfG/hnhfaQ== X-Received: by 2002:a7b:c456:0:b0:3fb:a6ee:4cec with SMTP id l22-20020a7bc456000000b003fba6ee4cecmr3820569wmi.33.1689752748478; Wed, 19 Jul 2023 00:45:48 -0700 (PDT) Received: from localhost (net-130-25-106-149.cust.vodafonedsl.it. [130.25.106.149]) by smtp.gmail.com with ESMTPSA id k18-20020a05600c0b5200b003fc015ae1e1sm1019510wmr.3.2023.07.19.00.45.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 00:45:47 -0700 (PDT) Date: Wed, 19 Jul 2023 09:45:46 +0200 From: Lorenzo Bianconi To: Daniel Golle Cc: Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Sujuan Chen , Bo Jiao , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net] net: ethernet: mtk_eth_soc: always mtk_get_ib1_pkt_type Message-ID: References: MIME-Version: 1.0 In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230719_084606_897388_F8CC3A28 X-CRM114-Status: GOOD ( 18.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============2115140418111841242==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============2115140418111841242== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ESqLmvJwzuWNyDyo" Content-Disposition: inline --ESqLmvJwzuWNyDyo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > entries and bind debugfs files would display wrong data on NETSYS_V2 and > later because instead of using mtk_get_ib1_pkt_type the driver would use > MTK_FOE_IB1_PACKET_TYPE which corresponds to NETSYS_V1(.x) SoCs. > Use mtk_get_ib1_pkt_type so entries and bind records display correctly. >=20 > Fixes: 03a3180e5c09e ("net: ethernet: mtk_eth_soc: introduce flow offload= ing support for mt7986") > Signed-off-by: Daniel Golle Acked-by: Lorenzo Bianconi > --- > drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c b/drivers/ne= t/ethernet/mediatek/mtk_ppe_debugfs.c > index 316fe2e70fead..1a97feca77f23 100644 > --- a/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c > +++ b/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c > @@ -98,7 +98,7 @@ mtk_ppe_debugfs_foe_show(struct seq_file *m, void *priv= ate, bool bind) > =20 > acct =3D mtk_foe_entry_get_mib(ppe, i, NULL); > =20 > - type =3D FIELD_GET(MTK_FOE_IB1_PACKET_TYPE, entry->ib1); > + type =3D mtk_get_ib1_pkt_type(ppe->eth, entry->ib1); > seq_printf(m, "%05x %s %7s", i, > mtk_foe_entry_state_str(state), > mtk_foe_pkt_type_str(type)); > --=20 > 2.41.0 >=20 >=20 --ESqLmvJwzuWNyDyo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCZLeUqQAKCRA6cBh0uS2t rMItAP9cG5nx1x++wWRU+VItTbh4XWUmLjFZMBYxpuC6g2SryQEA9jlez1vrwO/l iJfZu2dQp7s/Fe1wazOV2nLlYLp+0AE= =r4Sz -----END PGP SIGNATURE----- --ESqLmvJwzuWNyDyo-- --===============2115140418111841242== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============2115140418111841242==--