[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231119164625.d2yzi3mpxv72t6pp@skbuf>
Date: Sun, 19 Nov 2023 18:46:25 +0200
From: Vladimir Oltean <olteanv@...il.com>
To: Hangbin Liu <liuhangbin@...il.com>
Cc: netdev@...r.kernel.org, "David S . Miller" <davem@...emloft.net>,
David Ahern <dsahern@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Ido Schimmel <idosch@...sch.org>,
Nikolay Aleksandrov <razor@...ckwall.org>,
Roopa Prabhu <roopa@...dia.com>,
Stephen Hemminger <stephen@...workplumber.org>,
Florian Westphal <fw@...len.de>, Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
Jiri Pirko <jiri@...nulli.us>, Marc Muehlfeld <mmuehlfe@...hat.com>
Subject: Re: [PATCH net-next 01/10] net: bridge: add document for IFLA_BR enum
On Fri, Nov 17, 2023 at 05:31:36PM +0800, Hangbin Liu wrote:
> + * @IFLA_BR_MAX_AGE
> + * The hello packet timeout, is the time until another bridge in the
No comma between subject and predicate.
> + * spanning tree is assumed to be dead, after reception of its last hello
> + * message. Only relevant if STP is enabled.
> + *
> + * The valid values are between (6 * USER_HZ) and (40 * USER_HZ).
> + * The default value is (20 * USER_HZ).
> + *
> + * @IFLA_BR_GROUP_FWD_MASK
> + * The group forward mask. This is the bitmask that is applied to
> + * decide whether to forward incoming frames destined to link-local
> + * addresses. The addresses of the form is 01:80:C2:00:00:0X, which
> + * means the bridge does not forward any link-local frames coming on
> + * this port).
> + *
> + * The default value is 0.
I'm confused by this description, I believe some of the wording is
misplaced. Maybe:
The group forwarding mask. This is the bitmask that is applied to
decide whether to forward incoming frames destined to link-local
addresses (of the form 01:80:C2:00:00:0X).
The default value is 0, which means the bridge does not forward any
link-local frames coming on this port.
> + * @IFLA_BR_VLAN_DEFAULT_PVID
> + * The default PVID (native/untagged VLAN ID) for this bridge.
I don't think that "native VLAN" is a good description of this.
The native VLAN should be the only egress-untagged VLAN of a port.
I would say "VLAN ID applied to untagged and priority-tagged incoming
packets".
> + *
> + * The default value is 1.
I would also mention that the special value of 0 makes all ports of
this bridge not have a PVID by default, which means that they will
not accept VLAN-untagged traffic.
Powered by blists - more mailing lists