]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f067a2e10be34fd9fd8be228af874087fd0838d
treeef9ebe420e2c838945aa5d282650ce403ba8c22e
parent0d7c210023647c5551195b4631770c5eefd72617
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: 256a9411b49 ("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