diff --git a/home/nipa/nipa_out/985707/ynl/old-code/devlink-user.c b/home/nipa/nipa_out/985707/ynl/new-code/devlink-user.c index d8c4dfddfb35..7a4ff4aba206 100644 --- a/home/nipa/nipa_out/985707/ynl/old-code/devlink-user.c +++ b/home/nipa/nipa_out/985707/ynl/new-code/devlink-user.c @@ -479,6 +479,7 @@ const struct ynl_policy_attr devlink_dl_health_reporter_policy[DEVLINK_ATTR_MAX [DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS] = { .name = "health-reporter-dump-ts", .type = YNL_PT_U64, }, [DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS_NS] = { .name = "health-reporter-dump-ts-ns", .type = YNL_PT_U64, }, [DEVLINK_ATTR_HEALTH_REPORTER_AUTO_DUMP] = { .name = "health-reporter-auto-dump", .type = YNL_PT_U8, }, + [DEVLINK_ATTR_HEALTH_REPORTER_GP_DELAY] = { .name = "health-reporter-gp-delay", .type = YNL_PT_U64, }, }; const struct ynl_policy_nest devlink_dl_health_reporter_nest = { @@ -909,6 +910,7 @@ const struct ynl_policy_attr devlink_policy[DEVLINK_ATTR_MAX + 1] = { [DEVLINK_ATTR_RATE_TX_WEIGHT] = { .name = "rate-tx-weight", .type = YNL_PT_U32, }, [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_GP_DELAY] = { .name = "health-reporter-gp-delay", .type = YNL_PT_U64, }, }; const struct ynl_policy_nest devlink_nest = { @@ -5800,6 +5802,8 @@ int devlink_health_reporter_set(struct ynl_sock *ys, ynl_attr_put_u8(nlh, DEVLINK_ATTR_HEALTH_REPORTER_AUTO_RECOVER, req->health_reporter_auto_recover); if (req->_present.health_reporter_auto_dump) ynl_attr_put_u8(nlh, DEVLINK_ATTR_HEALTH_REPORTER_AUTO_DUMP, req->health_reporter_auto_dump); + if (req->_present.health_reporter_gp_delay) + ynl_attr_put_u64(nlh, DEVLINK_ATTR_HEALTH_REPORTER_GP_DELAY, req->health_reporter_gp_delay); err = ynl_exec(ys, nlh, &yrs); if (err < 0) diff --git a/home/nipa/nipa_out/985707/ynl/old-code/devlink-user.h b/home/nipa/nipa_out/985707/ynl/new-code/devlink-user.h index 48bc856df8e4..14edcaf0f9bb 100644 --- a/home/nipa/nipa_out/985707/ynl/old-code/devlink-user.h +++ b/home/nipa/nipa_out/985707/ynl/new-code/devlink-user.h @@ -226,6 +226,7 @@ struct devlink_dl_health_reporter { __u32 health_reporter_dump_ts:1; __u32 health_reporter_dump_ts_ns:1; __u32 health_reporter_auto_dump:1; + __u32 health_reporter_gp_delay:1; } _present; struct { __u32 health_reporter_name; @@ -240,6 +241,7 @@ struct devlink_dl_health_reporter { __u64 health_reporter_dump_ts; __u64 health_reporter_dump_ts_ns; __u8 health_reporter_auto_dump; + __u64 health_reporter_gp_delay; }; struct devlink_dl_attr_stats { @@ -3713,6 +3715,7 @@ struct devlink_health_reporter_set_req { __u32 health_reporter_graceful_period:1; __u32 health_reporter_auto_recover:1; __u32 health_reporter_auto_dump:1; + __u32 health_reporter_gp_delay:1; } _present; struct { __u32 bus_name; @@ -3727,6 +3730,7 @@ struct devlink_health_reporter_set_req { __u64 health_reporter_graceful_period; __u8 health_reporter_auto_recover; __u8 health_reporter_auto_dump; + __u64 health_reporter_gp_delay; }; static inline struct devlink_health_reporter_set_req * @@ -3795,6 +3799,13 @@ devlink_health_reporter_set_req_set_health_reporter_auto_dump(struct devlink_hea req->_present.health_reporter_auto_dump = 1; req->health_reporter_auto_dump = health_reporter_auto_dump; } +static inline void +devlink_health_reporter_set_req_set_health_reporter_gp_delay(struct devlink_health_reporter_set_req *req, + __u64 health_reporter_gp_delay) +{ + req->_present.health_reporter_gp_delay = 1; + req->health_reporter_gp_delay = health_reporter_gp_delay; +} /* * Set health reporter instances.