diff --git a/tmp/ynl_build-tmp.QBPefA/old-code/psp-user.c b/tmp/ynl_build-tmp.QBPefA/new-code/psp-user.c index 79b0ca9e122e..1cdd3ec4b2fb 100644 --- a/tmp/ynl_build-tmp.QBPefA/old-code/psp-user.c +++ b/tmp/ynl_build-tmp.QBPefA/new-code/psp-user.c @@ -95,6 +95,8 @@ const struct ynl_policy_attr psp_stats_policy[PSP_A_STATS_MAX + 1] = { [PSP_A_STATS_TX_PACKETS] = { .name = "tx-packets", .type = YNL_PT_UINT, }, [PSP_A_STATS_TX_BYTES] = { .name = "tx-bytes", .type = YNL_PT_UINT, }, [PSP_A_STATS_TX_ERROR] = { .name = "tx-error", .type = YNL_PT_UINT, }, + [PSP_A_STATS_TX_KEY_CNT] = { .name = "tx-key-cnt", .type = YNL_PT_UINT, }, + [PSP_A_STATS_GRACE_PERIODS] = { .name = "grace-periods", .type = YNL_PT_UINT, }, }; const struct ynl_policy_nest psp_stats_nest = { @@ -578,6 +580,16 @@ int psp_get_stats_rsp_parse(const struct nlmsghdr *nlh, return YNL_PARSE_CB_ERROR; dst->_present.stale_events = 1; dst->stale_events = ynl_attr_get_uint(attr); + } else if (type == PSP_A_STATS_TX_KEY_CNT) { + if (ynl_attr_validate(yarg, attr)) + return YNL_PARSE_CB_ERROR; + dst->_present.tx_key_cnt = 1; + dst->tx_key_cnt = ynl_attr_get_sint(attr); + } else if (type == PSP_A_STATS_GRACE_PERIODS) { + if (ynl_attr_validate(yarg, attr)) + return YNL_PARSE_CB_ERROR; + dst->_present.grace_periods = 1; + dst->grace_periods = ynl_attr_get_uint(attr); } } diff --git a/tmp/ynl_build-tmp.QBPefA/old-code/psp-user.h b/tmp/ynl_build-tmp.QBPefA/new-code/psp-user.h index ccece9d2536e..4b9ed4fcfe97 100644 --- a/tmp/ynl_build-tmp.QBPefA/old-code/psp-user.h +++ b/tmp/ynl_build-tmp.QBPefA/new-code/psp-user.h @@ -348,11 +348,15 @@ struct psp_get_stats_rsp { __u32 dev_id:1; __u32 key_rotations:1; __u32 stale_events:1; + __u32 tx_key_cnt:1; + __u32 grace_periods:1; } _present; __u32 dev_id; __u64 key_rotations; __u64 stale_events; + __s64 tx_key_cnt; + __u64 grace_periods; }; void psp_get_stats_rsp_free(struct psp_get_stats_rsp *rsp);