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 cbc1646..3ed77e1 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) {