diff options
| author | Daniel Zahka <daniel.zahka@gmail.com> | 2026-10-01 09:39:00 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-05 16:51:17 -0700 |
| commit | 9e072eda51cadc944c7c0d6b64d9c7169d43a5ad (patch) | |
| tree | b1b0d351037a6b7bb4396a868c258e0fb44a4ed2 /include/linux/debugobjects.h | |
| parent | d990f86c796b6cbe84ecaa139e3e3c1ac00ae5de (diff) | |
eth: mpnic: set Rx buffer minimums using page size and mtu
Set buffer based drop thresholds in the Rx path based on page size and
the max MTU supported. The device will drop packets if it does not have
at least the minimum number of completely unused buffer descriptors
available.
These thresholds are currently set to 17 BDs for both HPQ and PPQ. These
are overly conservative. With our current max MTU of 9742B, the settings
we should target are:
4KiB page size: 1 HPQ, 3 PPQ
64KiB page size: 1 HPQ, 1 PPQ
The HPQ and PPQ rings are always given PAGE_SIZE sized buffers.
The RDE_CTL register encodes the thresholds as one less than the number
of BDs needed.
Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
Reviewed-by: Harshitha Ramamurthy <hramamurthy@google.com>
Link: https://patch.msgid.link/20261001-linux-mpnic-v1-3-6422ee74233a@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
