Article View: linux.kernel.netdev
Article #2559Re: [PATCH net-next v4 5/9] net: dsa: realtek: rtl8365mb: set and get vlan 4k for family D
From: netdev-bot+sashiko
Date: Tue, 13 Oct 2026 01:08
Date: Tue, 13 Oct 2026 01:08
47 lines
7458 bytes
7458 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] Commit message wording (rejected by baseline, kept only because
requires_validation=true).
--
net: dsa: realtek: rtl8365mb: set and get vlan 4k for family D
The commit gives family D its own two-word CVLAN (VLAN4k) table layout
in rtl8365mb_vlan_4k_read() and rtl8365mb_vlan_4k_write(). It narrows
FID to 2 bits and drops the priority/meter fields. It also forces both
the IVL_EN and SVLAN_CHK_IVL_SVL bits to 1 on write.
> Reusing the three-word family C layout unconditionally means the third
> word is read from and written back to the register that holds it on
> family C, but does not exist as a distinct table word on family D's
> die; whatever data happens to be there gets folded into member/untag
> bits [10:8] on read, and re-written on every read-modify-write cycle
> in rtl8365mb_vlan_4k_port_set(). Give family D its own two-word
> pack/unpack instead.
[Severity: Low]
This isn't a bug, but could this paragraph say that the new path can't
run yet at this commit?
Every entry in rtl8365mb_chip_infos is still tagged RTL8365MB_FAMILY_C,
and rtl8365mb_detect() only matches entries in that table. So
rtl8365mb_get_family() never returns RTL8365MB_FAMILY_D here, and this
check is always false:
bool is_d = rtl8365mb_get_family(priv) == RTL8365MB_FAMILY_D;
The first FAMILY_D chip entry appears later, in "add support for
RTL8367S-VB". Until then, the is_d branches in rtl8365mb_vlan_4k_read()
and rtl8365mb_vlan_4k_write() are unreachable.
Would a short note on this help readers who see the paragraph above and
take it as a description of current runtime behavior?
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/38872e6f-1264-4a93-9f81-8212173e909d%40yahoo.com
Technical Details
Message-ID:
<179185371034.434549.16480732640712379008@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345296-linux-kernel-netdev=dewy.ruReferences:
<41c9a735-0688-4932-b0b2-5c41ecbc6699@yahoo.com>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-345296-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v4 5/9] net: dsa: realtek: rtl8365mb: set and get vlan 4k for family D Date: Tue, 13 Oct 2026 01:08:30 +0000 Organization: Usenet Network Message-ID: <179185371034.434549.16480732640712379008@kernel.org> References: <41c9a735-0688-4932-b0b2-5c41ecbc6699@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1926828"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:mxvYaIwtpxWIP4JBenAnEIFARxI= sha256:YhgCp3WRmTt3rYT1KXnHz1vGHi2STdMkvmi4dkKsAks= sha1:VFebl+JXGng3f7q2jExxR3aXmB4= sha256:tDCiKGu8Z48Tbnr0iTnKHH6mnnKibA815I8rrsp3Q6g= 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 8780410FD1D; Tue, 13 Oct 2026 04:09:58 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.341 X-Spam-Status: No, score=-1.341 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, 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=kernel.org 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 pobx2dBKwE6r; Tue, 13 Oct 2026 04:09:55 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-345296-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id E08C710FD10; Tue, 13 Oct 2026 04:09:46 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 2CDD241868; Tue, 13 Oct 2026 01:08:36 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8A483AA187; Tue, 13 Oct 2026 01:08:32 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nOz0RqKX" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 D3CAD3A4F59; Tue, 13 Oct 2026 01:08:31 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791853712; cv=none; b=PPYV1/1dgfa7R7ybPPBwZMo35ZFUERUrKPESI+btgr/mkbuoGLrW3ZGEM+pqe7P1om2Vsml4o2RnAmAZZmCrncGduGApWQGqDKf9/DxKtFxj2X4aBuqP+ITiKdV1HXBmmWDRDiUWuBzZiUOkQNSuhXkdXYBcK+o3zNvJ3PXhDrI= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791853712; c=relaxed/simple; bh=gxjU/RnF0q3ICy1bTrxkSG4Q5ildQjm/HjTjw8/QTdI=; h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=M26a0+JAb8Ft0OpMAod8pN4xMoT58Yvs7nWCM1xxu2cglTqyfmN8pom4V3aJfQAWGCAC3haA3w7KEi2PYguZAtCwtzOXXz1XrNmbfZ+weBOn8tt6H91jKnVL9l5r3JKLduX+WtC2dCeLlLDy5Ylwqsm3hMEcfW2ZIna1FcBkbGM= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nOz0RqKX; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C17F51F0089B; Tue, 13 Oct 2026 01:08:30 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791853711; bh=bHuMvOZYevM2t7cStzoFw2qPkoYHwdIC/BbBUiGqwag=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=nOz0RqKXrqpFklEXlDWHwYtKYlJc4D5RyJc/39zeMZzkzMvbR9UoKp5X2GUBolzIk 5GGTythflUcazjVsXsEJY2Pi7urUPHHwxLOlk7tfljYuk/zBKGj4XviEmcIZqyY/kL kBTPHcKr7AznoDNv2OPI3bdOSIl8TEdJI11k2vRjKFILvfEmQl0y+RQyP6T4SLDc9j AlGbqTTzh6n4rJ+r3K/47vc/1sqo56ykqgmkhjcKe3Y9fAtQLYoDVC54w8pHq48NG6 5HxbKCx0sfmpz5QpORCHd7Kuk91pQwfxeM3Eqpjdw6O4AuXTYCk3znYR4fB7UfBkES +ijRCcMnZVSKg== X-Cc: linusw@kernel.org, andrew@lunn.ch, olteanv@gmail.com, kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, linux@armlinux.org.uk, luizluca@gmail.com, maxime.chevallier@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <41c9a735-0688-4932-b0b2-5c41ecbc6699@yahoo.com> X-sashiko-severity: Low X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>