]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Return EOPNOTSUPP when failing to get steering name-space
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 12 Jan 2017 11:04:01 +0000 (13:04 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 29 Jan 2017 21:01:38 +0000 (23:01 +0200)
commitbd6a14b95bd14491159fa08b57da3b97fcd965ba
tree481f61a103292580d00cb193944da6557aedd9b6
parent40d2279aa086ce64f217d5c26bc6015bb9939301
net/mlx5: Return EOPNOTSUPP when failing to get steering name-space

When we fail to retrieve a hardware steering name-space, the returned error
code should say that this operation is not supported. Align the various
places in the driver where this call is made to this convention.

Also, make sure to warn when we fail to retrieve a SW (ANCHOR) name-space.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c