Browse Source

mlxsw: spectrum: Align the matchall default case returned value

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>
Or Gerlitz 8 years ago
parent
commit
abbdf4bd7d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/ethernet/mellanox/mlxsw/spectrum.c

+ 1 - 1
drivers/net/ethernet/mellanox/mlxsw/spectrum.c

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