History

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.

Jakub Kicinski committed 7 years ago

Commit bff57311 parent a98dc6a5 files · +8 −0Browse files

Showing the changes to include/uapi/linux (1 of 5 files). Show all

Unified · Split

include/uapi/linux/devlink.h+2−0
@@ -300,6 +300,8 @@ enum devlink_attr { · 299 unmodified lines
300300 DEVLINK_ATTR_INFO_VERSION_NAME, /* string */
301301 DEVLINK_ATTR_INFO_VERSION_VALUE, /* string */
302302
303+ DEVLINK_ATTR_SB_POOL_CELL_SIZE, /* u32 */
304+
303305 /* add new attributes above here, update the policy in devlink.c */
304306
305307 __DEVLINK_ATTR_MAX,