๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21442

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

#21442
From: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 01:24
58 lines
10453 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 PVID reset hook is split across two patches, and neither
  commit message fully describes its own part of it.

--

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

This adds family D versions of the PVID helpers. On family D the PVID is a
raw 12-bit VID in a per-port register, and there is no VLAN MC table. It
also clears the family D PVID registers from rtl8365mb_vlan_setup()
through a new vlan_port_reset_pvid hook in struct rtl8365mb_family_info.

> Add the family D implementations of the PVID helpers,
> rtl8365mb_d_vlan_port_get_pvid(), rtl8365mb_d_vlan_pvid_port_set() and
> rtl8365mb_d_vlan_pvid_port_clear(), which skip the MC table. They keep the
> family C frame filter handling and rollback on error. The shared code
> reaches them through the vlan_port_get_pvid, vlan_pvid_port_set and
> vlan_pvid_port_clear pointers in struct rtl8365mb_family_info, so it
> needs no is_d() check.

[Severity: Low]
This isn't a bug, but the list of new family D helpers leaves out
rtl8365mb_d_vlan_port_reset_pvid(). This patch also adds it to
rtl8365mb_vlan.c and exports it through rtl8365mb_vlan.h:

  int rtl8365mb_d_vlan_port_reset_pvid(struct realtek_priv *priv, int port);

A later paragraph does describe clearing the PVID at setup. Could the
function and the vlan_port_reset_pvid pointer be added to this list as
well?

The hook is also split across two patches. The earlier patch "net: dsa:
realtek: rtl8365mb: refactor PVID handling" adds these pieces:

  - the vlan_port_reset_pvid member of struct rtl8365mb_family_info
  - the no-op rtl8365mb_c_vlan_port_reset_pvid()
  - its prototype in rtl8365mb_vlan.h
  - .vlan_port_reset_pvid = rtl8365mb_c_vlan_port_reset_pvid in the
    family C info

The message of that patch lists only three pointers and says "No
functional change". Nothing calls the hook there. Its only caller arrives
in this patch, in rtl8365mb_vlan_setup():

> +		ret = fi->vlan_port_reset_pvid(priv, dp->index);

Would it make sense to either move the hook and the family C stub into
this patch, or mention them in the refactor patch's commit message?

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/bc42ae96-dc7e-4b6e-b9cc-64cde5dc51ce%40yahoo.com
Technical Details
Message-ID: <179548347940.3135.10925296228835177150@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-369925-linux-kernel-netdev=dewy.ru
References: <d966bcfd-1718-43b5-a2cb-ee5932bb361e@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-369925-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v12 09/13] net: dsa: realtek: rtl8365mb: use raw
 VID for PVID on family D
