From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795643750; b=jK3TvxNnrIkEM8r+o61t/+T4luLT9dz1GBlthspFfH5P7J4wBBLGCalRJGJI2XSiWkIL 5cozvXp8Zi4AMpRQr+Mi3ShyccNOZmH32z1KhKKtLXpr2plnCugOYtJ+TsVnRIRgxp/rP aor91JscCdyfSfkXkT1iDx0N2JpBg/AsJdDvju/xb4RHFMZ71AQ6wKz7t7o72gDmbAxcu 08S467ZzCNOklTMKQU5xj72Kitaihlv/QWMEaJnd7pTbDTA6eMkEUwbY1dF6OwWc9IybD wmfjMVoqX6iSEHxZP5/833BpGzrrh5GYIeHK96avVrBO9L2fJZ5AHaWzeWPHpCnNYlw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795643750; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: Content-Transfer-Encoding:MIME-Version:Content-Type; bh=r/GY1L0M/Jj/tnpXLztwrdoGc8kg+51R6Plf4ICZ1dQ=; b=xr++5acdhkIgt/ZV7lxbV5JgeyzAl1f1TCPO4d8gL264sNFF7BM3+yH4te01te+kV74T +cG1AKPwFEZDjX5tet35Q06AWqmX5kcFKB6avngAlLV6grGXgRT0x7kcxNTfd00U8UT8W WYrT0cka3MS6w6Ofj9ClSqgVUdNlojUbPbkWsJBa9wdehk1JXxKrOEziRbyebOMrYhiKt xDoCIIFRW2a7nm4QGK8M1esbkpPawclqB2Ubg0X4pns+4X3lF8RCdZrSwqZMc3+FqjNu0 kULYwuzrGrInmPKzsDlyoAee25SIFylnKeYSeELs92+uCbxpYqCARDjcHXVwITaMm/A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="R9/rbOd1"; arc=none smtp.remote-ip=209.85.221.51 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0EEA606A327 for ; Wed, 25 Nov 2026 21:55:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A0EEA606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=R9/rbOd1 Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-490c3ae81d3so3970403f8f.2 for ; Wed, 25 Nov 2026 13:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795643748; x=1796248548; darn=vger.kernel.org; h=content-type:mime-version:content-transfer-encoding:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=r/GY1L0M/Jj/tnpXLztwrdoGc8kg+51R6Plf4ICZ1dQ=; b=R9/rbOd1mzzJwriho6oqu3CgC7K1wSlhXe9zeuBxmFvrEDJLsbJoEnk8sCgoc6cYsC 5EALMtdGI5m13pWRUFyc9uNG9bQEXiDQGldI/blAVQj5EuXkESLqrcf7obe0PPkPb6lc jrR7ca1lWajN38Yu8/44Puy170gP+ANH29Qvz49gu8S/jVkfvocflfkB4V/Jd5CVvaBI rfK4//0M452A+GFovixi5kSLnULRU1gFXDdt2Zm0ATaGwbNuf26MuQ4VIg+AfgJ3b8H8 YlhboLSrWvXvSrSKb1xIUjsVCol3049mQf32029TwiC9KjNK9iegXnvepXPp6kEHvk42 HPPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795643748; x=1796248548; h=content-type:mime-version:content-transfer-encoding:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=r/GY1L0M/Jj/tnpXLztwrdoGc8kg+51R6Plf4ICZ1dQ=; b=19G22qYPuUMF+ytZIqeIWCnzrRimgOXuDI7tld6BwcpUiPr7uqxkaYodvDqMpiDNRM AUNh75yYGvMkFvu9sxTT805Z6f/JRWdGXmG+s/8aUUI2hM3QBpEBtq4WsOBby2xVj6vM 34q966JnMknvogcKdTiyBcIbgS5nORYNeB6ED4hiEozt2NB6jV84LB9fnbhczMxn+nRx ByVbuq3EFTCpKhsBDQggkpuadDDOPhUpGinCgF9rB4IkPc+Bf7LejwA5zN9Gn3VR5DDo oDhYwUEwuVaiea/tChweJyc3rDUMNJjIH7zYu9MzMmcxs01GJAc48rDV5/u0YmjzTul/ vdAA== X-Forwarded-Encrypted: i=1; AL+hErFF6+ULs2g4QYNntzVun4V+yhuFAUmKiaaXPXn2pELOHO0HRQesDraeiKZhdAKclBS+ZSuT29a5UF0SKKc=@vger.kernel.org X-Gm-Message-State: APuU4Z9omX4tHN52SOhuNGQ4vOrWgltfFnAt/pWo4CXziw0VUPLxjvIb CFd7W3mQpZTd5SNiatFYRMXTQ4h/D1aRO5PUFKydMWVmAxodo9HMRlHA X-Gm-Gg: AZFdTZf1Wm5Ord/GsGgCrII+WQwR35bsZ9s8K4RSLQQMKDY1E4FMGj4ZLat9BJ8UVPb jQySXUVAR4IltcnTFxP+JFohdGSJsLDoXMkV7M6G5xbvtv3bSzEIC2/UViEQOEJLx7ikNk3FK8g 1cV10cy+Ghmf3DKl5AoYW1bSAuyy6bc0vLOnTWGlihRADkK3SpW2ZIrLUmfRT9B7EXdrayBQKJh XfqCfhGFA4u1xKr5dTtehaVzaCRaHYoBRKI+1PfRgPg5cTCzHeG4NZaVgeJoUIpvYce/zATVDeA pufnEbc8mD91H4u9HhWiYuyh14ZMNPX4zm5VO03Rs9SCSrIEU/aeuL5WixCqx9C7w1eh5UFi7YH LzidpQt0HVbyWYuDS6WMC0RVELITe/rd6bVazPOTguyefnf0THsRouQBZCBVT+Ktskz3/PXeqJ/ NQYsbnQIcEDiDCvdIF8KovbmCDkZ4f95SN4GyuRx5TiGJuuVq0coco5aIQA1sSFuAJYfKLHfcts Agli9wsI6f9XQS9R+1OWzjp7hinJpkKLuX2O5RRbIHqOdjfRRVdTHv0FwWYNP+m+Kn8KDiBP4Hp ZWPcaR+QobJt17GFGCNO4plko1G+eVc/GtNCS8EflqN8imhBq/3zm6Q= X-Received: by 2002:a05:600c:8b11:b0:4a1:dda8:eb73 with SMTP id 5b1f17b1804b1-4bb8881c630mr403408355e9.27.1795643747772; Wed, 25 Nov 2026 13:55:47 -0800 (PST) Received: from [127.0.1.1] (ip-024-180.users.dtel.ru. [91.210.24.180]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb884865a2sm566394855e9.3.2026.11.25.13.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 13:55:46 -0800 (PST) From: Fil Dunsky To: Andrew Lunn Cc: Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Simon Horman , Pablo Neira Ayuso , Florian Westphal , Phil Sutter , Hans Ulli Kroll , Linus Walleij , Russell King , Christian Marangi , Jonathan Corbet , Shuah Khan , Randy Dunlap , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org Subject: Re: [PATCH RFC net-next 0/7] net: cortina: CS7542 wired IPv4 hardware flowtable offload In-Reply-To: <7252b836-e375-4550-90c9-b0e3ab7fbb6d@lunn.ch> References: <20261125-almondplus-offload-rfc-v1-0-703175c6340c@gmail.com> <7252b836-e375-4550-90c9-b0e3ab7fbb6d@lunn.ch> Date: Thu, 26 Nov 2026 00:55:27 +0300 Message-ID: <179564372798.5.10006827612276789857@gmail.com> Content-Transfer-Encoding: 8bit X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format="fixed" Hi Andrew, This is the first standalone offload RFC, v1. The prerequisite CPU-only Ethernet series is v2; this RFC does not replace that series. I should have made the relationship and architecture much clearer. The next revision will carry an explicit v2 and a changelog. There are two separate chips on Almond+: LAN1..4, WAN | QCA8337 external switch (existing qca8k DSA driver) | CPU port 0 | CPU port 6 | RGMII | RGMII v v CS7542 GMAC1 (eth1) CS7542 GMAC0 (eth0) \ / CS7542 network/forwarding engine and shared DMA | CPU The proposed CS7542 Ethernet driver exposes two full Ethernet netdevs, eth1 and eth0, despite sharing the DMA engine. Those are the conduits for the external QCA8337. I am not modelling the CS7542 forwarding engine itself as another DSA switch. The CPU receive path is QCA8337 -> RGMII -> CS7542 DMA -> eth1/eth0 -> DSA tagger -> lanN/wan. Transmit follows the reverse path. Ordinary L2 switching remains the existing QCA8337 driver's responsibility. The accelerated routed IPv4 path in this RFC is QCA8337 -> GMAC1 -> CS7542 FE lookup/NAT rewrite -> GMAC1 -> QCA8337 destination port. It bypasses the CPU DMA path. The frontend accepts standard nftables hardware flowtable requests through TC_SETUP_FT; it is not a new L2 switchdev implementation. This explains the QCA changes in patch 5: its optional four-byte CPU header adds an identifier before the normal QCA metadata. With the identifier set to 0x8100, the CS7542 FE parser can locate the inner IPv4 header. It cannot do that with the ordinary two-byte QCA header. The new tagger therefore describes the external switch's wire format, not a DSA interface inside CS7542. Header length is global to QCA8337, so both CPU ports must agree, although the present accelerated path uses only CPU port 0/GMAC1. Management uses MDIO in this mode. Your patch-2 comment is also correct: the unrelated blank-line changes in include/net/dsa.h were my mistake. I have removed them locally; only the two protocol-ID additions remain. No replacement series is being sent while this discussion is ongoing. Thanks, Fil