diff --git a/tmp/ynl_build-tmp.Ms8YCJ/old-code/devlink-user.c b/tmp/ynl_build-tmp.Ms8YCJ/new-code/devlink-user.c index 77ca091dd3fb..3daef6fe162f 100644 --- a/tmp/ynl_build-tmp.Ms8YCJ/old-code/devlink-user.c +++ b/tmp/ynl_build-tmp.Ms8YCJ/new-code/devlink-user.c @@ -912,6 +912,7 @@ const struct ynl_policy_attr devlink_policy[DEVLINK_ATTR_MAX + 1] = { [DEVLINK_ATTR_REGION_DIRECT] = { .name = "region-direct", .type = YNL_PT_FLAG, }, [DEVLINK_ATTR_RATE_TC_BWS] = { .name = "rate-tc-bws", .type = YNL_PT_NEST, .nest = &devlink_dl_rate_tc_bws_nest, }, [DEVLINK_ATTR_HEALTH_REPORTER_BURST_PERIOD] = { .name = "health-reporter-burst-period", .type = YNL_PT_U64, }, + [DEVLINK_ATTR_PARAM_RESET_DEFAULT] = { .name = "param-reset-default", .type = YNL_PT_FLAG, }, }; const struct ynl_policy_nest devlink_nest = { @@ -4644,6 +4645,8 @@ int devlink_param_set(struct ynl_sock *ys, struct devlink_param_set_req *req) ynl_attr_put_u8(nlh, DEVLINK_ATTR_PARAM_TYPE, req->param_type); if (req->_present.param_value_cmode) ynl_attr_put_u8(nlh, DEVLINK_ATTR_PARAM_VALUE_CMODE, req->param_value_cmode); + if (req->_present.param_reset_default) + ynl_attr_put(nlh, DEVLINK_ATTR_PARAM_RESET_DEFAULT, NULL, 0); err = ynl_exec(ys, nlh, &yrs); if (err < 0) diff --git a/tmp/ynl_build-tmp.Ms8YCJ/old-code/devlink-user.h b/tmp/ynl_build-tmp.Ms8YCJ/new-code/devlink-user.h index 8206ab5b1804..f4c76287c3ee 100644 --- a/tmp/ynl_build-tmp.Ms8YCJ/old-code/devlink-user.h +++ b/tmp/ynl_build-tmp.Ms8YCJ/new-code/devlink-user.h @@ -2847,6 +2847,7 @@ struct devlink_param_set_req { struct { __u32 param_type:1; __u32 param_value_cmode:1; + __u32 param_reset_default:1; } _present; struct { __u32 bus_name; @@ -2911,6 +2912,11 @@ devlink_param_set_req_set_param_value_cmode(struct devlink_param_set_req *req, req->_present.param_value_cmode = 1; req->param_value_cmode = param_value_cmode; } +static inline void +devlink_param_set_req_set_param_reset_default(struct devlink_param_set_req *req) +{ + req->_present.param_reset_default = 1; +} /* * Set param instances.