diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-02-01 17:56:28 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-03 11:25:34 -0800 |
commit | bff5731d43efbdf0bbd2d73cab32fe6435ea1046 (patch) | |
tree | b8bae276de495c01202d70740023f66ad7a8278b /include/net/devlink.h | |
parent | a98dc6aee784a5daf84a4781dcf02feab9ad5999 (diff) | |
download | lwn-bff5731d43efbdf0bbd2d73cab32fe6435ea1046.tar.gz lwn-bff5731d43efbdf0bbd2d73cab32fe6435ea1046.zip |
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>
Diffstat (limited to 'include/net/devlink.h')
-rw-r--r-- | include/net/devlink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index 1c8523920f66..74d992a68a06 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -62,6 +62,7 @@ struct devlink_sb_pool_info { enum devlink_sb_pool_type pool_type; u32 size; enum devlink_sb_threshold_type threshold_type; + u32 cell_size; }; /** |