@@ -607,6 +607,8 @@ enum devlink_attr {
DEVLINK_ATTR_SELFTESTS, /* nested */
+ DEVLINK_ATTR_INFO_VERSION_IS_COMPONENT, /* u8 0 or 1 */
+
/* add new attributes above here, update the policy in devlink.c */
__DEVLINK_ATTR_MAX,
@@ -6670,6 +6670,11 @@ static int devlink_info_version_put(struct devlink_info_req *req, int attr,
if (err)
goto nla_put_failure;
+ err = nla_put_u8(req->msg, DEVLINK_ATTR_INFO_VERSION_IS_COMPONENT,
+ version_type == DEVLINK_INFO_VERSION_TYPE_COMPONENT);
+ if (err)
+ goto nla_put_failure;
+
nla_nest_end(req->msg, nest);
return 0;