aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/devlink.h
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2019-02-01 20:56:28 -0500
committerDavid S. Miller <davem@davemloft.net>2019-02-03 14:25:34 -0500
commitbff5731d43efbdf0bbd2d73cab32fe6435ea1046 (patch)
treeb8bae276de495c01202d70740023f66ad7a8278b /include/uapi/linux/devlink.h
parenta98dc6aee784a5daf84a4781dcf02feab9ad5999 (diff)
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/uapi/linux/devlink.h')
-rw-r--r--include/uapi/linux/devlink.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 7fffd879c328..054b2d1a4537 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -300,6 +300,8 @@ enum devlink_attr {
300 DEVLINK_ATTR_INFO_VERSION_NAME, /* string */ 300 DEVLINK_ATTR_INFO_VERSION_NAME, /* string */
301 DEVLINK_ATTR_INFO_VERSION_VALUE, /* string */ 301 DEVLINK_ATTR_INFO_VERSION_VALUE, /* string */
302 302
303 DEVLINK_ATTR_SB_POOL_CELL_SIZE, /* u32 */
304
303 /* add new attributes above here, update the policy in devlink.c */ 305 /* add new attributes above here, update the policy in devlink.c */
304 306
305 __DEVLINK_ATTR_MAX, 307 __DEVLINK_ATTR_MAX,