Netdev List
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Cc: "Andrew Lunn" <andrew@lunn.ch>,
	"Vladimir Oltean" <olteanv@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	"Eric Dumazet" <edumazet@google.com>,
	"Paolo Abeni" <pabeni@redhat.com>,
	"Simon Horman" <horms@kernel.org>,
	"Linus Walleij" <linusw@kernel.org>,
	"Alvin Šipraga" <alsi@bang-olufsen.dk>,
	"Yury Norov" <yury.norov@gmail.com>,
	"Rasmus Villemoes" <linux@rasmusvillemoes.dk>,
	"Russell King" <linux@armlinux.org.uk>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Yury Norov" <ynorov@nvidia.com>,
	"Abdulkader Alrezej" <abdulkader.alrezej@gmail.com>,
	"Mieczyslaw Nalewaj" <namiltd@yahoo.com>
Subject: Re: [net-next PATCH v8 5/8] net: dsa: realtek: rtl8365mb: add VLAN support
Date: Wed, 27 May 2026 17:36:10 -0700	[thread overview]
Message-ID: <20260527173610.5cd14e85@kernel.org> (raw)
In-Reply-To: <20260525-realtek_forward-v8-5-5eb80a4675be@gmail.com>

On Mon, 25 May 2026 16:48:01 -0300 Luiz Angelo Daros de Luca wrote:
> + * rtl8365mb_vlan_port_get_pvid - Retrieve the port PVID
> + * @priv: realtek switch private structure
> + * @port: port index
> + * @pvid: pointer to store the retrieved VLAN ID
> + *
> + * Returns the port PVID if defined or 0 if not.
> + *
> + * Context: Can sleep. Takes and releases &priv->map_lock.
> + * Returns 0 on success or a negative error code on failure.
> + */
> +int rtl8365mb_vlan_port_get_pvid(struct realtek_priv *priv, int port, u16 *pvid)

Warning: drivers/net/dsa/realtek/rtl8365mb_vlan.c:686 No description found for return value of 'rtl8365mb_vlan_port_get_pvid'

Personal preference but IMHO use of kdoc on international driver
functions is plenty pain for little gain. Maybe y'all use more advanced
code editors or such that makes this useful? For me it's just lots of
unnecessary metadata and kdoc warning risk, where a normal comment would
do just fine to convey the information 🤷️ 

Rant over, your driver your call.

> +/**
> + * rtl8365mb_vlan_mc_find() - find VLANMC index by VID or the first free index
> + *
> + * @priv: realtek_priv pointer
> + * @vid: VLAN ID
> + * @index: found index
> + * @first_free: found free index
> + *
> + * If a VLAN MC entry using @vid was found, @index will return the matched index
> + * and @first_free is undefined. If not found, @index will return 0 and
> + * @first_free will return the first found free index in VLAN MC or 0 if the
> + * table is full.
> + *
> + * Although 0 is a valid VLAN MC index, it is reserved for ports without PVID,
> + * including standalone, non-member ports. It uses VID == 0.
> + *
> + * Both @index and @first_free will be in the * 1..@RTL8365MB_VLAN_MCMAX range.
> + *
> + * Return: Returns 0 on success, a negative error on failure.
> + *
> + */

nit: extra line at the end here
-- 
pw-bot: cr

  reply	other threads:[~2026-05-28  0:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-25 19:47 [net-next PATCH v8 0/8] net: dsa: realtek: rtl8365mb: bridge offloading and VLAN support Luiz Angelo Daros de Luca
2026-05-25 19:47 ` [net-next PATCH v8 1/8] net: dsa: realtek: rtl8365mb: use ERR_PTR Luiz Angelo Daros de Luca
2026-05-25 19:47 ` [net-next PATCH v8 2/8] net: dsa: realtek: rtl8365mb: use dsa helpers for port iteration Luiz Angelo Daros de Luca
2026-05-25 19:47 ` [net-next PATCH v8 3/8] net: dsa: realtek: rtl8365mb: prepare for multiple source files Luiz Angelo Daros de Luca
2026-05-25 19:48 ` [net-next PATCH v8 4/8] net: dsa: realtek: rtl8365mb: add table lookup interface Luiz Angelo Daros de Luca
2026-05-25 19:48 ` [net-next PATCH v8 5/8] net: dsa: realtek: rtl8365mb: add VLAN support Luiz Angelo Daros de Luca
2026-05-28  0:36   ` Jakub Kicinski [this message]
2026-05-25 19:48 ` [net-next PATCH v8 6/8] net: dsa: realtek: rtl8365mb: add port_bridge_{join,leave} Luiz Angelo Daros de Luca
2026-05-25 19:48 ` [net-next PATCH v8 7/8] net: dsa: realtek: rtl8365mb: add FDB support Luiz Angelo Daros de Luca
2026-05-25 19:48 ` [net-next PATCH v8 8/8] net: dsa: realtek: rtl8365mb: add bridge port flags Luiz Angelo Daros de Luca

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260527173610.5cd14e85@kernel.org \
    --to=kuba@kernel.org \
    --cc=abdulkader.alrezej@gmail.com \
    --cc=alsi@bang-olufsen.dk \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=linux@rasmusvillemoes.dk \
    --cc=luizluca@gmail.com \
    --cc=namiltd@yahoo.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=ynorov@nvidia.com \
    --cc=yury.norov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox