From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 AE3C41AF0BA; Sun, 9 Feb 2025 12:07:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739102859; cv=none; b=VDI8/t70YQF6e8GlXVIlzut9ZVkxEPR8AGBlwUi6M5STAHstfySlt8RnrWBCFnWpE08ZsN0kzgqpK0W/0p1rP2B3ffEKyFL6vstxY2PLbzfhdlwHAGGDvnNZ4ZQLAemmcc+74xcnYUeieI9eshrLstv8SWR/MDZhKy+7hq6wj64= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739102859; c=relaxed/simple; bh=mrQhDEUAy9bpBI7w32R9V55ZsjnRFLW0WmEVeb+BEVA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KvZPxrCpUnwm+y3gWD0wHeriwZ5PLg2AzscZq++QmaJvwtFl1Om2lI4myFlMqwa/6Bl8FzLHAqHL5YCXHXR6ejgQNHy69HKQ/aIufLGenM0NbctJt4bPpDALopZbZmnKtuj244Z/0KIe2GDb85SLltvh506R2Xm73+4aw9HkSMI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PXUPYhJy; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PXUPYhJy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A959EC4CEDD; Sun, 9 Feb 2025 12:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1739102859; bh=mrQhDEUAy9bpBI7w32R9V55ZsjnRFLW0WmEVeb+BEVA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PXUPYhJyPMN1QBehL4R85/FZdnTscVQylL76tGS8317rddXUB6kVfhb5XXWT3F177 b3bY0TxIHpsXwOcXH8d21UsAXu0b1aZvSmAmf8ShGFeP7heWKT+6lgM5lXnC8sjJ/3 rSeqzs27+UwRuD+rquEAZYoHUL/7HYD+9cLz4RQ4xF+y9ECohD85N9dHujBUdLNuxE fnTYniz8UIfIq03ex1/fPHXV2gL6U99/DO/ZiuR2PKuvcjEeDFE64xJ8s1D9YTGzKz HYu9E8djCwJU9y1k9FClbDV2EXzjp+vYjBgVV2LUclmfbhIiAmbIqfS3/sRy/WtVs6 zk0GfTbI6BTuA== Date: Sun, 9 Feb 2025 13:07:36 +0100 From: Lorenzo Bianconi To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Felix Fietkau , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Chester A. Unal" , Daniel Golle , DENG Qingfang , Andrew Lunn , Vladimir Oltean Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, upstream@airoha.com, Christian Marangi Subject: Re: [PATCH net-next v2 00/15] Introduce flowtable hw offloading in airoha_eth driver Message-ID: References: <20250207-airoha-en7581-flowtable-offload-v2-0-3a2239692a67@kernel.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jJ2SWV1szSy2UBu3" Content-Disposition: inline In-Reply-To: <20250207-airoha-en7581-flowtable-offload-v2-0-3a2239692a67@kernel.org> --jJ2SWV1szSy2UBu3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Introduce netfilter flowtable integration in airoha_eth driver to > offload 5-tuple flower rules learned by the PPE module if the user > accelerates them using a nft configuration similar to the one reported > below: >=20 > table inet filter { > flowtable ft { > hook ingress priority filter > devices =3D { lan1, lan2, lan3, lan4, eth1 } > flags offload; > } > chain forward { > type filter hook forward priority filter; policy accept; > meta l4proto { tcp, udp } flow add @ft > } > } >=20 > Packet Processor Engine (PPE) module available on EN7581 SoC populates > the PPE table with 5-tuples flower rules learned from traffic forwarded > between the GDM ports connected to the Packet Switch Engine (PSE) module. > airoha_eth driver configures and collects data from the PPE module via a > Network Processor Unit (NPU) RISC-V module available on the EN7581 SoC. > Move airoha_eth driver in a dedicated folder > (drivers/net/ethernet/airoha). Please ignore this series, I spotted a couple of issues. I will post v3 soo= n. Regards, Lorenzo >=20 > --- > Changes in v2: > - Add airoha-npu document binding > - Enable Rx SPTAG on MT7530 dsa switch for EN7581 SoC. > - Fix warnings in airoha_npu_run_firmware() > - Fix sparse warnings > - Link to v1: https://lore.kernel.org/r/20250205-airoha-en7581-flowtable-= offload-v1-0-d362cfa97b01@kernel.org >=20 > --- > Lorenzo Bianconi (15): > net: airoha: Move airoha_eth driver in a dedicated folder > net: airoha: Move definitions in airoha_eth.h > net: airoha: Move reg/write utility routines in airoha_eth.h > net: airoha: Move register definitions in airoha_regs.h > net: airoha: Move DSA tag in DMA descriptor > net: dsa: mt7530: Enable Rx sptag for EN7581 SoC > net: airoha: Enable support for multiple net_devices > net: airoha: Move REG_GDM_FWD_CFG() initialization in airoha_dev_in= it() > net: airoha: Rename airoha_set_gdm_port_fwd_cfg() in airoha_set_vip= _for_gdm_port() > dt-bindings: arm: airoha: Add the NPU node for EN7581 SoC > dt-bindings: net: airoha: Add airoha,npu phandle property > net: airoha: Introduce PPE initialization via NPU > net: airoha: Introduce flowtable offload support > net: airoha: Add loopback support for GDM2 > net: airoha: Introduce PPE debugfs support >=20 > .../devicetree/bindings/arm/airoha,en7581-npu.yaml | 71 ++ > .../devicetree/bindings/net/airoha,en7581-eth.yaml | 10 + > drivers/net/dsa/mt7530.c | 5 + > drivers/net/dsa/mt7530.h | 4 + > drivers/net/ethernet/Kconfig | 2 + > drivers/net/ethernet/Makefile | 1 + > drivers/net/ethernet/airoha/Kconfig | 23 + > drivers/net/ethernet/airoha/Makefile | 9 + > .../net/ethernet/{mediatek =3D> airoha}/airoha_eth.c | 1261 +++++-------= -------- > drivers/net/ethernet/airoha/airoha_eth.h | 626 ++++++++++ > drivers/net/ethernet/airoha/airoha_npu.c | 501 ++++++++ > drivers/net/ethernet/airoha/airoha_ppe.c | 823 +++++++++++++ > drivers/net/ethernet/airoha/airoha_ppe_debugfs.c | 175 +++ > drivers/net/ethernet/airoha/airoha_regs.h | 793 ++++++++++++ > drivers/net/ethernet/mediatek/Kconfig | 8 - > drivers/net/ethernet/mediatek/Makefile | 1 - > 16 files changed, 3310 insertions(+), 1003 deletions(-) > --- > base-commit: 26db4dbb747813b5946aff31485873f071a10332 > change-id: 20250205-airoha-en7581-flowtable-offload-e3a11b3b34ad >=20 > Best regards, > --=20 > Lorenzo Bianconi >=20 --jJ2SWV1szSy2UBu3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCZ6iaiAAKCRA6cBh0uS2t rN4LAQDAr1GunH8bnfpjyai7bUPg8oqhBHj/K2KEpB2QdnUciAD/QS/hHVoQ1hGf SDi+CTuc9POv4dc6J0FYmcxb9/Vu5AA= =wIQ6 -----END PGP SIGNATURE----- --jJ2SWV1szSy2UBu3--