diff --git a/home/nipa/nipa_out/922277/ynl/old-code/ethtool-user.c b/home/nipa/nipa_out/922277/ynl/new-code/ethtool-user.c index 939d828baa41..fddee94b3705 100644 --- a/home/nipa/nipa_out/922277/ynl/old-code/ethtool-user.c +++ b/home/nipa/nipa_out/922277/ynl/new-code/ethtool-user.c @@ -804,6 +804,7 @@ 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_PSE_ID] = { .name = "pse-id", .type = YNL_PT_U32, }, }; const struct ynl_policy_nest ethtool_pse_nest = { @@ -6085,6 +6086,11 @@ 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_PSE_ID) { + if (ynl_attr_validate(yarg, attr)) + return YNL_PARSE_CB_ERROR; + dst->_present.pse_id = 1; + dst->pse_id = ynl_attr_get_u32(attr); } } diff --git a/home/nipa/nipa_out/922277/ynl/old-code/ethtool-user.h b/home/nipa/nipa_out/922277/ynl/new-code/ethtool-user.h index faba7498b32b..40c5c44319a6 100644 --- a/home/nipa/nipa_out/922277/ynl/old-code/ethtool-user.h +++ b/home/nipa/nipa_out/922277/ynl/new-code/ethtool-user.h @@ -5491,6 +5491,7 @@ 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 pse_id:1; } _present; struct ethtool_header header; @@ -5507,6 +5508,7 @@ 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 pse_id; }; void ethtool_pse_get_rsp_free(struct ethtool_pse_get_rsp *rsp);