Skip to content

Commit ee1eb9d

Browse files
committed
tools: ynl: fix build of the page-pool sample
The name of the "destroyed" field in the reply was not changed in the sample after we started calling it "detach_time". page-pool.c: In function ‘main’: page-pool.c:84:33: error: ‘struct <anonymous>’ has no member named ‘destroyed’ 84 | if (pp->_present.destroyed) | ^ Fixes: 637567e ("tools: ynl: add sample for getting page-pool information") Link: https://lore.kernel.org/r/20231129193622.2912353-2-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 987b71f commit ee1eb9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/net/ynl/samples/page-pool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int main(int argc, char **argv)
8181
struct stat *s = find_ifc(&a, pp->ifindex);
8282

8383
count(s, 1, pp);
84-
if (pp->_present.destroyed)
84+
if (pp->_present.detach_time)
8585
count(s, 0, pp);
8686
}
8787
netdev_page_pool_get_list_free(pools);

0 commit comments

Comments
 (0)