diff --git a/home/nipa/nipa_out/917631/ynl/old-code/ethtool-user.c b/home/nipa/nipa_out/917631/ynl/new-code/ethtool-user.c index 7b3666b7bd8f..bd588faa1e1b 100644 --- a/home/nipa/nipa_out/917631/ynl/old-code/ethtool-user.c +++ b/home/nipa/nipa_out/917631/ynl/new-code/ethtool-user.c @@ -198,6 +198,7 @@ const struct ynl_policy_attr ethtool_ts_stat_policy[ETHTOOL_A_TS_STAT_MAX + 1] = [ETHTOOL_A_TS_STAT_TX_PKTS] = { .name = "tx-pkts", .type = YNL_PT_UINT, }, [ETHTOOL_A_TS_STAT_TX_LOST] = { .name = "tx-lost", .type = YNL_PT_UINT, }, [ETHTOOL_A_TS_STAT_TX_ERR] = { .name = "tx-err", .type = YNL_PT_UINT, }, + [ETHTOOL_A_TS_STAT_TX_ONESTEP_PKTS_UNCONFIRMED] = { .name = "tx-onestep-pkts-unconfirmed", .type = YNL_PT_UINT, }, }; const struct ynl_policy_nest ethtool_ts_stat_nest = { @@ -1022,6 +1023,11 @@ int ethtool_ts_stat_parse(struct ynl_parse_arg *yarg, return YNL_PARSE_CB_ERROR; dst->_present.tx_err = 1; dst->tx_err = ynl_attr_get_uint(attr); + } else if (type == ETHTOOL_A_TS_STAT_TX_ONESTEP_PKTS_UNCONFIRMED) { + if (ynl_attr_validate(yarg, attr)) + return YNL_PARSE_CB_ERROR; + dst->_present.tx_onestep_pkts_unconfirmed = 1; + dst->tx_onestep_pkts_unconfirmed = ynl_attr_get_uint(attr); } } diff --git a/home/nipa/nipa_out/917631/ynl/old-code/ethtool-user.h b/home/nipa/nipa_out/917631/ynl/new-code/ethtool-user.h index f4f53276cc3a..ebee256fa559 100644 --- a/home/nipa/nipa_out/917631/ynl/old-code/ethtool-user.h +++ b/home/nipa/nipa_out/917631/ynl/new-code/ethtool-user.h @@ -59,11 +59,13 @@ struct ethtool_ts_stat { __u32 tx_pkts:1; __u32 tx_lost:1; __u32 tx_err:1; + __u32 tx_onestep_pkts_unconfirmed:1; } _present; __u64 tx_pkts; __u64 tx_lost; __u64 tx_err; + __u64 tx_onestep_pkts_unconfirmed; }; struct ethtool_cable_test_tdr_cfg {