lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260207011734.437205-1-joshwash@google.com>
Date: Fri,  6 Feb 2026 17:17:31 -0800
From: Joshua Washington <joshwash@...gle.com>
To: netdev@...r.kernel.org
Cc: Joshua Washington <joshwash@...gle.com>, Harshitha Ramamurthy <hramamurthy@...gle.com>, 
	Andrew Lunn <andrew+netdev@...n.ch>, "David S. Miller" <davem@...emloft.net>, 
	Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, 
	Willem de Bruijn <willemb@...gle.com>, Praveen Kaligineedi <pkaligineedi@...gle.com>, 
	Ziwei Xiao <ziweixiao@...gle.com>, John Fraker <jfraker@...gle.com>, 
	Matt Olson <maolson@...gle.com>, Bailey Forrest <bcf@...gle.com>, Tim Hostetler <thostet@...gle.com>, 
	Jordan Rhee <jordanrhee@...gle.com>, linux-kernel@...r.kernel.org, 
	Max Yuan <maxyuan@...gle.com>
Subject: [PATCH net-next 0/2] gve: Support larger ring sizes in DQO-QPL mode

From: Max Yuan <maxyuan@...gle.com>

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.

Matt Olson (2):
  gve: Update QPL page registration logic
  gve: Enable reading max ring size from the device in DQO-QPL mode

 drivers/net/ethernet/google/gve/gve.h                 | 18 ++++++--------
 drivers/net/ethernet/google/gve/gve_adminq.c          | 18 ++++----------
 drivers/net/ethernet/google/gve/gve_buffer_mgmt_dqo.c |  2 +-
 drivers/net/ethernet/google/gve/gve_main.c            | 40 ++++++++++++++++++++++++++++++++
 drivers/net/ethernet/google/gve/gve_rx.c              |  5 +---
 drivers/net/ethernet/google/gve/gve_rx_dqo.c          |  6 ++---
 drivers/net/ethernet/google/gve/gve_tx.c              |  5 +---
 drivers/net/ethernet/google/gve/gve_tx_dqo.c          |  4 +---
 8 files changed, 57 insertions(+), 41 deletions(-)

-- 
2.53.0.239.g8d8fc8a987-goog


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