]> git.ipfire.org Git - thirdparty/linux.git/commit
gve: Enable reading max ring size from the device in DQO-QPL mode
authorMatt Olson <maolson@google.com>
Wed, 25 Feb 2026 18:23:42 +0000 (10:23 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Feb 2026 16:58:29 +0000 (08:58 -0800)
commita2f19184014f309165d2d4cfb41088b75c1121a4
tree7b61aadc53c28bd2056ab624dca5629f61dc5bc2
parent07993df560917357610e0625a9a2e7531c3211fc
gve: Enable reading max ring size from the device in DQO-QPL mode

The gVNIC device indicates a device option (MODIFY_RING) to the driver,
which presents a range of ring sizes from which the user is allowed to
select. But in DQO-QPL queue format, the driver ignores the "max" of
this range and instead allows the user to configure the ring size in the
range [min, default]. This was done because increasing the ring size
could result in the number of registered pages being higher than the max
allowed by the device.

In order to support large ring sizes, stop ignoring the "max" of the
range presented in the MODIFY_RING option.

Signed-off-by: Matt Olson <maolson@google.com>
Signed-off-by: Max Yuan <maxyuan@google.com>
Reviewed-by: Jordan Rhee <jordanrhee@google.com>
Reviewed-by: Harshitha Ramamurthy <hramamurthy@google.com>
Reviewed-by: Praveen Kaligineedi <pkaligineedi@google.com>
Signed-off-by: Joshua Washington <joshwash@google.com>
Link: https://patch.msgid.link/20260225182342.1049816-3-joshwash@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve_adminq.c