Date: Tue, 24 Nov 2026 01:24:39 +0000
Organization: Usenet Network
Message-ID: <179548347940.3135.10925296228835177150@kernel.org>
References: <d966bcfd-1718-43b5-a2cb-ee5932bb361e@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="4025465"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:lfaLk9fHIaBQBSNRoe79pnaCzwo= sha256:eTAZVQx/7AWrqpyOZbfcgMW7gktFu/cwe1SN3Ek3Giw=
	sha1:0CQCb2xfDZzfQTBCH5scUEcIoe4= sha256:fvRtoEDd+fu00xlLGfK4GgprUyaV9kavIvNv4/Ja9Fw=
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 1D25F125DC9; Tue, 24 Nov 2026 04:24:58 +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 aRaGzWyUYjxn;
	Tue, 24 Nov 2026 04:24:54 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369925-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 34F22125DCA; Tue, 24 Nov 2026 04:24:45 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 0D13432C23; Tue, 24 Nov 2026 01:24:42 +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=1795483481;
	b=kDPTzglZCu7Q9aZzlDJhcr+vU1Dbu3CfSTNDhBXqlWExoKIQ3fvYK9Pfbrql4ufWoV0H
	 rnP33sp6vTB6A5PfMk2xq6ZHrSiP5svxi2SAbt5KjZ68KU5Rnl1qIY2Z0pmcZKKPr8j+/
	 GwGWQH+1axYKtf599Ozw88+zDvR/JAxV/UBNFndfHHNA4iYwLJ6yztBco1R15F9KGs+QR
	 DvC7ggTq4UfcNxmnt6T8g4ivsXMqMb1oD0RAoXKMygFXbZpsNSmRfDvOmGOtmBb3Ef8f1
	 1poiMLUdZEp+jsvD7FZu7p0z4JW6r1V3ziT2ypJVqisgbFHNxNATKwhVS8G/JNjWUrw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795483481;
	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=hibdDoFrDA2JztbQTk0XwP1hu+Ge/YpsEJFH6Cwz8aA=;
	b=r8EdK/AOrIUkdImE2YfMlqeYyNTYFdQIQuZslRUv8SGE6oe6lk59H0ZwI5DlmDsuuLqn
	 So5lsvmD3hNV+VkdDe0GMZ9e2eeDJZmWpYZU/T6zty5/FATYPrT1vdHpf29YjCbB7Qu3k
	 zsZGyF6B5KrLTPArf9+ZFEbtcEhSTCnnEAFaaeAU2gcZopNTQEIf6ruMFZn0Dye2TtJIn
	 ZsHDR/4qL6yfSgMIyhdhcZhhRSh/J5zQTBL58rtPGRWOgXuCMZfySICKZy8QwJYIdZ9jB
	 A7LIITb+QI/+sKjjJ4W6Gk0SCzxmTyjtkWwxqxcTkLFXA9e20z5m+et3D5GLVQKdw2g==
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=fKjRs+mo;
	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 D5096606A322;
	Tue, 24 Nov 2026 01:24:41 +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=fKjRs+mo
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=1795483481;
	b=M+UtbE+tPSreLQ8/UUkYewSZJMq7IrjkOTQfRNfCqTygP+9IVupUPDvIb+pJPCDb49TQ
	 cgRrywWABAeSn03mOdmntA+zeqGVgX9y9FzSfq/EDMfwz8C6bnEPJ/mgQOW7eYeMUs7Lu
	 /LUopvhnhgs/HOpHNufYmo3Gf7LKRze+0vPzdXdkLYnQvR+ImrT8P8pS3e0B1NLVRUbS2
	 p2v10lNvs6dcNkpfjzMYZ2trdhaIMJyfmkxaDOQyIu/R1nEchFlAWrB5Y5bZOmPnI739Q
	 5J7nnr2HA8VwW7O6H/6hjy2wXOANbYWTfj/bq82G6R1adwt696c2jS2UNZsBCxj//eg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795483481;
	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=hibdDoFrDA2JztbQTk0XwP1hu+Ge/YpsEJFH6Cwz8aA=;
	b=ZW8mN8isV4soUzuy9nKdTWwuNCYU/j17FxIP3HAT3Wj8F10eAZYKIF21iRoafqn+MX++
	 1WwKejjzTuITM1Ghf7dDl+noAX3mF2PskCX5r4Z2rji+4Q07Ceb7CVzuDzkGb5bl1nW7w
	 zkvR6kECLT9+cLlftisp4+Uz2s+Qhxc+P7KD1VFDzMDlzxOCfEPYhsg2obvRfcbmxj5iG
	 zm2Y4uXGyAzJxYxTAEp/DdiMMPaMV/Dg7Jm9V24W8Q6sl6GeFj7CNJmSXUv6p3GGNCMRG
	 hrvnSe3kbSaABMy7xstyiAezSm5U0e17cVPEDejKHAo65373kHVGH9ow8+u7du8vnIA==
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=fKjRs+mo;
	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 F279D606A331;
	Tue, 24 Nov 2026 01:24:40 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA27E1F000CF;
	Tue, 24 Nov 2026 01:24:39 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795483480;
	bh=hibdDoFrDA2JztbQTk0XwP1hu+Ge/YpsEJFH6Cwz8aA=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=fKjRs+moeCRVt6naDzolk1zxkM6pliH0RQGzh55SvdWE1YnmxbezWaLz4LjtAocBr
	 2q0IItT6qUbB6P3bSJ3lkAME0yQDiZq2fnQyE4E0D5WyRRB2+c01z82ncWDz8xpodx
	 A2EDLKlUTHLybyiUGJz2Hf0om+/gNJ7vQVfH6vLV7ubKqqI7EjOOcV5skbBAhL3+iy
	 +dpqqKh3oIgFJIrs5i4H4+ffgG3uLN4WxluPLnRcSDQeyEqchkyHkKdPs+YW7CSoVO
	 NocklNqvYsI0syAVuad8AeSe9U6oAZx4RiGgngaVwIvVI4PZ/lyrjNsGk1jKinOTXx
	 PnYA/drKJ8sDg==
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
X-In-Reply-To: <d966bcfd-1718-43b5-a2cb-ee5932bb361e@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