net: devlink: report cell size of shared buffers
authorJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 2 Feb 2019 01:56:28 +0000 (17:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2019 19:25:34 +0000 (11:25 -0800)
commitbff5731d43efbdf0bbd2d73cab32fe6435ea1046
treeb8bae276de495c01202d70740023f66ad7a8278b
parenta98dc6aee784a5daf84a4781dcf02feab9ad5999
net: devlink: report cell size of shared buffers

Shared buffer allocation is usually done in cell increments.
Drivers will either round up the allocation or refuse the
configuration if it's not an exact multiple of cell size.
Drivers know exactly the cell size of shared buffer, so help
out users by providing this information in dumps.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.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
drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c
include/net/devlink.h
include/uapi/linux/devlink.h
net/core/devlink.c