From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795643749; b=byMociXqShy28ZgLJjNaHVcy01bknMz6ud29+Jb0h4CuTCtJ1Qo/XKmq32ynRMm3WnFc ge7lp2oyAjNLm7yBJwPKAZos8Fw7fS9pAHfRoJj6rZFpMXgtJFBZlSoh73/MWlnH2Os1D 3aSdJXAuW+ZGMU0xcwq/9cuwVv1vNgNmfrpulfX9TDHlhBlliogqkIm5w2rtGmzVEmtMV gx1WFoPjLBN+M5XvwpQTrADKpE5oMTYSpR8+aJj35XVO00Esf5OSGtmy33UOlxbprNNfV sowYotjl1u8BB2FpIe43ja1/k7jBl6NbPLZVsESOjDxnISlZ4YurWkXlsxJTK+xAWMA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795643749; 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=DPB01DJf9F6/zyXPO0A0xIs3XSYBIW6WbpJ+r0VJPp+/1UVOJsBJt+wLFuWNJLh2Uq40 88ierSW3WyamEvUxkWy8XXGUNa8Ic+M/WHQdEejNF9C2Ox1rTuwGV0uLUxJvcIWj7ycTW C2WpevsiJmJ03oDHXfmXp6reP7YoFGYbWauIKvf+eGxjZ0uoU+2sbTkxf9hUX+rG62l1g VXRj3hQy3BiktcX8r1uVmibWZEzcslMOuyrv57WDmKoOnQ5GJg9FsDiI2AWUyjgKup/UW BmOYs/Gsr6hSmpHS1AEQBt8JwGSDEwKhObYGudZ8UpXpJ8Q+FlLsbNr9vwV0qDlf4Wg== 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.52 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 94B06606A323 for ; Wed, 25 Nov 2026 21:55:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 94B06606A323 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-f52.google.com with SMTP id ffacd0b85a97d-4ac109a8a12so3704158f8f.3 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=saHfxj0hRM7bfSmrsPeT9fT9eo2eMGfUzB8tkKsW5Zu21jRGIIZyobNnK/e+YAzoF5 Y9csaYA2VsaWTL0rJI8RBZC0jQTgTPxLadxk3T49Meuu0tXwkRBW/tjI2fxpUxCbg7sk hbwe+d9hJ+Zcd1f/Tb47LjNFO8+EwcKg0MF7A4xpJfl6iohqil93W48jcfxj39OeQWwy f8CnzZVa0me9pSVXjzNZOfkgRvV36ZB//zqqr5C3VEj9nhkI/k2HYkMPpUjXZoGgc7DU ALQiMvomRv4Mt0V+bKj3qhmHBfRSylsOpnN5jdjwDssgg0soBxPqjlNNg6MRFRPoTLf2 ZHFg== X-Forwarded-Encrypted: i=1; AL+hErHvnOWwMUvKo8FG6Dx4KnagYDQzXcxDuhrYI1A1bygEcaIiab4adurZeauFdlEx2Aw5qL3npAQDWQWZ@vger.kernel.org X-Gm-Message-State: APuU4Z8R9hzNZKlWo5cg156Mp77VsR+yMW9kOONDoau5/vE5RD6bxkDq 4Is7fCPvBm0brp0cQ5roKlGpaETo19P8Lq+q6uL1IRWFetxDM7WkaVUk X-Gm-Gg: AZFdTZdBelYZWG8CJLUsrGRZxfikez2uakeGd81BAUAVKu2pl06qJtdL6yVBGsi0eri 24gjjmvYjVth+7FJ5Smi/IOcLTj8EQ/JLlt/EZx5+E3/FiZqm2jiY4cbibW5/PkdXdcgr4JGIWE 7ND1PpHrsAm8GBM95pFEiX5iCu4UBexZBItb85OkaZ8CFOHUKuCpy2A6bpBK5nqmTnYaf24zuRB aoFL8hl65sE0rOC13hNn0WDQDxDHBJxIA8cVEsZlH/ZDHoU9S7/VvBLVaA+7cXtG7uNQTKI9DP6 1G4kPV8PkZAe925gG0hEWT6sj/0HaAPai75ftYV51n+OYpDCvXKeDiNdMdoauFywGi0Nfg4wESM cUdVwu6uZ430qm1L+iIDHBOHKI25zth8d+5RHEQV8Lj3QkaEUdRx8A1UBDf0C+Y67lCZtgn7E5a Kp4RUmjMYLiT53ocG7dTeKa87F5jr2316yMRDkaTVkAKCU6nxVBjhtwguOeBrstHG2szVbcE76H oRP2PBgVWTSkbmh/6hTcTuwltuslbTD27KNZwEc1z0n6xgwn7O1i8vN8RE6Kb+5QYnoQNka3RFc UX/xJEyDvmEo19xZxeglDv/59mXiyug82fhR+YsmCHKcYMKjDMD83mo= 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: devicetree@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