OSDN Git Service

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)
commiteff596da48784316ccb83bef82bc1213b512d5e0
tree481f61a103292580d00cb193944da6557aedd9b6
parent9eb7892351a3a3b403d879b41c4e6efb2c96516f
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