diff options
author | Dragos Tatulea <dtatulea@nvidia.com> | 2025-09-26 16:16:05 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-09-30 12:16:23 +0200 |
commit | a1b501a8c6a87c9265fd03bd004035199e2e8128 (patch) | |
tree | 351964cc08704f2a87e71e57a51a8932c0a252a3 /rust/helpers/rcu.c | |
parent | 2ade91705b596b7b6b7de84c0ca59eced7acd1f6 (diff) |
page_pool: Clamp pool size to max 16K pages
page_pool_init() returns E2BIG when the page_pool size goes above 32K
pages. As some drivers are configuring the page_pool size according to
the MTU and ring size, there are cases where this limit is exceeded and
the queue creation fails.
The page_pool size doesn't have to cover a full queue, especially for
larger ring size. So clamp the size instead of returning an error. Do
this in the core to avoid having each driver do the clamping.
The current limit was deemed to high [1] so it was reduced to 16K to avoid
page waste.
[1] https://lore.kernel.org/all/1758532715-820422-3-git-send-email-tariqt@nvidia.com/
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20250926131605.2276734-2-dtatulea@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'rust/helpers/rcu.c')
0 files changed, 0 insertions, 0 deletions