net/mlx5: Return EOPNOTSUPP when failing to get steering name-space
commit4038524f7fef3beb83d61c54b428a4fd3b2d4388
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 12 Jan 2017 11:04:01 +0000 (12 13:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:53 +0000 (17 06:41 +0200)
tree2169bfc70e64004b7372cd93ca3217db92aff87e
parentb445ecbdff838e534077a62133f1e9b6354b3840
net/mlx5: Return EOPNOTSUPP when failing to get steering name-space

[ Upstream commit eff596da48784316ccb83bef82bc1213b512d5e0 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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