Article View: linux.kernel.netdev
Article #6518Re: [PATCH net v6] net: dsa: qca8k: preserve port state across MTU changes
From: Yongzhao Chen
Date: Thu, 22 Oct 2026 15:59
Date: Thu, 22 Oct 2026 15:59
31 lines
12207 bytes
12207 bytes
On Thu, 22 Oct 2026 08:37:21 +0000 netdev-bot+sashiko@kernel.org wrote: > Can this write bits outside of mask into PORT_STATUS? Yes. The qca8k regmap passes the raw value to its update_bits callbacks, which OR write_val without masking it. My previous register model applied val & mask and hid this difference. v7 passes port_status_value[port] & mask for partial updates. > If ports 0 and 6 are both CPU ports, can qca8k_port_change_mtu() return > an error after the frame size has already been committed? Yes. My previous test called the driver once per MTU change instead of going through dsa_switch_mtu(), which calls it for every CPU port. v7 records the committed frame size and returns success for a repeated request with the same value, so the second CPU port cannot reject the first port's commit. The NULL PHY call in qca8k_port_enable() is already present in the v6 base. From the source, a user port without an attached PHY reaches it, but I found no in-tree qca8k DTS with such a user port. It is independent of this MTU change, so v7 leaves it alone. If it is fixed later, dropping the call looks better than a NULL check: phylink_bringup_phy() already calls phy_support_asym_pause() for every PHY it attaches. v7: https://lore.kernel.org/netdev/20261022155837.760-1-yongzhao.derek@gmail.com/ Yongzhao Chen pw-bot: cr
Technical Details
Message-ID:
<20261022155904.1051-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-350675-linux-kernel-netdev=dewy.ruReferences:
<20261019173716.198475-1-yongzhao.derek@gmail.com> <179265824122.3135.15072303811434404600@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-350675-linux-kernel-netdev=dewy.ru
From: yongzhao.derek@gmail.com (Yongzhao Chen)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v6] net: dsa: qca8k: preserve port state across MTU changes
Date: Thu, 22 Oct 2026 17:59:04 +0200
Organization: Usenet Network
Message-ID: <20261022155904.1051-1-yongzhao.derek@gmail.com>
References: <20261019173716.198475-1-yongzhao.derek@gmail.com> <179265824122.3135.15072303811434404600@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="249868"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:EOhjijcPVhSPsUN+Y+Fh0AtWExo= sha256:s39DYDZ2YmAF0x3xcNoy0EurDJB1H8/x/9TlPKqz7QY=
sha1:PO6O+d5hkN8AcLDusZAG6X2PDxY= sha256:Hvii4QwJpqexR7CeZ6s7OgNHKM/ob8VEQaZhMROcNzE=
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 D7A7E1112E9; Thu, 22 Oct 2026 18:59:38 +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 GWZhWlItj33a;
Thu, 22 Oct 2026 18:59:35 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-350675-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 ACD77111277; Thu, 22 Oct 2026 18:59:26 +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 60F4A60C176; Thu, 22 Oct 2026 15:59:21 +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=1792684761;
b=vJb6z/0xPXh6f4KhfJQ3u1NoAm/iXmccEVSfT9XpzVgHNFO5t1wiNw9M0C0HVNzNeFt9
84H1bANAmQ7ngVnMyZS9NJYAr6NLT9XcGt6ikWHG2D7kvD+yU121WaHeSQu13Am6J9VW2
Un1IYf5sam6B+0KjaXW2jshYQjy4RgET4vS65w/YjpxPG95nYZP5U2TutCWnas0anU5Uy
TsGY8uWPNC/V9blidJI9YWJbprczmBtMjKScUjWtcpcsW9VwlsadJti5LpNLrv/mXAdXO
Z+H3eue8pwI/MRMOq24xAzs8ql/e/jLKIw4NHKY3uS210zA1soqmT0ooSRNLKl3CLVg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792684761;
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=QMSzQrmHSICMNQh4Od8RtudzCGPsNDtxQcd253kx/Jo=;
b=drWV10tNfez6RR/ejcbHSfUByqek4ztzr2KTMQ5qWZq+YlnIX7WMdDxGumxwfsROOrW6
Ck8STXnO7fr41J+ATdmP6jJF2/P0arykviDAdAxKwvWqwY9L60NEKTIShlTr9OQbqMA4K
c22bc9rXYJeb65uPqAnw9UOKWJwNnz2Ft0sXeNtJkc/SG2Sdk6YY/Z26U6QCgZIGMISzF
8z8E9FcwE/ovywzbPvEBofffsqKAwaCVlhyrb1VM9/SONMq1r+elRk0euhhA+JTC5u/uh
MP2qOf1tsFHutJCR9Phq25fCJmTu4XllRMFSS9Pmj7Wo3c9qh30mb6zyULrTK2D09bQ==
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=gDWql9zc;
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 05514606A31E;
Thu, 22 Oct 2026 15:59:21 +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=gDWql9zc
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.44
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1792684750;
b=zZFvgc1tu6vRDQz+YgCNKdroTdZuhNb5glnju1xd2xHzgh8qloO2hD7xEWosD91c+jJj
4IfPiAJMOUlAhyMrAwWyXXS/+HM59GNwjiqWer39juwlBuFqWJkmFK3xzpmzRsxD8XOxa
KaRjiJpI6GHlti/aiu5sYhz4/6uIDea8MGPHB3sSkW8s+LjBiJf0Oldz725rw8E5s9Xff
iI6+cAkIBptlObyVZmiz/bUt40jgP2p8LoORdfp832OTJAtp22uB0TMU0jrs15mIH5WSB
bVZmpYzseqJq4EVy5tZIl+hzpwUz2AFYcmKZYEyWRcbwzpsqwXX50xtA1raSoRCNiCg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792684750;
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=QMSzQrmHSICMNQh4Od8RtudzCGPsNDtxQcd253kx/Jo=;
b=nSDDY4h8Z/8hKkqDDo0PUgDdEbES7PZKwrlVEctDoqLAHJhfDE4OaAMQBVnFBukz82z2
eB0b20XhgjzCasGP7pYp20HFfUj/8LsY3/ETHARkGmAlu7/OkuNAOl+akqjI9r2xp6X9i
9LrCBx6s+ot1o4ZxHLLoRAKb6XnKCIDgwBqY4ZYCKGfZ7wZoULiIbUKYXWXxeocsasNt7
FiOdCvt0VsGSXlPj/b4NxMNlzJq5TbrlJkP/Tp6VmQPsZm0hGOLdUqvgT7x/3l8Tbn8Xg
yu2NEc5v8lMjnRW3Nw+bZJARHDk3ZXM2/dbPuQRtKgaEsvWeM75xdZSa5KXnqhPUdKw==
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=gDWql9zc;
arc=none smtp.remote-ip=209.85.218.44
X-Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44])
(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 CF77B606A31A
for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 15:59:09 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CF77B606A31A
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-f44.google.com with SMTP id a640c23a62f3a-c414e5d282eso260472966b.1
for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 08:59:09 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792684748; x=1793289548; 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=QMSzQrmHSICMNQh4Od8RtudzCGPsNDtxQcd253kx/Jo=;
b=gDWql9zcjh56bB0LpnoDFMcZwYXzDCFfs8++ZvvTqzvOOobfBPTv37W1Pg+49Bs5ky
q/sbHpvuGOX3y1HQR85kykNPYYBbd0WWgCkbNHuYIbyZqwTiebt3fu1x7t58v2aLWbGP
OkUr8EMRhzFBYCee437t9LWihnVZsG8Zu+nYAqJpfjI/AbbznC7lKcfKknYjgnmuB63o
qASlzfXqvUsHHjoOrnKs+figw1lZVy+KA2NIqAANTk+5ZMeflDb++2Wn11TtJxD2T+oH
tNm87MM1loHbUIsVHCP+CuvrK/dL2a/ys0Gmpt3bq4OgBhT1qIa2MV51JMGzc2idjRuQ
6q9Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792684748; x=1793289548;
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=QMSzQrmHSICMNQh4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Xx0fbGbHpdzWbOmB4wp1hzxl7Y5UC91Mw388rIwN4VXZvil
/rPlhV6sflkf5P4gWOg7wDCOZi9KpWbbm8jHhDqcZdd4/uXTUQ1vqtnyKA==
X-Received: by 2002:a17:907:9693:b0:c42:9ded:6a8a with SMTP id a640c23a62f3a-c46795f0e10mr599649466b.16.1792684748139;
Thu, 22 Oct 2026 08:59:08 -0700 (PDT)
X-Received: from CCM-PC (31-208-243-52.cust.bredband2.com. [31.208.243.52])
by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6b4030db05esm2020088a12.10.2026.10.22.08.59.07
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 22 Oct 2026 08:59:07 -0700 (PDT)
X-Cc: netdev@vger.kernel.org,
ansuelsmth@gmail.com,
andrew@lunn.ch,
olteanv@gmail.com,
davem@davemloft.net,
edumazet@kernel.org,
kuba@kernel.org,
pabeni@redhat.com,
horms@kernel.org,
linux@armlinux.org.uk,
florian.fainelli@broadcom.com,
linux-kernel@vger.kernel.org,
hzyitc@outlook.com
X-Mailer: git-send-email 2.55.0.windows.5
X-In-Reply-To: <179265824122.3135.15072303811434404600@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