From: Or Gerlitz Date: Fri, 17 Mar 2017 08:38:01 +0000 (+0100) Subject: mlxsw: spectrum: Align the matchall default case returned value X-Git-Tag: v4.14-rc1~960^3~406^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=abbdf4bd7dd0d814f1af2bd90112e74a2be2c573;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Yotam Gigi Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c index cbc1646..3ed77e1 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) {