mlxsw: spectrum_buffers: Get max_buff defaults into limits exposed to user
authorJiri Pirko <jiri@mellanox.com>
Thu, 14 Apr 2016 16:19:22 +0000 (18:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 20:22:05 +0000 (16:22 -0400)
commitc30a53c7de5e52249cd5381078f84082449ecc86
tree54b1089d0a3868853c3df2d945b934d7663dd391
parentbc872506f58c21d1ee44b1303a5f5d00354e72c5
mlxsw: spectrum_buffers: Get max_buff defaults into limits exposed to user

Although the device supports max_buff magic values 0 and 0xff, these are
not exposed to the user via devlink.
Therefore, adjust the default values to be within configurable range.

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/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c