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

Reply via email to