diff options
author | 2025-08-12 11:29:07 -0700 | |
---|---|---|
committer | 2025-08-13 17:27:23 -0700 | |
commit | 39f8fcda2088382a4aa70b258d6f7225aa386f11 (patch) | |
tree | aa874985656f4d2be4c4124bcf8d856df782edef /tools/perf/scripts/python | |
parent | netdevsim: Fix wild pointer access in nsim_queue_free(). (diff) | |
download | wireguard-linux-39f8fcda2088382a4aa70b258d6f7225aa386f11.tar.xz wireguard-linux-39f8fcda2088382a4aa70b258d6f7225aa386f11.zip |
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions