Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7869179rwp; Wed, 19 Jul 2023 01:16:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlFn+oJo93BTveGwKY2psgiMpaUOU5fl67dJPc/k0BGN6+JxBJpuxjW+5JK5sdTTMsPB5M51 X-Received: by 2002:a17:906:7791:b0:994:1806:fb96 with SMTP id s17-20020a170906779100b009941806fb96mr2002460ejm.16.1689754618978; Wed, 19 Jul 2023 01:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689754618; cv=none; d=google.com; s=arc-20160816; b=yA9EUcxyn2AfwoDmD2oBq0ST+Qk9GB7Pelt84zMFoHOPFA1N2bJgx82uBLxK+ZHO7h NQYJ71uidhGqp81URPG7IW/eYy795+X/C7GSaA1axQjgoDzp5RG6PR1wedr801CcujWU rKgo/PbYaZro7Tj+Jf/i0kReWTet6cZdP68ZIynSs2ONmKw50u6wcSIXZfwNwXaJlyDX 6E3hmMERLa8rr9Rsu9lCZ36YQlMP1V3bPaaw4h1I1Bn3UgzeYzwmyXFtDDq1jSrUnz2f Edz8quiY9vYV42riHSJ5Tsk58fYs++5+P+aOZZ7Xotw3eQw+azrn0olCqk7Opsy2t0xm dwZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=R7xRfRSvgVVrhgxbOcK9k3MGaaEalRaBl97IvWBViA4=; fh=/cmt983vKVVrHZAb78w23ROUXpzJJFAwZQWvRCgDAAE=; b=HPWcp6XqRfLcPv0FEIdV+3yauhLdopgCtldzJXXx7abOPm/YCmKjjREX6S2cZa4w35 e9BTlTtGgprNG4XXJFILMC5dL0o7gRRrvfCyb0WvxgXlbk2vUV3yz0NXte7tfqpPzMFz AdWuTJD9jAqpuMT816vIRokqiHa62PIof9MrxkWSbNvDEHELdzmcU5ZZXsxDety8ANwu nxmWFbS6Z3v3TlLsQpI7XBdf1uktV0cSou5W8C68QdpFSLGvuv4jVHDysVxCvBVL8tZN /6zlTghPSLG8nbfE6+D3cj0ejgpIYe8KQBSzXB5xVsP9ZlyxRIuSmKMw6q+PjizrTxBp rI1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UD12wRAc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g21-20020a170906595500b00993150e55desi2533674ejr.291.2023.07.19.01.16.33; Wed, 19 Jul 2023 01:16:58 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UD12wRAc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230168AbjGSHra (ORCPT + 99 others); Wed, 19 Jul 2023 03:47:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbjGSHrX (ORCPT ); Wed, 19 Jul 2023 03:47:23 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93E0D2682 for ; Wed, 19 Jul 2023 00:45:52 -0700 (PDT) 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= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-330-gJxEKPebPne2EkzXiomlZw-1; Wed, 19 Jul 2023 03:45:50 -0400 X-MC-Unique: gJxEKPebPne2EkzXiomlZw-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-3fbfc766a78so36950415e9.3 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=1689752749; x=1690357549; 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=TwJQm/uQaoUWg6NGdmFou98v8XUMW0HAL7t7A11Wq/iTJeGHq+HLhSefbRyckgFw5+ CVVOBz9s+M1bkUeIFsje0YEV28vQ4Bmilv7GVxPz34bfD77SzuoKH2rGzhADYAmxqbea YpygrRfKwl5kgkF9NK4eE8b2SC4XmCguSs0jFhV82ekRNGWEk9xz8s+i4q+aPkkc3Nfj /Ul9Y7fQQwpeYY+DVeXedOHhFppYwGW7gIfJr1Uk1FQlzQsCMQgCgHWuSkZDNyoTNi9J abupxTZ9AHx94/gRkilASl9ZHmqY5qGdoNoZkKBXNtZ0rWvw6sHJDdFzfYZLhVK8jjZx j0vQ== X-Gm-Message-State: ABy/qLbjb8N5F191h8TPIBRNkAjjhrjnnzknE0fYBg07kQSU4d7di9IQ BCWLan+tFcIWBHQjHdu7e1kxEhdpL33k2MT/a12z9Ydc7Dr60vcRYCpOYUkFdcHibLhkOyztxLm 1vOWn9dPQNJPUMh7kg3mCN/RA X-Received: by 2002:a7b:c456:0:b0:3fb:a6ee:4cec with SMTP id l22-20020a7bc456000000b003fba6ee4cecmr3820589wmi.33.1689752748814; Wed, 19 Jul 2023 00:45:48 -0700 (PDT) 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 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ESqLmvJwzuWNyDyo" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --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--