Article View: linux.kernel.netdev
Article #7821Re: [PATCH net v7] net: dsa: qca8k: preserve port state across MTU changes
From: Yongzhao Chen
Date: Tue, 27 Oct 2026 09:27
Date: Tue, 27 Oct 2026 09:27
26 lines
12239 bytes
12239 bytes
On Thu, 22 Oct 2026 16:03:36 +0000 netdev-bot+sinfo@kernel.org wrote: > - How the issue was discovered, e.g. hit in production, hit during > development, syzbot report, manual code inspection, LLM or static > analysis tool scan. The original problem was found during development, not in production. While preparing the net-next RFC v2 [1], which extended the CPU MAC pause in qca8k_port_change_mtu() to internal CPU ports, I asked an LLM agent for an adversarial review of that change. The review found that the existing sequence re-enables the port 0 and 6 MACs after phylink has taken the link down, and that phylink callbacks can run during the update. The problems fixed in v6 and v7 were reported by Sashiko on v5 and v6. I reproduced them, and the original problem with the unpatched code, in a userspace harness that compiles the driver and DSA MTU functions with mocked register access. None of them has been reproduced on hardware, and v7 has not been tested on hardware. Sashiko's review of v7 is a separate question and is still open. [1] https://lore.kernel.org/netdev/20260922202653.1153-1-yongzhao.derek@gmail.com/ Thanks, Yongzhao Chen
Technical Details
Message-ID:
<20261027092718.266370-1-yongzhao.derek@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352325-linux-kernel-netdev=dewy.ruReferences:
<20261022155837.760-1-yongzhao.derek@gmail.com> <179268501671.3290.6623232109527554630@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352325-linux-kernel-netdev=dewy.ru
From: yongzhao.derek@gmail.com (Yongzhao Chen)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v7] net: dsa: qca8k: preserve port state across MTU changes
Date: Tue, 27 Oct 2026 10:27:18 +0100
Organization: Usenet Network
Message-ID: <20261027092718.266370-1-yongzhao.derek@gmail.com>
References: <20261022155837.760-1-yongzhao.derek@gmail.com> <179268501671.3290.6623232109527554630@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1502606"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:IEPRKN7fgDlkUFEMnNgB41Tnbkk= sha256:BoTklkS+E/upFhvEPG0x4biO207I/tc5oG7keUlHE4Y=
sha1:egiliQ/HDbfZcjaMhNLxiumyzYA= sha256:fjitWe3AjuZxr5pzsXJ/cCDnYat1omtJqPCU9j4zVV8=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 0758B125BE6; Tue, 27 Oct 2026 12:27:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.148
X-Spam-Status: No, score=-3.148 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 1SCM4fCxxC62;
Tue, 27 Oct 2026 12:27:48 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-352325-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id B2752125BE0; Tue, 27 Oct 2026 12:27:39 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id 43E4E601C6D; Tue, 27 Oct 2026 09:27:32 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793093249;
b=iKFb9SrWkCVJLkFx4G8Qzb5jJg9BGDeE0tWHmK0zlRl5a/0m7bemm7/7Pq7awPFOcqik
5jxzSzkScbbUJUrF6A/GxIGpNyvVp4bi3Hflto2k82ryAzjVrSUVqJMNqk03P1P/qbsj6
ia0g2eq7rK8qXBOFbB+A3wMdh6FmyAIn9bDdf5Ouf1cWP3b54A4GHcmEOU0G+qqpkqY/N
0lQOmRZNgx2t8hIx5QEuLmrmQ+Tp8m9N9Ni9RcJkrx6udrYXhbuuSSkXw9qg6KOE2gJ7m
lDDtWMRLILW85ggCLgFZYW5UdKbsd338+vSYj7eAt8IfUNSHJrsQs3TPJz0wtxDdU3A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793093249;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=NO/PULJuoH8GueUl87hWZsGj557aWTq0iq+P8FZEMew=;
b=xM5DSMYSZON3+sVhERPPrN2lWnoSFumqSnicMKwpM8841liUOuSBPkdY/xo1GDGBI5s7
oj26Pb0ArOhKcEfduwkJ/vSZ2IeSchEB/ylqyoQ6Fwdfo2kNrETfX1ydVsu49S1EvRxme
x7E+rt2Gy2+7jdDB00uyiH9qcrwpW9dmMSNMtY8LD7ZVNc6QwlP86d5ht0RBTQGu7bE0e
EO7um25fzXs2U/2GIIDmbvyBQiGPlhb7d2gVhcLYZOhPEey09WZrQEDaNpLRij4I4xJTO
Z8YxM7nOfusYAoPAIOAVKtKx++mF/tB57dABuNFXTS8n5TqtJQuGSzw4wjrDGlj0hhQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b="rtA7yWz/";
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D8AB606A32E;
Tue, 27 Oct 2026 09:27:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=rtA7yWz/
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.50
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793093248;
b=nXK3AKXPN9+csaTrML2Ej1CVTiLTbefykU97/UFzVrCfETHq9klcl3gAYIXPbm3KRXsJ
IupeYyXyNTtN3/hNZaSUFWK9mgAAa2bCjuJfDtlzQkZuH+N0EdMi0DJTrXyGXkvZm8es1
Cd86Gui0srIdDCEl+R/LJOcjxRiO5iO3e/ekRvDqwvwRCM0EattYxYy9DhclaloyghgvT
q7yB8p2UbGVnLKWQ1P6xxr5BxO9j4FNNGQ1Oft/EA+m796C0E0mZttBUee4+4UR2/Lt15
/v0+aGEPdDEIaJRuwgWK3QIYCT9OP6bWMCHVAio8gaAAScAf3648O3HMxGnGOIw21RQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793093248;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=NO/PULJuoH8GueUl87hWZsGj557aWTq0iq+P8FZEMew=;
b=CmGeS09EQ8Rj8mv/9yqa6Bo7ZsiYKu1CApA1cKHkeFS5bpiK4w/pIuLtcg/DG/QJnky8
fbSnGpm7Ukwa2X7rDtWBOsmEUq8iGZea3CUCl4AqFbHziI53/9H/HBCTQ1HObQa39J0+L
cjNYzfnVkGAOy0UybayytqW52DrIqyhevGzt1rHJxKafSj7fmWl2bj3yNpxlAI9DPuUp5
iBRBlgzALqQHokyKS2zrv/Ps/t0dL41Khr/3eP97nxk0VuKmJ0zcdfjAEg7wrFuoKI6KB
fzpdw0kEjJJFM62pGp0UZQQN+jYqz6px+GIAAoFXH5CHBnBUg1kcCEanK6KIUttmVwg==
X-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=20251104 header.b="rtA7yWz/";
arc=none smtp.remote-ip=209.85.218.50
X-Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50])
(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 34683606A328
for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 09:27:28 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 34683606A328
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-c46d41f6af3so311663866b.1
for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 02:27:28 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1793093246; x=1793698046; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=NO/PULJuoH8GueUl87hWZsGj557aWTq0iq+P8FZEMew=;
b=rtA7yWz/OJQELSB1HmzDG3zKW06pzYRIBoQhVr9HylKEpl/8BpK2yi87g1x16ip+Pi
fL7L7LTZU/P+LP6tqSBF2kn+T3PkbIfav6AB+p7jJfqohB07r1R3PbJj+iHSDOfA2lkC
Zo98+IGjED3QcvcZfTPyx9AkDAhssqZbALgRPWpyzhQ5XfYz/54hiiM5bcbgRREcz91j
r1fmiKeQgLmKHQGkRW90lyoG1oL9Fby0BbWxiRMH8PoasiIzLMc5HTazYLRzyjMDVEYa
m4F2fy6M9vyjirx33RfXRrSwve2RUm0QyLdHG+qFq6/zklsWGKJZJvNL6FZccBRQL9up
L6eQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793093246; x=1793698046;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=NO/PULJuoH8GueUl87hWZsGj557aWTq0iq+P8FZEMew=;
b=thLy3jh0aqWTfRCIGDFKsxr82CvP+jqcVRLXW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HJYmACzMkuFaio1tMzuNUPfic0tbtBXKrmAP6YB
jhkMWiw==
X-Received: by 2002:a17:907:3fa6:b0:c41:f29:72b1 with SMTP id a640c23a62f3a-c46bdeba202mr1042190766b.47.1793093246326;
Tue, 27 Oct 2026 02:27:26 -0700 (PDT)
X-Received: from CCM-PC (83-233-221-133.cust.bredband2.com. [83.233.221.133])
by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c46bd7984f5sm417942766b.77.2026.10.27.02.27.24
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 27 Oct 2026 02:27:25 -0700 (PDT)
X-Cc: netdev@vger.kernel.org,
Christian Marangi <ansuelsmth@gmail.com>,
Andrew Lunn <andrew@lunn.ch>,
Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
Russell King <linux@armlinux.org.uk>,
Florian Fainelli <florian.fainelli@broadcom.com>,
linux-kernel@vger.kernel.org,
Ziyang Huang <hzyitc@outlook.com>
X-Mailer: git-send-email 2.55.0.windows.5
X-In-Reply-To: <179268501671.3290.6623232109527554630@kernel.org>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list