From: Leon Romanovsky <leon@kernel.org>
To: Jeroen de Borst <jeroendb@google.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org
Subject: Re: [PATCH net-next v3] gve: Introduce a way to disable queue formats
Date: Thu, 2 Feb 2023 10:07:11 +0200 [thread overview]
Message-ID: <Y9tvL0KCQbfKfo9v@unreal> (raw)
In-Reply-To: <20230201155722.110460-1-jeroendb@google.com>
On Wed, Feb 01, 2023 at 07:57:22AM -0800, Jeroen de Borst wrote:
> The device is capable of simultaneously supporting multiple
> queue formats. These queue formats are:
>
> - GQI-QPL: A queue format with in-order completions and a
> bounce-buffer (Queue Page List)
> - GQI-RDA: A queue format with in-order completions and no
> bounce-buffer (Raw DMA Access)
> - DQO-RDA: A queue format with out-of-order completions and
> no bounce buffer
>
> With this change the driver can deliberately pick a queue format.
>
> Signed-off-by: Jeroen de Borst <jeroendb@google.com>
> ---
> Changed in v2:
> - Documented queue formats and addressed nits.
> Changed in v3:
> - Move changelog below trailer
> ---
> drivers/net/ethernet/google/gve/gve.h | 28 +++++++++
> drivers/net/ethernet/google/gve/gve_adminq.c | 35 +++++++-----
> drivers/net/ethernet/google/gve/gve_ethtool.c | 57 ++++++++++++-------
> drivers/net/ethernet/google/gve/gve_main.c | 26 ++++++++-
> 4 files changed, 109 insertions(+), 37 deletions(-)
<...>
> priv->queue_format = GVE_QUEUE_FORMAT_UNSPECIFIED;
> /* Get the initial information we need from the device */
> err = gve_adminq_describe_device(priv);
> @@ -1661,6 +1680,7 @@ static int gve_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
> priv->service_task_flags = 0x0;
> priv->state_flags = 0x0;
> priv->ethtool_flags = 0x0;
> + priv->ethtool_formats = 0x0;
>
There is no need to assign zeroes to priv as it is allocated with kvzalloc.
Thanks,
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
prev parent reply other threads:[~2023-02-02 8:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-01 15:57 [PATCH net-next v3] gve: Introduce a way to disable queue formats Jeroen de Borst
2023-02-02 8:07 ` Leon Romanovsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y9tvL0KCQbfKfo9v@unreal \
--to=leon@kernel.org \
--cc=davem@davemloft.net \
--cc=jeroendb@google.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.