diff --git a/home/nipa/nipa_out/881282/ynl/old-code/ethtool-user.c b/home/nipa/nipa_out/881282/ynl/new-code/ethtool-user.c index 43d67a46a877..e5afcd09ee6e 100644 --- a/home/nipa/nipa_out/881282/ynl/old-code/ethtool-user.c +++ b/home/nipa/nipa_out/881282/ynl/new-code/ethtool-user.c @@ -236,6 +236,7 @@ const struct ynl_policy_nest ethtool_irq_moderation_nest = { const struct ynl_policy_attr ethtool_cable_result_policy[ETHTOOL_A_CABLE_RESULT_MAX + 1] = { [ETHTOOL_A_CABLE_RESULT_PAIR] = { .name = "pair", .type = YNL_PT_U8, }, [ETHTOOL_A_CABLE_RESULT_CODE] = { .name = "code", .type = YNL_PT_U8, }, + [ETHTOOL_A_CABLE_RESULT_SRC] = { .name = "src", .type = YNL_PT_U8, }, }; const struct ynl_policy_nest ethtool_cable_result_nest = { @@ -246,6 +247,7 @@ const struct ynl_policy_nest ethtool_cable_result_nest = { const struct ynl_policy_attr ethtool_cable_fault_length_policy[ETHTOOL_A_CABLE_FAULT_LENGTH_MAX + 1] = { [ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR] = { .name = "pair", .type = YNL_PT_U8, }, [ETHTOOL_A_CABLE_FAULT_LENGTH_CM] = { .name = "cm", .type = YNL_PT_U32, }, + [ETHTOOL_A_CABLE_FAULT_LENGTH_SRC] = { .name = "src", .type = YNL_PT_U8, }, }; const struct ynl_policy_nest ethtool_cable_fault_length_nest = { @@ -1146,6 +1148,11 @@ int ethtool_cable_result_parse(struct ynl_parse_arg *yarg, return YNL_PARSE_CB_ERROR; dst->_present.code = 1; dst->code = ynl_attr_get_u8(attr); + } else if (type == ETHTOOL_A_CABLE_RESULT_SRC) { + if (ynl_attr_validate(yarg, attr)) + return YNL_PARSE_CB_ERROR; + dst->_present.src = 1; + dst->src = ynl_attr_get_u8(attr); } } @@ -1175,6 +1182,11 @@ int ethtool_cable_fault_length_parse(struct ynl_parse_arg *yarg, return YNL_PARSE_CB_ERROR; dst->_present.cm = 1; dst->cm = ynl_attr_get_u32(attr); + } else if (type == ETHTOOL_A_CABLE_FAULT_LENGTH_SRC) { + if (ynl_attr_validate(yarg, attr)) + return YNL_PARSE_CB_ERROR; + dst->_present.src = 1; + dst->src = ynl_attr_get_u8(attr); } } diff --git a/home/nipa/nipa_out/881282/ynl/old-code/ethtool-user.h b/home/nipa/nipa_out/881282/ynl/new-code/ethtool-user.h index 280f515dfe03..75a00d0a6863 100644 --- a/home/nipa/nipa_out/881282/ynl/old-code/ethtool-user.h +++ b/home/nipa/nipa_out/881282/ynl/new-code/ethtool-user.h @@ -130,20 +130,24 @@ struct ethtool_cable_result { struct { __u32 pair:1; __u32 code:1; + __u32 src:1; } _present; __u8 pair; __u8 code; + __u8 src; }; struct ethtool_cable_fault_length { struct { __u32 pair:1; __u32 cm:1; + __u32 src:1; } _present; __u8 pair; __u32 cm; + __u8 src; }; struct ethtool_bitset_bit {