diff options
author | Petr Machata <petrm@mellanox.com> | 2018-11-22 23:48:05 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-23 18:02:24 -0800 |
commit | ab4a16869f25648570976a4d55923d0c9e7effb8 (patch) | |
tree | cb89dc52126ff9665c92f32cd61613316c607093 /drivers/staging | |
parent | d17d9f5e5143125f9274194d8f7368f76b9d141f (diff) | |
download | linux-stable-ab4a16869f25648570976a4d55923d0c9e7effb8.tar.gz linux-stable-ab4a16869f25648570976a4d55923d0c9e7effb8.tar.bz2 linux-stable-ab4a16869f25648570976a4d55923d0c9e7effb8.zip |
rocker, dsa, ethsw: Don't filter VLAN events on bridge itself
Due to an explicit check in rocker_world_port_obj_vlan_add(),
dsa_slave_switchdev_event() resp. port_switchdev_event(), VLAN objects
that are added to a device that is not a front-panel port device are
ignored. Therefore this check is immaterial.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c index 06a233c7cdd3..4fa37d6e598b 100644 --- a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c +++ b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c @@ -719,9 +719,6 @@ static int port_vlans_add(struct net_device *netdev, struct ethsw_port_priv *port_priv = netdev_priv(netdev); int vid, err = 0; - if (netif_is_bridge_master(vlan->obj.orig_dev)) - return -EOPNOTSUPP; - if (switchdev_trans_ph_prepare(trans)) return 0; |