diff --git a/home/nipa/nipa_out/894919/ynl/old-code/ethtool-user.c b/home/nipa/nipa_out/894919/ynl/new-code/ethtool-user.c index 9007305c8cbd..ce627062ff6f 100644 --- a/home/nipa/nipa_out/894919/ynl/old-code/ethtool-user.c +++ b/home/nipa/nipa_out/894919/ynl/new-code/ethtool-user.c @@ -727,6 +727,8 @@ const struct ynl_policy_attr ethtool_pse_policy[ETHTOOL_A_PSE_MAX + 1] = { [ETHTOOL_A_C33_PSE_EXT_SUBSTATE] = { .name = "c33-pse-ext-substate", .type = YNL_PT_U32, }, [ETHTOOL_A_C33_PSE_AVAIL_PW_LIMIT] = { .name = "c33-pse-avail-pw-limit", .type = YNL_PT_U32, }, [ETHTOOL_A_C33_PSE_PW_LIMIT_RANGES] = { .name = "c33-pse-pw-limit-ranges", .type = YNL_PT_NEST, .nest = ðtool_c33_pse_pw_limit_nest, }, + [ETHTOOL_A_C33_PSE_PRIO_MAX] = { .name = "c33-pse-prio-max", .type = YNL_PT_U32, }, + [ETHTOOL_A_C33_PSE_PRIO] = { .name = "c33-pse-prio", .type = YNL_PT_U32, }, }; const struct ynl_policy_nest ethtool_pse_nest = { @@ -5900,6 +5902,16 @@ int ethtool_pse_get_rsp_parse(const struct nlmsghdr *nlh, dst->c33_pse_avail_pw_limit = ynl_attr_get_u32(attr); } else if (type == ETHTOOL_A_C33_PSE_PW_LIMIT_RANGES) { n_c33_pse_pw_limit_ranges++; + } else if (type == ETHTOOL_A_C33_PSE_PRIO_MAX) { + if (ynl_attr_validate(yarg, attr)) + return YNL_PARSE_CB_ERROR; + dst->_present.c33_pse_prio_max = 1; + dst->c33_pse_prio_max = ynl_attr_get_u32(attr); + } else if (type == ETHTOOL_A_C33_PSE_PRIO) { + if (ynl_attr_validate(yarg, attr)) + return YNL_PARSE_CB_ERROR; + dst->_present.c33_pse_prio = 1; + dst->c33_pse_prio = ynl_attr_get_u32(attr); } } @@ -6033,6 +6045,8 @@ int ethtool_pse_set(struct ynl_sock *ys, struct ethtool_pse_set_req *req) ynl_attr_put_u32(nlh, ETHTOOL_A_C33_PSE_ADMIN_CONTROL, req->c33_pse_admin_control); if (req->_present.c33_pse_avail_pw_limit) ynl_attr_put_u32(nlh, ETHTOOL_A_C33_PSE_AVAIL_PW_LIMIT, req->c33_pse_avail_pw_limit); + if (req->_present.c33_pse_prio) + ynl_attr_put_u32(nlh, ETHTOOL_A_C33_PSE_PRIO, req->c33_pse_prio); err = ynl_exec(ys, nlh, &yrs); if (err < 0) diff --git a/home/nipa/nipa_out/894919/ynl/old-code/ethtool-user.h b/home/nipa/nipa_out/894919/ynl/new-code/ethtool-user.h index 8cdc5a3bbf24..a2732ad31911 100644 --- a/home/nipa/nipa_out/894919/ynl/old-code/ethtool-user.h +++ b/home/nipa/nipa_out/894919/ynl/new-code/ethtool-user.h @@ -5196,6 +5196,8 @@ struct ethtool_pse_get_rsp { __u32 c33_pse_ext_state:1; __u32 c33_pse_ext_substate:1; __u32 c33_pse_avail_pw_limit:1; + __u32 c33_pse_prio_max:1; + __u32 c33_pse_prio:1; } _present; struct ethtool_header header; @@ -5212,6 +5214,8 @@ struct ethtool_pse_get_rsp { __u32 c33_pse_avail_pw_limit; unsigned int n_c33_pse_pw_limit_ranges; struct ethtool_c33_pse_pw_limit *c33_pse_pw_limit_ranges; + __u32 c33_pse_prio_max; + __u32 c33_pse_prio; }; void ethtool_pse_get_rsp_free(struct ethtool_pse_get_rsp *rsp); @@ -5292,12 +5296,14 @@ struct ethtool_pse_set_req { __u32 podl_pse_admin_control:1; __u32 c33_pse_admin_control:1; __u32 c33_pse_avail_pw_limit:1; + __u32 c33_pse_prio:1; } _present; struct ethtool_header header; __u32 podl_pse_admin_control; __u32 c33_pse_admin_control; __u32 c33_pse_avail_pw_limit; + __u32 c33_pse_prio; }; static inline struct ethtool_pse_set_req *ethtool_pse_set_req_alloc(void) @@ -5362,6 +5368,13 @@ ethtool_pse_set_req_set_c33_pse_avail_pw_limit(struct ethtool_pse_set_req *req, req->_present.c33_pse_avail_pw_limit = 1; req->c33_pse_avail_pw_limit = c33_pse_avail_pw_limit; } +static inline void +ethtool_pse_set_req_set_c33_pse_prio(struct ethtool_pse_set_req *req, + __u32 c33_pse_prio) +{ + req->_present.c33_pse_prio = 1; + req->c33_pse_prio = c33_pse_prio; +} /* * Set Power Sourcing Equipment params.