netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Vladimir Oltean <vladimir.oltean@nxp.com>
Cc: netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Vivien Didelot <vivien.didelot@gmail.com>,
	Florian Fainelli <f.fainelli@gmail.com>
Subject: Re: [PATCH net 14/15] docs: net: dsa: delete misinformation about -EOPNOTSUPP for FDB/MDB/VLAN
Date: Sun, 17 Jul 2022 17:50:17 +0200	[thread overview]
Message-ID: <YtQvuadngnYEhSOT@lunn.ch> (raw)
In-Reply-To: <20220716185344.1212091-15-vladimir.oltean@nxp.com>

On Sat, Jul 16, 2022 at 09:53:43PM +0300, Vladimir Oltean wrote:
> Returning -EOPNOTSUPP does *NOT* mean anything special.
> 
> port_vlan_add() is actually called from 2 code paths, one is
> vlan_vid_add() from 8021q module and the other is
> br_switchdev_port_vlan_add() from switchdev.
> 
> The bridge has a wrapper __vlan_vid_add() which first tries via
> switchdev, then if that returns -EOPNOTSUPP, tries again via the VLAN RX
> filters in the 8021q module. But DSA doesn't distinguish between one
> call path and the other when calling the driver's port_vlan_add(), so if
> the driver returns -EOPNOTSUPP to switchdev, it also returns -EOPNOTSUPP
> to the 8021q module. And the latter is a hard error.
> 
> port_fdb_add() is called from the deferred dsa_owq only, so obviously
> its return code isn't propagated anywhere, and cannot be interpreted in
> any way.
> 
> The return code from port_mdb_add() is propagated to the bridge, but
> again, this doesn't do anything special when -EOPNOTSUPP is returned,
> but rather, br_switchdev_mdb_notify() returns void.
> 
> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

  reply	other threads:[~2022-07-17 15:50 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-16 18:53 [PATCH net 00/15] Update DSA documentation Vladimir Oltean
2022-07-16 18:53 ` [PATCH net 01/15] docs: net: dsa: update probing documentation Vladimir Oltean
2022-07-17 15:14   ` Andrew Lunn
2022-07-17 16:56     ` Florian Fainelli
2022-07-17 23:39     ` Vladimir Oltean
2022-07-17 16:56   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 02/15] docs: net: dsa: document the shutdown behavior Vladimir Oltean
2022-07-17 15:16   ` Andrew Lunn
2022-07-17 16:57   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 03/15] docs: net: dsa: rename tag_protocol to get_tag_protocol Vladimir Oltean
2022-07-17 15:22   ` Andrew Lunn
2022-07-17 16:57   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 04/15] docs: net: dsa: add more info about the other arguments " Vladimir Oltean
2022-07-17 16:58   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 05/15] docs: net: dsa: document change_tag_protocol Vladimir Oltean
2022-07-17 15:25   ` Andrew Lunn
2022-07-17 16:58   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 06/15] docs: net: dsa: document the teardown method Vladimir Oltean
2022-07-17 15:26   ` Andrew Lunn
2022-07-17 16:58   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 07/15] docs: net: dsa: document port_setup and port_teardown Vladimir Oltean
2022-07-17 15:28   ` Andrew Lunn
2022-07-17 16:59   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 08/15] docs: net: dsa: document port_fast_age Vladimir Oltean
2022-07-17 15:29   ` Andrew Lunn
2022-07-17 16:59   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 09/15] docs: net: dsa: remove port_bridge_tx_fwd_offload Vladimir Oltean
2022-07-17 15:36   ` Andrew Lunn
2022-07-17 19:30   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 10/15] docs: net: dsa: remove port_vlan_dump Vladimir Oltean
2022-07-17 15:36   ` Andrew Lunn
2022-07-17 19:22   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 11/15] docs: net: dsa: delete port_mdb_dump Vladimir Oltean
2022-07-17 15:37   ` Andrew Lunn
2022-07-17 19:22   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 12/15] docs: net: dsa: add a section for address databases Vladimir Oltean
2022-07-17 15:46   ` Andrew Lunn
2022-07-17 19:26   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 13/15] docs: net: dsa: re-explain what port_fdb_dump actually does Vladimir Oltean
2022-07-17 15:47   ` Andrew Lunn
2022-07-17 19:26   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 14/15] docs: net: dsa: delete misinformation about -EOPNOTSUPP for FDB/MDB/VLAN Vladimir Oltean
2022-07-17 15:50   ` Andrew Lunn [this message]
2022-07-17 19:27   ` Florian Fainelli
2022-07-16 18:53 ` [PATCH net 15/15] docs: net: dsa: mention that VLANs are now refcounted on shared ports Vladimir Oltean
2022-07-17 15:51   ` Andrew Lunn
2022-07-17 19:27   ` Florian Fainelli
2022-07-17 19:28 ` [PATCH net 00/15] Update DSA documentation Florian Fainelli
2022-07-18 11:50 ` patchwork-bot+netdevbpf

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=YtQvuadngnYEhSOT@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=f.fainelli@gmail.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=vivien.didelot@gmail.com \
    --cc=vladimir.oltean@nxp.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;
as well as URLs for NNTP newsgroup(s).