]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mlxsw: fix SWITCHDEV_OBJ_ID_PORT_MDB
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Jan 2016 12:28:23 +0000 (15:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jan 2016 15:31:21 +0000 (10:31 -0500)
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c

index ffe894e6d28774d088a8388ef4215e3f6c76ce92..45479ef5bcf4f44848f9989f83f46ce66fe4c11b 100644 (file)
@@ -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;