Commit df8cf324 authored by Haiyue Wang's avatar Haiyue Wang Committed by Jakub Kicinski
Browse files

selftests: iou-zcrx: Get the page size at runtime



Use the API `sysconf()` to query page size at runtime, instead of using
hard code number 4096.

And use `posix_memalign` to allocate the page size aligned momory.

Signed-off-by: default avatarHaiyue Wang <haiyuewa@163.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Reviewed-by: default avatarDavid Wei <dw@davidwei.uk>
Link: https://patch.msgid.link/20250419141044.10304-1-haiyuewa@163.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 5565acd1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment