From: Tariq Toukan <ttoukan.linux@gmail.com>
To: Joe Damato <jdamato@fastly.com>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Cc: tariqt@nvidia.com, rrameshbabu@nvidia.com,
Saeed Mahameed <saeedm@nvidia.com>,
Leon Romanovsky <leon@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Richard Cochran <richardcochran@gmail.com>,
Gal Pressman <gal@nvidia.com>,
Vadim Fedorenko <vadim.fedorenko@linux.dev>,
"open list:MELLANOX MLX5 core VPI driver"
<linux-rdma@vger.kernel.org>
Subject: Re: [PATCH net-next v4] net/mlx5e: link NAPI instances to queues and IRQs
Date: Sat, 10 Feb 2024 09:01:36 +0200 [thread overview]
Message-ID: <42e7e002-a583-42c7-a4a6-67320c625828@gmail.com> (raw)
In-Reply-To: <20240209202312.30181-1-jdamato@fastly.com>
On 09/02/2024 22:23, Joe Damato wrote:
> Make mlx5 compatible with the newly added netlink queue GET APIs.
>
> Signed-off-by: Joe Damato <jdamato@fastly.com>
> ---
> v3 -> v4:
> - Use sq->netdev and sq->cq.napi to get the netdev and NAPI structures in
> mlx5e_activate_txqsq and mlx5e_deactivate_txqsq as requested by Tariq
> Toukan [1]
> - Only set or unset NETDEV_QUEUE_TYPE_RX when the MLX5E_PTP_STATE_RX bit
> is on in mlx5e_ptp_activate_channel and mlx5e_ptp_deactivate_channel as
> requested by Rahul Rameshbabu [2]
>
> v2 -> v3:
> - Fix commit message subject
> - call netif_queue_set_napi in mlx5e_ptp_activate_channel and
> mlx5e_ptp_deactivate_channel to enable/disable NETDEV_QUEUE_TYPE_RX for
> the PTP channel.
> - Modify mlx5e_activate_txqsq and mlx5e_deactivate_txqsq to set
> NETDEV_QUEUE_TYPE_TX which should take care of all TX queues including
> QoS/HTB and PTP.
> - Rearrange mlx5e_activate_channel and mlx5e_deactivate_channel for
> better ordering when setting and unsetting NETDEV_QUEUE_TYPE_RX NAPI
> structs
>
> v1 -> v2:
> - Move netlink NULL code to mlx5e_deactivate_channel
> - Move netif_napi_set_irq to mlx5e_open_channel and avoid storing the
> irq, after netif_napi_add which itself sets the IRQ to -1
>
> [1]: https://lore.kernel.org/all/8c083e6d-5fcd-4557-88dd-0f95acdbc747@gmail.com/
> [2]: https://lore.kernel.org/all/871q9mz1a0.fsf@nvidia.com/
>
> drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c | 5 ++++-
> drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 7 +++++++
> 2 files changed, 11 insertions(+), 1 deletion(-)
>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Thanks for your patch.
next prev parent reply other threads:[~2024-02-10 7:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-09 20:23 [PATCH net-next v4] net/mlx5e: link NAPI instances to queues and IRQs Joe Damato
2024-02-10 7:01 ` Tariq Toukan [this message]
2024-02-13 1:00 ` patchwork-bot+netdevbpf
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=42e7e002-a583-42c7-a4a6-67320c625828@gmail.com \
--to=ttoukan.linux@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gal@nvidia.com \
--cc=jdamato@fastly.com \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=rrameshbabu@nvidia.com \
--cc=saeedm@nvidia.com \
--cc=tariqt@nvidia.com \
--cc=vadim.fedorenko@linux.dev \
/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