aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2017-03-17 09:38:01 +0100
committerDavid S. Miller <davem@davemloft.net>2017-03-21 17:16:10 -0700
commitabbdf4bd7dd0d814f1af2bd90112e74a2be2c573 (patch)
tree24474a4e1f0118dd729276f99e5b9d34f51d6296
parentmlxsw: spectrum: Cosmetic naming change (diff)
downloadlinux-dev-abbdf4bd7dd0d814f1af2bd90112e74a2be2c573.tar.xz
linux-dev-abbdf4bd7dd0d814f1af2bd90112e74a2be2c573.zip
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>
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
index cbc1646ee1d9..3ed77e10b4d6 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
+++ b/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);
return 0;
default:
- return -EINVAL;
+ return -EOPNOTSUPP;
}
case TC_SETUP_CLSFLOWER:
switch (tc->cls_flower->command) {