From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88B8D1E7C34 for ; Sat, 7 Feb 2026 01:17:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770427065; cv=none; b=Bgy8dh0yZjFWlpvXvQX29oz9oK9BGptw2dWj6XOE4diOEt9wsL5hejNWH0Wbg86gwvEF+X8RiMHCzw7ZQBFgOwvOBqgXfHhaEc9MQj7If5IDhOh9TG1yRxlz8UgdH+xew/mlKngf+jdkbcYTKSv21eiyMC4NgN/A7K9BglYERXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770427065; c=relaxed/simple; bh=LTsf/TSVwNz2cEvFv4s9dRHVQIZcvh2GlQOpDb95vG8=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=jxotbjX1tvecv7P3/hkJ4lNxZpcGRzVCRc2liD9il8A8dIuXyKc4wxGAi4oMNJuvaeMVEHH6TsijHbw60hpnHy4JHbxeKiL8ibe1eu9H6zMLQ4MMlY1D/r9W1a16W4KpW3e1HJPyzUtRID4A29kVTPSngNtRWnxKtffsXLfAE0c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--joshwash.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=hzOro2v9; arc=none smtp.client-ip=209.85.214.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--joshwash.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="hzOro2v9" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2a07fa318fdso27921525ad.0 for ; Fri, 06 Feb 2026 17:17:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1770427065; x=1771031865; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=YB5D6QwebSMgwOJ7AC6KacMWb4KznbLOlhBY6c43cc4=; b=hzOro2v95F39yru+fuZafY2SxHDluTqH/L0Kfj+42yuQvlA8ZUWWtIl8GGDW6IBrDA 1AT7hmD8GpeHeg44Y89Al8JpN5FoTmCHeF5TK3a62FOb4zkQLm6Ysngs4SVULyduOMco UoM2lSnpW41C0b5uSL4US/aqSqcneeIvO8fJ98E6PoZjx5ifY06zOEWizXT8l1k8elGe zjkfFa2i5uTi2ZFdLmeYJBr5gIgUYFrNaB2hTx/lvJPpVPzapWcYeB8YcAQSJaFfZj6M 09ymDXXgw0KKJNKBwPfEU/NTdfmiKFM6qDrYzK5SEEfEhXhQPlLEkLSAplDDJm6B0Kxg ad6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770427065; x=1771031865; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YB5D6QwebSMgwOJ7AC6KacMWb4KznbLOlhBY6c43cc4=; b=Ae1ChJ8MqspO9vvhhbdxier9wrw4Tknd0IYgmAvKbhP/q3rwviGiLssDtleJ0drM4p 6VlCz1Z40OIGMaxDyXTLEe0QwUBBkbKfH7KMcy3fY/sRLJi5ohzGQtUPzV+ccSZTFMle nzcbUQ4lIsLjCdM4E3jCIzuyP6oiUFC1W8aAc84HJD/BYBqdJSalnvCxFv9PbBlJFPz+ lR/OaC7BUEtGfTdd022kiwH6Fgr6/c4A9Gv7yugh6UW/OXyQ9plCvz3pvbIrHeAlS3vV T9cocQ2D3pWzFv8AQw5lCaXdzAblLfXNVGWiDL44jycNS+vVbb3f2w42m3/yL8Dc4y6k 9vFw== X-Forwarded-Encrypted: i=1; AJvYcCWykdjz6yDZoDA2YXGf1Q6dxmaWERx9LhAh2jwJSMcBE6cGUM9vJG3DhB27/uaAib5W5Mj6oXkSiWEuu+o=@vger.kernel.org X-Gm-Message-State: AOJu0YyRsmQqHpoSE3RyIpgxt9uxsdbTP+ePdGSHlRq1xG/RWd17APFM CRmBFTion/IW4KQ91h5m+91IM4eHdOznAYVbC/lFj5YUp54H7p0Kghin7a9TtMus8oDKadVjWCw PRUy/Md4z6aISzQ== X-Received: from plbms7.prod.google.com ([2002:a17:903:ac7:b0:2a7:80f3:ce5a]) (user=joshwash job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:1904:b0:2a9:629d:b618 with SMTP id d9443c01a7336-2a9629db74cmr8441995ad.15.1770427064788; Fri, 06 Feb 2026 17:17:44 -0800 (PST) Date: Fri, 6 Feb 2026 17:17:31 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.53.0.rc2.204.g2597b5adb4-goog Message-ID: <20260207011734.437205-1-joshwash@google.com> Subject: [PATCH net-next 0/2] gve: Support larger ring sizes in DQO-QPL mode From: Joshua Washington To: netdev@vger.kernel.org Cc: Joshua Washington , Harshitha Ramamurthy , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , Praveen Kaligineedi , Ziwei Xiao , John Fraker , Matt Olson , Bailey Forrest , Tim Hostetler , Jordan Rhee , linux-kernel@vger.kernel.org, Max Yuan Content-Type: text/plain; charset="UTF-8" From: Max Yuan 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