Skip to content

Commit

Permalink
mlxsw: fix SWITCHDEV_OBJ_ID_PORT_MDB
Browse files Browse the repository at this point in the history
There is a missing break statement so we always return -EOPNOTSUPP.

Fixes: 3a49b4f ('mlxsw: Adding layer 2 multicast support')
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Dan Carpenter authored and davem330 committed Jan 13, 2016
1 parent b8e429a commit 00ae40e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 00ae40e

Please sign in to comment.