aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorEran Ben Elisha <eranbe@mellanox.com>2019-01-17 16:59:10 -0500
committerDavid S. Miller <davem@davemloft.net>2019-01-18 17:51:22 -0500
commitcb5ccfbe73b389470e1dc11061bb185ef4bc9aec (patch)
tree2eaba2908349449e7dd19b71589a228b5ce74d46 /include/uapi
parentf88c19aab5f34835f1ba467c5b508ec4f782f07f (diff)
devlink: Add health buffer support
Devlink health buffer is a mechanism to pass descriptors between drivers and devlink. The API allows the driver to add objects, object pair, value array (nested attributes), value and name. Driver can use this API to fill the buffers in a format which can be translated by the devlink to the netlink message. In order to fulfill it, an internal buffer descriptor is defined. This will hold the data and metadata per each attribute and by used to pass actual commands to the netlink. This mechanism will be later used in devlink health for dump and diagnose data store by the drivers. Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Reviewed-by: Moshe Shemesh <moshe@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/devlink.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 6e52d3660654..cff0e0cb5ac2 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -285,6 +285,14 @@ enum devlink_attr {
285 DEVLINK_ATTR_REGION_CHUNK_ADDR, /* u64 */ 285 DEVLINK_ATTR_REGION_CHUNK_ADDR, /* u64 */
286 DEVLINK_ATTR_REGION_CHUNK_LEN, /* u64 */ 286 DEVLINK_ATTR_REGION_CHUNK_LEN, /* u64 */
287 287
288 DEVLINK_ATTR_HEALTH_BUFFER_OBJECT, /* nested */
289 DEVLINK_ATTR_HEALTH_BUFFER_OBJECT_PAIR, /* nested */
290 DEVLINK_ATTR_HEALTH_BUFFER_OBJECT_NAME, /* string */
291 DEVLINK_ATTR_HEALTH_BUFFER_OBJECT_VALUE, /* nested */
292 DEVLINK_ATTR_HEALTH_BUFFER_OBJECT_VALUE_ARRAY, /* nested */
293 DEVLINK_ATTR_HEALTH_BUFFER_OBJECT_VALUE_TYPE, /* u8 */
294 DEVLINK_ATTR_HEALTH_BUFFER_OBJECT_VALUE_DATA, /* dynamic */
295
288 /* add new attributes above here, update the policy in devlink.c */ 296 /* add new attributes above here, update the policy in devlink.c */
289 297
290 __DEVLINK_ATTR_MAX, 298 __DEVLINK_ATTR_MAX,