mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: chrismelnu@gmail.com
Cc: florian.fainelli@broadcom.com, jonas.gorski@gmail.com,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com, corbet@lwn.net, netdev@vger.kernel.org,
	linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] Documentation: dsa: b53: fix stale tagging-support section
Date: Wed, 23 Sep 2026 21:17:52 +0000	[thread overview]
Message-ID: <179019827202.2160803.3779708917982788607@kernel.org> (raw)
In-Reply-To: <20260922211439.369917-1-chrismelnu@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.

Critical: 0 · High: 0 · Medium: 1 · Low: 0

If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).

- [Medium] The patch deletes the whole "Configuration without tagging
  support" section of Documentation/networking/dsa/b53.rst, including…

--

Documentation: dsa: b53: fix stale tagging-support section

This commit moves the 5325/5365 note into the tagging-supported section of
b53.rst, because b53_get_tag_protocol() gives them
DSA_TAG_PROTO_BRCM_LEGACY_FCS. It also deletes the whole "Configuration
without tagging support" section, including its single port, bridge and
gateway VLAN examples, on the grounds that it no longer applies to any b53
switch.

Link: https://patch.msgid.link/CAOiHx==_ixY-VNWX=XxqCFoJvE-80i+r2y6SNnxwQe9uZQJL6w@mail.gmail.com

> diff --git a/Documentation/networking/dsa/b53.rst b/Documentation/networking/dsa/b53.rst
> index 1cb3ff648f889..b67864b2d3144 100644
> --- a/Documentation/networking/dsa/b53.rst
> +++ b/Documentation/networking/dsa/b53.rst

[ ... ]

> @@ -35,149 +32,7 @@ Configuration with tagging support
>  The tagging based configuration is desired. It is not specific to the b53
>  DSA driver and will work like all DSA drivers which supports tagging.
>  
> -See :ref:`dsa-tagged-configuration`.
> -
> -Configuration without tagging support
> --------------------------------------
> -
> -Older models (5325, 5365) support a different tag format that is not supported
> -yet. 539x and 531x5 require managed mode and some special handling, which is
> -also not yet supported. The tagging support is disabled in these cases and the
> -switch need a different configuration.
> -
> -The configuration slightly differ from the :ref:`dsa-vlan-configuration`.
> -
> -The b53 tags the CPU port in all VLANs, since otherwise any PVID untagged
> -VLAN programming would basically change the CPU port's default PVID and make
> -it untagged, undesirable.

[Severity: Medium]

The commit message says:

  "The section and its config examples no longer apply to any b53 switch,
  so remove them."

Is that accurate? In drivers/net/dsa/b53/b53_common.c,
b53_get_tag_protocol() still falls back to DSA_TAG_PROTO_NONE for every
chip family. This check runs before any per-model tag selection:

	if (!b53_can_enable_brcm_tags(ds, port, mprot)) {
		dev->tag_protocol = DSA_TAG_PROTO_NONE;
		goto out;
	}

b53_can_enable_brcm_tags() returns false in two cases. The first is when
the CPU port is not 5, 7 or 8, which b53_possible_cpu_port() enforces. The
second is when the switch is stacked behind a Broadcom-tagging conduit:

	case DSA_TAG_PROTO_BRCM:
	case DSA_TAG_PROTO_BRCM_PREPEND:
		dev_warn(ds->dev,
			 "Port %d is stacked to Broadcom tag switch\n", port);
		ret = false;

In that mode the driver still behaves the way the removed text describes.
b53_vlan_port_needs_forced_tagged() keeps the CPU port tagged in all VLANs:

	return dev->tag_protocol == DSA_TAG_PROTO_NONE && dsa_is_cpu_port(ds, port);

and b53_vlan_setup() does this:

	ds->untag_bridge_pvid = dev->tag_protocol == DSA_TAG_PROTO_NONE;

After this patch, b53.rst only points to dsa-tagged-configuration. It no
longer mentions the untagged mode or links to dsa-vlan-configuration.
Boards whose CPU port is not 5/7/8 and cascaded Broadcom switches can
still end up in that mode.

Would it be better to keep this section and change the stated reason?
Tagging is disabled because of CPU port placement or stacking, not
because of the chip model (5325/5365/539x/531x5).

The follow-up patch in this series, "MAINTAINERS: add missing entry for
b53.rst", only adds an F: line and doesn't restore this content.

[ ... ]

> +Older models (5325, 5365) use a different, legacy tag format, but tagging
> +is supported.

[ ... ]

> +See :ref:`dsa-tagged-configuration`.

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260922211439.369917-1-chrismelnu%40gmail.com

      parent reply	other threads:[~2026-09-23 21:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAOiHx==_ixY-VNWX=XxqCFoJvE-80i+r2y6SNnxwQe9uZQJL6w@mail.gmail.com>
2026-09-22 21:14 ` Christian Melendez
2026-09-22 21:14   ` [PATCH 2/2] MAINTAINERS: add missing entry for b53.rst Christian Melendez
2026-09-23 21:17   ` netdev-bot+sashiko [this message]

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=179019827202.2160803.3779708917982788607@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=chrismelnu@gmail.com \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=florian.fainelli@broadcom.com \
    --cc=jonas.gorski@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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

all inboxes | Powered by JetHome®