mlxsw: spectrum: Align the matchall default case returned value
authorOr Gerlitz <ogerlitz@mellanox.com>
Fri, 17 Mar 2017 08:38:01 +0000 (09:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 00:16:10 +0000 (17:16 -0700)
Align the default case for matchall offload with what's there
for flower.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Acked-by: Yotam Gigi <yotamg@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c

index cbc1646ee1d92d17956f0da00a4c4b5af07768c4..3ed77e10b4d69fa555ecaf2128aceb8eea3d2bd4 100644 (file)
@@ -1423,7 +1423,7 @@ static int mlxsw_sp_setup_tc(struct net_device *dev, u32 handle,
                                                       tc->cls_mall);
                        return 0;
                default:
-                       return -EINVAL;
+                       return -EOPNOTSUPP;
                }
        case TC_SETUP_CLSFLOWER:
                switch (tc->cls_flower->command) {