mlxsw: spectrum_kvdl: Cosmetic kvdl allocator API change
authorArkadi Sharshevsky <arkadis@mellanox.com>
Sat, 25 Mar 2017 07:28:22 +0000 (08:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Mar 2017 02:56:15 +0000 (19:56 -0700)
commit1312444374241f0e4dd0406ad8967a8b13bb6d69
tree2d22aabd7b24372ecd830ff251ce5227a1133d45
parent2239cc634395ecce69dd047be9104f71edc417b4
mlxsw: spectrum_kvdl: Cosmetic kvdl allocator API change

Currently the return allocated index and err value are multiplexed.
This patch changes the API to decouple the ret value from the allocated
index.

Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c