mlxsw: spectrum_buffers: Fix pool value handling in mlxsw_sp_sb_tc_pool_bind_set
authorJiri Pirko <jiri@mellanox.com>
Fri, 19 Aug 2016 12:43:48 +0000 (14:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Aug 2016 01:01:56 +0000 (18:01 -0700)
commit8912862f067276b480c4fed9da74c9c5601130a6
treeef9ebe420e2c838945aa5d282650ce403ba8c22e
parent56cff471d0c62b721a298f806e7637501debb513
mlxsw: spectrum_buffers: Fix pool value handling in mlxsw_sp_sb_tc_pool_bind_set

Pool index has to be converted by get_pool helper to work correctly for
egress pool. In mlxsw the egress pool index starts from 0.

Fixes: 0f433fa0ecc ("mlxsw: spectrum_buffers: Implement shared buffer configuration")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c