πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25468

Re: [PATCH net-next v17 09/15] net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D

#25468
From: netdev-bot+sashiko
Date: Tue, 01 Dec 2026 21:22
60 lines
10505 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] The commit message of "net: dsa: realtek: rtl8365mb: use raw VID
  for PVID on family D" gives the wrong reason for the linkage of the…

--

net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D

This commit adds family D versions of the PVID helpers. On family D the
PVID is a raw 12-bit VID in a per-port register, so these helpers do not
use the VLAN MC table. It also clears the family D PVID registers in
rtl8365mb_vlan_setup() through a new vlan_port_reset_pvid hook.

> Nothing points to the new functions until the family D info is added
> together with the chip table entry in the last patch. Until then they are
> not static and are declared in rtl8365mb_vlan.h, so that the build does
> not warn about unused functions.

[Severity: Low]

This isn't a bug, but is the reason given here accurate?

The helpers are defined in rtl8365mb_vlan.c:

  rtl8365mb_d_vlan_port_get_pvid()
  rtl8365mb_d_vlan_port_reset_pvid()
  rtl8365mb_d_vlan_pvid_port_set()
  rtl8365mb_d_vlan_pvid_port_clear()

The struct rtl8365mb_family_info tables that point to them are in
rtl8365mb_main.c. Those references cross files, so the helpers must be
non-static and declared in rtl8365mb_vlan.h for the driver to link. That
holds whether or not anything uses them yet.

The family C helpers already work this way:

drivers/net/dsa/realtek/rtl8365mb_main.c:rtl8365mb_family_c
	.vlan_port_get_pvid = rtl8365mb_c_vlan_port_get_pvid,
	.vlan_port_reset_pvid = rtl8365mb_c_vlan_port_reset_pvid,
	.vlan_pvid_port_set = rtl8365mb_c_vlan_pvid_port_set,
	.vlan_pvid_port_clear = rtl8365mb_c_vlan_pvid_port_clear,

The series ends with "net: dsa: realtek: rtl8365mb: add support for
RTL8367S-VB". After that patch, rtl8365mb_family_d in rtl8365mb_main.c
points to the rtl8365mb_d_* helpers in the same way. The helpers are
still non-static and still declared in rtl8365mb_vlan.h.

The "Until then" wording suggests the arrangement is temporary and that
the helpers will become static later. Could the commit message say
instead that the helpers are declared in rtl8365mb_vlan.h because the
family info tables in rtl8365mb_main.c reference them?

-- 
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/236d002f-5ca5-4f12-bf5b-0ed6442e5c9a%40yahoo.com
Technical Details
Message-ID: <179616013577.3146.15822768854048249694@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375359-linux-kernel-netdev=dewy.ru
References: <db0092bb-ceba-4f1d-941f-b830c909699d@yahoo.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375359-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v17 09/15] net: dsa: realtek: rtl8365mb: use raw
 VID for PVID on family D
