From: Joe Damato <jdamato@fastly.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: davem@davemloft.net, netdev@vger.kernel.org, edumazet@google.com,
pabeni@redhat.com, dxu@dxuuu.xyz, ecree.xilinx@gmail.com,
przemyslaw.kitszel@intel.com, donald.hunter@gmail.com,
gal.pressman@linux.dev, tariqt@nvidia.com,
willemdebruijn.kernel@gmail.com, saeedm@nvidia.com,
leon@kernel.org, linux-rdma@vger.kernel.org
Subject: Re: [PATCH net-next 03/12] eth: mlx5: allow disabling queues when RSS contexts exist
Date: Fri, 2 Aug 2024 12:27:46 +0100 [thread overview]
Message-ID: <ZqzCsvm8DW6PeKDQ@LQ3V64L9R2> (raw)
In-Reply-To: <20240802001801.565176-4-kuba@kernel.org>
On Thu, Aug 01, 2024 at 05:17:52PM -0700, Jakub Kicinski wrote:
> Since commit 24ac7e544081 ("ethtool: use the rss context XArray
> in ring deactivation safety-check") core will prevent queues from
> being disabled while being used by additional RSS contexts.
> The safety check is no longer necessary, and core will do a more
> accurate job of only rejecting changes which can actually break
> things.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: saeedm@nvidia.com
> CC: tariqt@nvidia.com
> CC: leon@kernel.org
> CC: linux-rdma@vger.kernel.org
> ---
> drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 12 ------------
> 1 file changed, 12 deletions(-)
>
> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
> index 36845872ae94..0b941482db30 100644
> --- a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
> +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
> @@ -445,7 +445,6 @@ int mlx5e_ethtool_set_channels(struct mlx5e_priv *priv,
> unsigned int count = ch->combined_count;
> struct mlx5e_params new_params;
> bool arfs_enabled;
> - int rss_cnt;
> bool opened;
> int err = 0;
>
> @@ -499,17 +498,6 @@ int mlx5e_ethtool_set_channels(struct mlx5e_priv *priv,
> goto out;
> }
>
> - /* Don't allow changing the number of channels if non-default RSS contexts exist,
> - * the kernel doesn't protect against set_channels operations that break them.
> - */
> - rss_cnt = mlx5e_rx_res_rss_cnt(priv->rx_res) - 1;
> - if (rss_cnt) {
> - err = -EINVAL;
> - netdev_err(priv->netdev, "%s: Non-default RSS contexts exist (%d), cannot change the number of channels\n",
> - __func__, rss_cnt);
> - goto out;
> - }
> -
> /* Don't allow changing the number of channels if MQPRIO mode channel offload is active,
> * because it defines a partition over the channels queues.
> */
> --
> 2.45.2
Reviewed-by: Joe Damato <jdamato@fastly.com>
prev parent reply other threads:[~2024-08-02 11:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240802001801.565176-1-kuba@kernel.org>
2024-08-02 0:17 ` [PATCH net-next 03/12] eth: mlx5: allow disabling queues when RSS contexts exist Jakub Kicinski
2024-08-02 11:27 ` Joe Damato [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=ZqzCsvm8DW6PeKDQ@LQ3V64L9R2 \
--to=jdamato@fastly.com \
--cc=davem@davemloft.net \
--cc=donald.hunter@gmail.com \
--cc=dxu@dxuuu.xyz \
--cc=ecree.xilinx@gmail.com \
--cc=edumazet@google.com \
--cc=gal.pressman@linux.dev \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=saeedm@nvidia.com \
--cc=tariqt@nvidia.com \
--cc=willemdebruijn.kernel@gmail.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