diff options
author | David Wei <dw@davidwei.uk> | 2025-08-12 11:29:07 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-08-13 17:27:23 -0700 |
commit | 39f8fcda2088382a4aa70b258d6f7225aa386f11 (patch) | |
tree | aa874985656f4d2be4c4124bcf8d856df782edef /lib/mpi/mpi-sub-ui.c | |
parent | b2cafefaf0473bafb0c3502a8530167d35e06113 (diff) |
bnxt: fill data page pool with frags if PAGE_SIZE > BNXT_RX_PAGE_SIZE
The data page pool always fills the HW rx ring with pages. On arm64 with
64K pages, this will waste _at least_ 32K of memory per entry in the rx
ring.
Fix by fragmenting the pages if PAGE_SIZE > BNXT_RX_PAGE_SIZE. This
makes the data page pool the same as the header pool.
Tested with iperf3 with a small (64 entries) rx ring to encourage buffer
circulation.
Fixes: cd1fafe7da1f ("eth: bnxt: add support rx side device memory TCP")
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David Wei <dw@davidwei.uk>
Link: https://patch.msgid.link/20250812182907.1540755-1-dw@davidwei.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions