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)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:58:28 +0000 (02:58 +0000)
commit61e76a344952de8f7ec6af56fb811b09b14ce9d3
tree7aeda6ed8a8c8c84a96e15089da86cf8c93f7904
parent51d9e858741ed74d1935ad2fa0d684e4b38484aa
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