netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: Alexander Duyck <alexander.duyck@gmail.com>
Cc: netdev@vger.kernel.org, Alexander Duyck <alexanderduyck@fb.com>,
	kuba@kernel.org, davem@davemloft.net, pabeni@redhat.com,
	edumazet@google.com, kernel-team@meta.com
Subject: Re: [net-next PATCH v3 08/15] eth: fbnic: Implement Tx queue alloc/start/stop/free
Date: Wed, 3 Jul 2024 21:15:02 +0100	[thread overview]
Message-ID: <20240703201502.GS598357@kernel.org> (raw)
In-Reply-To: <171993241104.3697648.17268108844942551733.stgit@ahduyck-xeon-server.home.arpa>

On Tue, Jul 02, 2024 at 08:00:11AM -0700, Alexander Duyck wrote:
> From: Alexander Duyck <alexanderduyck@fb.com>
> 
> Implement basic management operations for Tx queues.
> Allocate memory for submission and completion rings.
> Learn how to start the queues, stop them, and wait for HW
> to be idle.
> 
> We call HW rings "descriptor rings" (stored in ring->desc),
> and SW context rings "buffer rings" (stored in ring->*_buf union).
> 
> This is the first patch which actually touches CSRs so add CSR
> helpers.
> 
> No actual datapath / packet handling here, yet.
> 
> Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>

...

> diff --git a/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c b/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c

...

> +void fbnic_fill(struct fbnic_net *fbn)

Hi Alexander,

Although it is done as part of a later patch in the series,
to avoid W=1 builds complaining, it would be best to add
a declaration of fbnic_fill to this patch.

> +{
> +	struct fbnic_napi_vector *nv;
> +
> +	list_for_each_entry(nv, &fbn->napis, napis) {
> +		int i;
> +
> +		/* Configure NAPI mapping for Tx */
> +		for (i = 0; i < nv->txt_count; i++) {
> +			struct fbnic_q_triad *qt = &nv->qt[i];
> +
> +			/* Nothing to do if Tx queue is disabled */
> +			if (qt->sub0.flags & FBNIC_RING_F_DISABLED)
> +				continue;
> +
> +			/* Associate Tx queue with NAPI */
> +			netif_queue_set_napi(nv->napi.dev, qt->sub0.q_idx,
> +					     NETDEV_QUEUE_TYPE_TX, &nv->napi);
> +		}

It is fixed in a subsequent patch of this series,
but a '}' should go here.

> +}

-- 
pw-bot: changes-requested

  reply	other threads:[~2024-07-03 20:15 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-02 14:59 [net-next PATCH v3 00/15] eth: fbnic: Add network driver for Meta Platforms Host Network Interface Alexander Duyck
2024-07-02 14:59 ` [net-next PATCH v3 01/15] PCI: Add Meta Platforms vendor ID Alexander Duyck
2024-07-02 14:59 ` [net-next PATCH v3 02/15] eth: fbnic: Add scaffolding for Meta's NIC driver Alexander Duyck
2024-07-02 14:59 ` [net-next PATCH v3 03/15] eth: fbnic: Allocate core device specific structures and devlink interface Alexander Duyck
2024-07-02 14:59 ` [net-next PATCH v3 04/15] eth: fbnic: Add register init to set PCIe/Ethernet device config Alexander Duyck
2024-07-02 14:59 ` [net-next PATCH v3 05/15] eth: fbnic: Add message parsing for FW messages Alexander Duyck
2024-07-02 15:00 ` [net-next PATCH v3 06/15] eth: fbnic: Add FW communication mechanism Alexander Duyck
2024-07-02 15:00 ` [net-next PATCH v3 07/15] eth: fbnic: Allocate a netdevice and napi vectors with queues Alexander Duyck
2024-07-02 15:00 ` [net-next PATCH v3 08/15] eth: fbnic: Implement Tx queue alloc/start/stop/free Alexander Duyck
2024-07-03 20:15   ` Simon Horman [this message]
2024-07-07 14:43     ` Alexander Duyck
2024-07-02 15:00 ` [net-next PATCH v3 09/15] eth: fbnic: Implement Rx " Alexander Duyck
2024-07-02 15:00 ` [net-next PATCH v3 10/15] eth: fbnic: Add initial messaging to notify FW of our presence Alexander Duyck
2024-07-02 15:00 ` [net-next PATCH v3 11/15] eth: fbnic: Add link detection Alexander Duyck
2024-07-02 17:21   ` Russell King (Oracle)
2024-07-02 18:57     ` Alexander Duyck
2024-07-02 19:33       ` Andrew Lunn
2024-07-02 20:30         ` Alexander Duyck
2024-07-02 20:37           ` Andrew Lunn
2024-07-02 20:59             ` Alexander Duyck
2024-07-03  1:27               ` Andrew Lunn
2024-07-06 16:47                 ` Alexander Duyck
2024-07-02 15:00 ` [net-next PATCH v3 12/15] eth: fbnic: Add basic Tx handling Alexander Duyck
2024-07-02 15:00 ` [net-next PATCH v3 13/15] eth: fbnic: Add basic Rx handling Alexander Duyck
2024-07-02 15:00 ` [net-next PATCH v3 14/15] eth: fbnic: Add L2 address programming Alexander Duyck
2024-07-02 15:00 ` [net-next PATCH v3 15/15] eth: fbnic: Write the TCAM tables used for RSS control and Rx to host Alexander Duyck

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=20240703201502.GS598357@kernel.org \
    --to=horms@kernel.org \
    --cc=alexander.duyck@gmail.com \
    --cc=alexanderduyck@fb.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kernel-team@meta.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).