net/mlx5e: replace EINVAL in mlx5e_flower_parse_meta()
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 19 Apr 2020 12:12:35 +0000 (14:12 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 May 2020 20:07:54 +0000 (13:07 -0700)
commita683012a8e77675a1947cc8f11f97cdc1d5bb769
treed73579454faec06a85763bf7bd1fb87cf1d7179b
parentcb9a0641b531ac11cd7e3076de23ceada19b892e
net/mlx5e: replace EINVAL in mlx5e_flower_parse_meta()

The drivers reports EINVAL to userspace through netlink on invalid meta
match. This is confusing since EINVAL is usually reserved for malformed
netlink messages. Replace it by more meaningful codes.

Fixes: 6d65bc64e232 ("net/mlx5e: Add mlx5e_flower_parse_meta support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c