diff options
| author | Furong Xu <[email protected]> | 2025-01-15 03:27:03 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-01-16 11:14:22 +0000 |
| commit | 2324c78a75c54b4c49d22bb44fcccf5727ba5ef7 (patch) | |
| tree | 84c2ca313b5a0c90d0f36a438d528062c9ed0242 /net/unix/af_unix.c | |
| parent | net: stmmac: Switch to zero-copy in non-XDP RX path (diff) | |
| download | kernel-2324c78a75c54b4c49d22bb44fcccf5727ba5ef7.tar.gz kernel-2324c78a75c54b4c49d22bb44fcccf5727ba5ef7.zip | |
net: stmmac: Set page_pool_params.max_len to a precise size
DMA engine will always write no more than dma_buf_sz bytes of a received
frame into a page buffer, the remaining spaces are unused or used by CPU
exclusively.
Setting page_pool_params.max_len to almost the full size of page(s) helps
nothing more, but wastes more CPU cycles on cache maintenance.
For a standard MTU of 1500, then dma_buf_sz is assigned to 1536, and this
patch brings ~16.9% driver performance improvement in a TCP RX
throughput test with iPerf tool on a single isolated Cortex-A65 CPU
core, from 2.43 Gbits/sec increased to 2.84 Gbits/sec.
Signed-off-by: Furong Xu <[email protected]>
Reviewed-by: Alexander Lobakin <[email protected]>
Reviewed-by: Yanteng Si <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
