From: Jakub Kicinski <kuba@kernel.org>
To: Tariq Toukan <ttoukan.linux@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
Tariq Toukan <tariqt@nvidia.com>,
"David S. Miller" <davem@davemloft.net>,
Saeed Mahameed <saeedm@nvidia.com>,
Ingo Molnar <mingo@redhat.com>,
Juri Lelli <juri.lelli@redhat.com>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, Gal Pressman <gal@nvidia.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next V2 2/2] net/mlx5e: Improve remote NUMA preferences used for the IRQ affinity hints
Date: Mon, 18 Jul 2022 14:57:17 -0700 [thread overview]
Message-ID: <20220718145717.27c2db1b@kernel.org> (raw)
In-Reply-To: <2fc99d26-f804-ad34-1fd7-90cfb123b426@gmail.com>
On Mon, 18 Jul 2022 22:49:21 +0300 Tariq Toukan wrote:
> >> @@ -830,8 +887,7 @@ static int comp_irqs_request(struct mlx5_core_dev *dev)
> >> ret = -ENOMEM;
> >> goto free_irqs;
> >> }
> >> - for (i = 0; i < ncomp_eqs; i++)
> >> - cpus[i] = cpumask_local_spread(i, dev->priv.numa_node);
> >> + mlx5_set_eqs_cpus(dev, cpus, ncomp_eqs);
> >
> > So you change this for mlx5, what about the other users of
> > cpumask_local_spread() ?
>
> I took a look at the different netdev users.
> While some users have similar use case to ours (affinity hints), many
> others use cpumask_local_spread in other flows (XPS setting, ring
> allocations, etc..).
>
> Moving them to use the newly exposed API needs some deeper dive into
> their code, especially due to the possible undesired side-effects.
>
> I prefer not to include these changes in my series for now, but probably
> contribute it in a followup work.
I'd be great if you could pick any other driver and start creating
the right APIs for it and mlx5. "Probably contribute followup work"
does not inspire confidence. And yes, I am being picky, I'm holding
a grudge against mlx5 for not using netif_get_num_default_rss_queues().
prev parent reply other threads:[~2022-07-18 21:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-18 12:43 [PATCH net-next V2 0/2] mlx5: Use NUMA distance metrics Tariq Toukan
2022-07-18 12:43 ` [PATCH net-next V2 1/2] sched/topology: Expose sched_numa_find_closest Tariq Toukan
2022-07-18 13:47 ` Peter Zijlstra
2022-07-18 12:43 ` [PATCH net-next V2 2/2] net/mlx5e: Improve remote NUMA preferences used for the IRQ affinity hints Tariq Toukan
2022-07-18 13:50 ` Peter Zijlstra
2022-07-18 19:49 ` Tariq Toukan
2022-07-18 21:24 ` Peter Zijlstra
2022-07-18 21:57 ` Jakub Kicinski [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=20220718145717.27c2db1b@kernel.org \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gal@nvidia.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=peterz@infradead.org \
--cc=saeedm@nvidia.com \
--cc=tariqt@nvidia.com \
--cc=ttoukan.linux@gmail.com \
--cc=vincent.guittot@linaro.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 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).