]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e43cee6dd283e0da7c60f05e21a94902a037aae
treed73579454faec06a85763bf7bd1fb87cf1d7179b
parent95aa77c508c2eb36d4a60d29d585d8b0a66011af
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: 236d309eca70 ("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