Date: Tue, 01 Dec 2026 21:22:15 +0000
Organization: Usenet Network
Message-ID: <179616013577.3146.15822768854048249694@kernel.org>
References: <db0092bb-ceba-4f1d-941f-b830c909699d@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1822108"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:95Oyruct8KNM1r6nuXL42rzWIns= sha256:x07BIlwbaqcin7GkXxTIPuL1Np1zqQpn0NwcxUuTmOo=
	sha1:2/UEcyogLMzhYc4aZ/o6B9oKOYA= sha256:Z4RU0gCkKHGlMpf9RCqev5WGJX/ngezZs97QDcyGL/4=
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 40A281174A6; Wed,  2 Dec 2026 00:22:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=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 wV2S-lfj0w-I;
	Wed,  2 Dec 2026 00:22:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-375359-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id F2A9B11746B; Wed,  2 Dec 2026 00:22:27 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 0344225AE2; Tue,  1 Dec 2026 21:22:23 +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=1796160138;
	b=c4roLrFosn8mxStYDf/gvjq/JsDGQZI2JkQc7I5YeyTLBLzpWc2cEHPBvXxY9Oq8KMnz
	 Vu201h1M71Ezh4wAZn/lIhSlUxdKd7m8Lap6EEnpl9Ef77RZiyln24uoclJCPtQ+/Aiqs
	 HByNZlE2yShpFeEEcBLhAOLCjBPtOIudltKl+nNbkXld39ihg10FWU/I8s2wcoJuhy89L
	 m+zrDHlU4u2rH8ctAxNnj6vJXjHx1Te9DIy89kzumSADSZpOgLGDwQzIrtBMNasTbXpaK
	 7Ib52k/3swN8nW7oKGDrmzcCAn+mAE6vnPehoQbSQemFNMPVzvAkXqeDDZfVfWYEhLw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796160138;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=RHHaAdXFcsgOFTNfI95Bbwe3D8kXffAh42QJbZzmCsk=;
	b=YpDViTPPXQtFEdNmQra5GdumR9yZvEMv4A2LrZHCOsCKDe/S3RPkPdrA7jOEKqPsFk8k
	 wkaj/NiekAQ5JGzQSeXJ3szqpCvQAby38DLxOlwsJvZiWDr3souQK8m+MXbmsmb+mbx9U
	 QiG9b8J5JVaqb68H8hBJr8DFgj4cEW/VOorPI2FYYMEAzeIaFU7F5Sc7XoewlHC3nBXO9
	 WEkIjMJivCY4bxtksLjyH43iCBJiPw59HmeC0dDu2k8r+XtfeJwYfgL5DXMuwLeqQfd+D
	 IsSFXvGrThVYZmizcs/7WdngQyzZIngF1wNOkjrd61dQ3iygHvoOlc3uthcrf+7KwQw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ch80z4v4;
	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 7F8C9606A685;
	Tue,  1 Dec 2026 21:22:18 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ch80z4v4
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796160137;
	b=NNwYLzTbewgOMSROf2vIwe0pJ/cAUMhkx6s0r3zWaPscQWMkIlX3UqdY6cQgUU2hF8i6
	 9fO02Ina+2SnBtBZs2Xk6RM7HXuQ61R7oGirnh63LlTZusM933n3ZVUFJqLAsyLAVzA0+
	 RWlgPLhU9RJC9msC0qEMtQSAJq8DWpnYCJDpZpsKVEMAq0C47OsyrmBTEcXTnkArha3ke
	 KisCvc48KCeqaaa7TrTPAObF1u451UK+1DvsHRDav32fsX/BRaxdCmI3gcu2T1/Jhs88J
	 4qrfqu2GnZ2qGJC6ATo/sbxrZacIMdQKmoVnFMDEPer7BIWSPVC9BP3+lOy96ofecpw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796160137;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=RHHaAdXFcsgOFTNfI95Bbwe3D8kXffAh42QJbZzmCsk=;
	b=bav6cdA9uApv2T1C29Ww4TYuXDQrVL6s1vpMJ0mHisAiCdqMpSqfc2E8F9Ww2IDfN365
	 LeWzThXmMj2IbSnezWC7OtxoM+DIb/7v1H5IEDMctmmqgWMCUcuoGpWwnu1NIrlaTtySh
	 J/Df+VRflgt/HCoMCHWqYtJmG5fN/w2KGfxrcYaUj99aAf5Hw4hpuxcAe8dQSQzI4T4rn
	 GX7QPiBXlfI8Im6FBfBsa9V3ypbNZsfQzEkMTxMb5CwSJuEsaibgqSTJxb2D4/7tqkI5h
	 +BOYO+3rKLXs+BzgLvtjDOf0dMoS4QWM7RbFrGOi8EgbpjLWDIpmIxNNZ2Acp2JjBIg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ch80z4v4;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E59E606A331;
	Tue,  1 Dec 2026 21:22:17 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34D601F000C1;
	Tue,  1 Dec 2026 21:22:16 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796160137;
	bh=RHHaAdXFcsgOFTNfI95Bbwe3D8kXffAh42QJbZzmCsk=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=Ch80z4v4aH96g4/fgmiySv3KWxLSILfnndkf/OL/WbnjSdW9w1ThzLEDoFdVdSldF
	 HTy+bEgeX7df0AoNbRophsmp+I8DIBPBedt/EU7W4FE4NYlp9mkwY7FZY3rtOWg8A7
	 RsswpMhmwBhTzXVhJVusGCb0C/bo/wlWlrhte6J1wEoRww/D/aVkYek3mWOlw89yc5
	 qPe6isrX/pwncikWKMHFks7Ni4JKGwf0P9NGlWAnEKMu2zIQVJkASr90onQkR3/fnR
	 D0+m8ck0MSh67mLfLWmoLyxmlaCmEaobLtt8FayerAkGe5Jb0O6yOnGG/RjVtHwG8y
	 6OuONdrlyROlg==
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,
 alvin.sipraga@analog.com, gusfmora@gmail.com, kuncy7@gmail.com,
 fabianotassotti@gmail.com, gabonpivovich@gmail.com, contact@c127.dev,
 o.rempel@pengutronix.de
X-In-Reply-To: <db0092bb-ceba-4f1d-941f-b830c909699d@yahoo.com>
X-sashiko-severity: Low
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