]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Merge branch 'gve-support-larger-ring-sizes-in-dqo-qpl-mode'
authorJakub Kicinski <kuba@kernel.org>
Sat, 28 Feb 2026 16:58:40 +0000 (08:58 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Feb 2026 16:58:41 +0000 (08:58 -0800)
commiteed562b2a6d088d1afa83cd60b2eccaec08e81ca
tree7b61aadc53c28bd2056ab624dca5629f61dc5bc2
parenta9a13c7379ec577e676dca57aa2d7b7980aaa05b
parenta2f19184014f309165d2d4cfb41088b75c1121a4
Merge branch 'gve-support-larger-ring-sizes-in-dqo-qpl-mode'

Max Yuan says:

====================
gve: Support larger ring sizes in DQO-QPL mode

This patch series updates the gve driver to improve Queue Page List
(QPL) management and enable support for larger ring sizes when using the
DQO-QPL queue format.

Previously, the driver used hardcoded multipliers to determine the
number of pages to register for QPLs (e.g., 2x ring size for RX). This
rigid approach made it difficult to support larger ring sizes without
potentially exceeding the "max_registered_pages" limit reported by the
device.

The first patch introduces a unified and flexible logic for calculating
QPL page requirements. It balances TX and RX page allocations based on
the configured ring sizes and scales the total count down proportionally
if it would otherwise exceed the device's global registration limit.

The second patch leverages this new flexibility to stop ignoring the
maximum ring size supported by the device in DQO-QPL mode. Users can now
configure ring sizes up to the device-reported maximum, as the driver
will automatically adjust the QPL size to stay within allowed memory
bounds.
====================

Link: https://patch.msgid.link/20260225182342.1049816-1-joshwash@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>