From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (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 4A0CE310779 for ; Mon, 1 Jun 2026 17:54:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780336481; cv=none; b=I6W6LCLdELqvOPWFOGaqhzImuKnlobL5Y9qGDMNCo4kACrC6D4uyUtpleP0BTRcCWp8IX2RSdBl/mGT9I+b6tG1HwhdLS636gH8gMf6VHtu7sq7tcvysw9jzfV6VhELWXs45slX+FKM18FTwfsX3LbHgCAXZdcATM1DqGoZoRTI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780336481; c=relaxed/simple; bh=frX3sXpRJ51vGJ1TZPRIiBeodbk5/mCzcr+R5H77Qe8=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=TE2d7+uq62FJ6hXfMcIqiRIyvxY4SD+DCBbalqZonHqkqUOSugAVVnHeGcbeMSlH4cXL+EbmiurN/qWBfnITuuYI538SP95ls8HW0P/Y7WxuR/EFNcr5lyqILlTbMXZPsx6XyRmBFKdNW2FUuhm30I8FuwEwoQBYdqHX6xGmGd8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--hramamurthy.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=o+MI77sU; arc=none smtp.client-ip=209.85.210.202 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--hramamurthy.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="o+MI77sU" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-84235f9b91fso1405465b3a.2 for ; Mon, 01 Jun 2026 10:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1780336479; x=1780941279; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=BPmqxKMufLM8AJUzCbDlebgQ1FTtR8jbwS8Xa0SDPL4=; b=o+MI77sUGGFSQ1X+U9wPIhSdjuXIY6/YxnWzAVd3QwYhcz7MTwv1pM5iC3iQ1HSham WBNN3qwym1e1XmZNWYVVZVI7z3j3JXx76k1+gIQHn1gwoPUiCVq295aMHo2kyMcrST3e Lw4BmI8KKSqK1nMJEmMBcpj7a1ME5qO+bzzAJPaml0cNx+38trM8Jp+PJ8t29ynMPDyw S9RGIqXtWERwT7ICbQyuRDOqqWer9rzk9qOM60PTAD2Wmuk74p4DinxCQ1PYFiX+VL8q VX8M/QMlCzNvNJwEe5TwhUUPVYKBH3uHkYG4f3rAHXh4A9CyMdUfGV0Swv6O871PZgZS AcbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780336479; x=1780941279; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=BPmqxKMufLM8AJUzCbDlebgQ1FTtR8jbwS8Xa0SDPL4=; b=JsWy4+1ym9Yrp1/sppXBkMgm3zq0bOdVWvG6dDp6xXOHyTu+rMydPnQDdLTFuQJpIr T1GNM1VDJKvlLrZKXvOk/8eWdC0mp+OOAQd5AwoWiGuWpUAp02Ahz8DVQiwG3EWXfz1G GWtFDc4UDdxTwEntbdrvBKtguC73cjHpjBC9YmfP4VW9nC4iRMY8SOxwhrebp47vs50h mHeXHMmSY94CIxklj9uUMRt1wmHGRPJf3r9H1hd+px38eNUmG82lLPGYOfjDQjKDt3nG NFits0hQ+hRo1VBB7t7Z4oeAUYEden5ILsUi8YwpGqjtGU7h1QXSnt7vuMEJt3S0mUTH nAQA== X-Forwarded-Encrypted: i=1; AFNElJ+3uDvJOrJyneav963Mq0hPPZ1vSc/IZfwsqpDdyhewxerQtoeAYyXVtmyWG6z4+xb5mWamGi9yueaFPfs=@vger.kernel.org X-Gm-Message-State: AOJu0YxWeOpUzEGgPldkR7ysuD9TF+r/MTuYMqz2oA9iBTMq/xXQ4oMe w/4n7SNOSyd8wdb5F369HhK7Az/LY69Jsg4Za/9RHvQnRRwQL8VI4uBqV21/G0ddCTpzl+WCG0U soaWnLYbevDaHMnZ39U3BDdmwPA== X-Received: from pfbim20.prod.google.com ([2002:a05:6a00:8d94:b0:83f:64bd:2fb0]) (user=hramamurthy job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:889:b0:83a:b344:826a with SMTP id d2e1a72fcca58-842254368efmr11155454b3a.26.1780336479231; Mon, 01 Jun 2026 10:54:39 -0700 (PDT) Date: Mon, 1 Jun 2026 17:54:22 +0000 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.54.0.1013.g208068f2d8-goog Message-ID: <20260601175437.3767283-1-hramamurthy@google.com> Subject: [PATCH net-next 00/15] gve: AdminQ mode related refactors From: Harshitha Ramamurthy To: netdev@vger.kernel.org Cc: joshwash@google.com, hramamurthy@google.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, sdf@fomichev.me, willemb@google.com, jordanrhee@google.com, jfraker@google.com, nktgrg@google.com, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" This series is preparing the driver for the addition of a new control plane mode(MailboxQ) by commonizing and reusing as much code as possible. MailboxQ is a new control plane infrastructure which uses mailbox queues. This is a new control plane to communicate with the device when the driver is running on bare-metal instances as well as newer versions of the device. This series contains 2 main changes to the gve driver's existing control plane(AdminQ): 1) refactor some initialization/teardown path methods to make it work for both control planes. 2) add gve_ctrl_ops structure to the driver for various control plane operations The refactors are mainly around the init, reset and recover paths so that functionalities could be moved into the control ops like 'set_num_queues', 'set_num_ntfy_blks' etc. This patch series only sets the control ops for AdminQ mode. This is intended as a preparation for adding MailboxQ mode in upcoming series which will add the new control plane infrastructure and then introduce the corresponding control ops for MailboxQ mode. The entire list of future patches can be found here for reference: https://github.com/hramamurthy12/linux/commits/gve-mailbox-queues/ Harshitha Ramamurthy (9): gve: don't pass in unused parameter to gve_adminq_free gve: refactor initialization with helper functions gve: introduce gve_adminq_get_device_properties() gve: add a few helper functions to set device properties gve: add struct gve_device_info to hold device properties gve: introduce control plane operations structure gve: introduce ctrl ops to set vectors and Qs gve: refactor gve_init_priv for reset path gve: add ctrl ops to for queue operations Joshua Washington (6): gve: simplify reset logic gve: add gve_ctrl_ops for gve initialization/teardown sequences gve: split up notify block allocation and setup paths gve: introduce new methods to handle IRQ doorbells gve: setup and teardown management interrupts gve: add link status/speed ctrl ops drivers/net/ethernet/google/gve/gve.h | 91 +- drivers/net/ethernet/google/gve/gve_adminq.c | 459 +++++++-- drivers/net/ethernet/google/gve/gve_adminq.h | 25 +- drivers/net/ethernet/google/gve/gve_dqo.h | 2 +- drivers/net/ethernet/google/gve/gve_ethtool.c | 5 +- drivers/net/ethernet/google/gve/gve_main.c | 876 +++++++++--------- 6 files changed, 913 insertions(+), 545 deletions(-) -- 2.54.0.669.g59709faab0-goog