From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0CAD945637; Wed, 17 Jul 2024 19:56:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CB198402A2; Wed, 17 Jul 2024 19:56:23 +0200 (CEST) Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) by mails.dpdk.org (Postfix) with ESMTP id 3553840280 for ; Wed, 17 Jul 2024 19:56:22 +0200 (CEST) Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-65fe57ed70dso1463027b3.2 for ; Wed, 17 Jul 2024 10:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1721238981; x=1721843781; darn=dpdk.org; h=cc:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=E11Osyi6g0Yx9Td/kSbrTwP0nijWzndEWr7yi7RMRqo=; b=N56p1YvaYgAb7dfy71YCwSjl1gBwEwLiDp0sB5obFX7hNeZuQ0J/VW9GYXmAbPbLaR vuNRe0UHivf1Ekkergf2Dk+KoeG/wjanNdgHjTMc4/CmORWEs6QtfXJ7R9CLazOptGIp jaz6K7UJT+GEvLKMnPWAgb3Egt6Ga82uhaRdDBk2HMfnQpqJHRiyZds8e/q3BV2qs4Tq 9jmK+nx62c1rhSoEO0KLwu/Bgm4+Xb02FLwrIfKdIqNykgOZCa3YGdT+TT8OfVPH1KeL h5avl/XswwM/EbCTFbnE4KYlOBhhMjio4qOPUG3wr8yIGAj3h2trZgXMlK9tK8IAhfs0 Mx3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721238981; x=1721843781; h=cc:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=E11Osyi6g0Yx9Td/kSbrTwP0nijWzndEWr7yi7RMRqo=; b=tIoIrUmhGS0SRAfEHXCJmJtVeyfim47/lnRQ+W1aj+LdpBqZhP1eTexs4uhR0wXQiL W09cMdsl/jvnAkgMrRm4p5ST4JBQTWTzXahKLx4OVJyHvBi2oS8MPx1q0RZ8vy1/usBr 4kUpjcyr74NPBPy/WhB5nP6btWix/0RIRH+y3Lpk4cXcF/MLQjeBOGL918frF800OecV 33W/nUSwuq6cuNMjI8auJqSu/KcmLdgzz8ChSaDA2eMCUXYTJg5gX061m98E5DHk1zeT Zx1ldWwJcIBlLCan2n2HZepe7DbDtC8pJvDaIJx4+PTF3X6LaHpj6KbzELWxIIDMMyWI 1y1g== X-Gm-Message-State: AOJu0Ywc8eM4FjqxEdx9Kz3VPN8AOOnm2lT2Qy0cWxiuMmOpevSo6gWm 8axofwMr8jdRv/2Og+ujh4bwqvk/Br/op4Tf4EwgH7cQ65klmYn5ZlGRcWcdvEnyBEznugeXEby T9p1MgkKLEOO678QrI3drJvg9gWffNj5V0VoaGooaeuW1UVH6lAkR3oNGiZRTD+MG5EayX3uqMT jm6zAeQhwKf59Xy3YnE2B2Pl54qFkj4w== X-Google-Smtp-Source: AGHT+IEFa1nV27yfL6UMvfS00EAVWEYOFXRoYavKal8d/W6+DllkcepycMygH0TVbiFGi1H339TDMAilkkTDRw== X-Received: from joshwash.sea.corp.google.com ([2620:15c:11c:202:9e5:24bd:1c5a:9cd9]) (user=joshwash job=sendgmr) by 2002:a05:6902:2b88:b0:e05:a1df:562e with SMTP id 3f1490d57ef6-e05feb6011dmr426276.2.1721238981297; Wed, 17 Jul 2024 10:56:21 -0700 (PDT) Date: Wed, 17 Jul 2024 10:56:15 -0700 Mime-Version: 1.0 X-Mailer: git-send-email 2.45.2.993.g49e7a77208-goog Message-ID: <20240717175619.3159026-1-joshwash@google.com> Subject: [PATCH 0/4] gve GQ ring size modification From: Joshua Washington Cc: dev@dpdk.org, Ferruh Yigit , Rushil Gupta , Harshitha Ramamurthy , Joshua Washington Content-Type: text/plain; charset="UTF-8" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch series adds the abiltiy to modify the ring size when using the GQ queue format for the GVE driver. Before this change, the GQ driver supported only 1024 descriptors in a ring. With this change, ring sizes can be as low or has as is specfied by the device. If the device does not specify limits, the minimum ring size is fixed at 512 descriptors for RX and 256 descriptor for TX, while the maximum ring size is fixed at 1024 for both RX and TX. Limitations: The ring size must be a power of two. The DQ queue format should remain unaffected by this change. Joshua Washington (4): net/gve: add ring size device option net/gve: remove explicit field for Rx pages per QPL net/gve: add min ring size support net/gve: add ability to modify ring size in GQ format drivers/net/gve/base/gve_adminq.c | 101 +++++++++++++++++++++++------- drivers/net/gve/base/gve_adminq.h | 18 ++++++ drivers/net/gve/gve_ethdev.c | 24 +++++-- drivers/net/gve/gve_ethdev.h | 42 ++++++++----- drivers/net/gve/gve_rx.c | 12 ++-- drivers/net/gve/gve_tx.c | 10 +-- 6 files changed, 154 insertions(+), 53 deletions(-) -- 2.45.2.803.g4e1b14247a-goog