]> www.infradead.org Git - users/hch/misc.git/commit
eth: mlx4: create a page pool for Rx
authorJakub Kicinski <kuba@kernel.org>
Thu, 13 Feb 2025 01:06:32 +0000 (17:06 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 18 Feb 2025 23:32:20 +0000 (15:32 -0800)
commit8533b14b3d65ee666ba31254787c1bdaee56d95a
tree17558fc6ca0a9f69b8869daf8c66a414466dbddf
parent4991b88c2514e62bd8410e0a96999ef662765d9d
eth: mlx4: create a page pool for Rx

Create a pool per rx queue. Subsequent patches will make use of it.

Move fcs_del to a hole to make space for the pointer.

Per common "wisdom" base the page pool size on the ring size.
Note that the page pool cache size is in full pages, so just
round up the effective buffer size to pages.

Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20250213010635.1354034-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx4/en_rx.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h