diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-01-13 15:28:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-13 10:31:21 -0500 |
commit | 00ae40e71d85ea3fed1b906951ffd80e0321a96d (patch) | |
tree | 6fe3756fa324fcf00352cc1b9176b1684855daae /drivers/net/ethernet | |
parent | b8e429a2feac623a34e21099a4a69de29b6d873e (diff) | |
download | linux-00ae40e71d85ea3fed1b906951ffd80e0321a96d.tar.bz2 |
mlxsw: fix SWITCHDEV_OBJ_ID_PORT_MDB
There is a missing break statement so we always return -EOPNOTSUPP.
Fixes: 3a49b4fde2a1 ('mlxsw: Adding layer 2 multicast support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c index ffe894e6d287..45479ef5bcf4 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c @@ -1015,6 +1015,7 @@ static int mlxsw_sp_port_obj_del(struct net_device *dev, case SWITCHDEV_OBJ_ID_PORT_MDB: err = mlxsw_sp_port_mdb_del(mlxsw_sp_port, SWITCHDEV_OBJ_PORT_MDB(obj)); + break; default: err = -EOPNOTSUPP; break; |