mlxsw: spectrum: Align the matchall default case returned value
authorOr Gerlitz <[email protected]>
Fri, 17 Mar 2017 08:38:01 +0000 (09:38 +0100)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Acked-by: Yotam Gigi <[email protected]>
Signed-off-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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) {