diff --git a/home/nipa/nipa_out/941383/ynl/old-code/netdev-user.c b/home/nipa/nipa_out/941383/ynl/new-code/netdev-user.c index d1b9508ea8a0..5917f2489c08 100644 --- a/home/nipa/nipa_out/941383/ynl/old-code/netdev-user.c +++ b/home/nipa/nipa_out/941383/ynl/new-code/netdev-user.c @@ -166,6 +166,8 @@ const struct ynl_policy_attr netdev_page_pool_policy[NETDEV_A_PAGE_POOL_MAX + 1] [NETDEV_A_PAGE_POOL_DETACH_TIME] = { .name = "detach-time", .type = YNL_PT_UINT, }, [NETDEV_A_PAGE_POOL_DMABUF] = { .name = "dmabuf", .type = YNL_PT_U32, }, [NETDEV_A_PAGE_POOL_IO_URING] = { .name = "io-uring", .type = YNL_PT_NEST, .nest = &netdev_io_uring_provider_info_nest, }, + [NETDEV_A_PAGE_POOL_ITEM_MEM_RESIDENT] = { .name = "item_mem_resident", .type = YNL_PT_UINT, }, + [NETDEV_A_PAGE_POOL_ITEM_MEM_USED] = { .name = "item_mem_used", .type = YNL_PT_UINT, }, }; const struct ynl_policy_nest netdev_page_pool_nest = { @@ -559,6 +561,16 @@ int netdev_page_pool_get_rsp_parse(const struct nlmsghdr *nlh, parg.data = &dst->io_uring; if (netdev_io_uring_provider_info_parse(&parg, attr)) return YNL_PARSE_CB_ERROR; + } else if (type == NETDEV_A_PAGE_POOL_ITEM_MEM_RESIDENT) { + if (ynl_attr_validate(yarg, attr)) + return YNL_PARSE_CB_ERROR; + dst->_present.item_mem_resident = 1; + dst->item_mem_resident = ynl_attr_get_uint(attr); + } else if (type == NETDEV_A_PAGE_POOL_ITEM_MEM_USED) { + if (ynl_attr_validate(yarg, attr)) + return YNL_PARSE_CB_ERROR; + dst->_present.item_mem_used = 1; + dst->item_mem_used = ynl_attr_get_uint(attr); } } diff --git a/home/nipa/nipa_out/941383/ynl/old-code/netdev-user.h b/home/nipa/nipa_out/941383/ynl/new-code/netdev-user.h index bb14a9c81982..03cbf30cedad 100644 --- a/home/nipa/nipa_out/941383/ynl/old-code/netdev-user.h +++ b/home/nipa/nipa_out/941383/ynl/new-code/netdev-user.h @@ -152,6 +152,8 @@ struct netdev_page_pool_get_rsp { __u32 detach_time:1; __u32 dmabuf:1; __u32 io_uring:1; + __u32 item_mem_resident:1; + __u32 item_mem_used:1; } _present; __u64 id; @@ -162,6 +164,8 @@ struct netdev_page_pool_get_rsp { __u64 detach_time; __u32 dmabuf; struct netdev_io_uring_provider_info io_uring; + __u64 item_mem_resident; + __u64 item_mem_used; }; void netdev_page_pool_get_rsp_free(struct netdev_page_pool_get_rsp *rsp);