From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Yunsheng Lin <linyunsheng@huawei.com>
Cc: linux-rdma@vger.kernel.org, linux-rt-devel@lists.linux.dev,
netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Eric Dumazet <edumazet@google.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Jakub Kicinski <kuba@kernel.org>,
Jesper Dangaard Brouer <hawk@kernel.org>,
Joe Damato <jdamato@fastly.com>,
Leon Romanovsky <leon@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Saeed Mahameed <saeedm@nvidia.com>,
Simon Horman <horms@kernel.org>, Tariq Toukan <tariqt@nvidia.com>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH net-next v3 3/4] page_pool: Convert page_pool_recycle_stats to u64_stats_t.
Date: Wed, 9 Apr 2025 18:11:40 +0200 [thread overview]
Message-ID: <20250409161140.-k4iGuQe@linutronix.de> (raw)
In-Reply-To: <988c920b-56b8-43f6-a42c-54e3ea6dc261@huawei.com>
On 2025-04-08 20:13:09 [+0800], Yunsheng Lin wrote:
> > index 9d958128a57cb..5215fd51a334a 100644
> > --- a/Documentation/networking/page_pool.rst
> > +++ b/Documentation/networking/page_pool.rst
> > @@ -181,11 +181,11 @@ Stats
> >
> > #ifdef CONFIG_PAGE_POOL_STATS
> > /* retrieve stats */
> > - struct page_pool_stats stats = { 0 };
> > + struct page_pool_stats stats = { };
> > if (page_pool_get_stats(page_pool, &stats)) {
> > /* perhaps the driver reports statistics with ethool */
> > - ethtool_print_allocation_stats(&stats.alloc_stats);
> > - ethtool_print_recycle_stats(&stats.recycle_stats);
> > + ethtool_print_allocation_stats(u64_stats_read(&stats.alloc_stats));
> > + ethtool_print_recycle_stats(u64_stats_read(&stats.recycle_stats));
>
> The above seems like an unnecessary change? as stats.alloc_stats and
Right. The ethtool_print_.*() don't exist either. Let me remove that.
> stats.recycle_stats are not really 'u64_stats_t' type.
>
> Otherwise, LGTM.
> Reviewed-by: Yunsheng Lin <linyunsheng@huawei.com>
Sebastian
next prev parent reply other threads:[~2025-04-09 16:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-08 10:59 [PATCH net-next v3 0/4] page_pool: Convert stats to u64_stats_t Sebastian Andrzej Siewior
2025-04-08 10:59 ` [PATCH net-next v3 1/4] mlnx5: Use generic code for page_pool statistics Sebastian Andrzej Siewior
2025-04-10 7:16 ` Tariq Toukan
2025-04-10 8:58 ` Sebastian Andrzej Siewior
2025-04-10 11:23 ` Tariq Toukan
2025-04-08 10:59 ` [PATCH net-next v3 2/4] page_pool: Provide an empty page_pool_stats for disabled stats Sebastian Andrzej Siewior
2025-04-08 10:59 ` [PATCH net-next v3 3/4] page_pool: Convert page_pool_recycle_stats to u64_stats_t Sebastian Andrzej Siewior
2025-04-08 12:13 ` Yunsheng Lin
2025-04-09 16:11 ` Sebastian Andrzej Siewior [this message]
2025-04-08 10:59 ` [PATCH net-next v3 4/4] page_pool: Convert page_pool_alloc_stats " Sebastian Andrzej Siewior
2025-04-08 12:27 ` Yunsheng Lin
2025-04-08 12:33 ` [PATCH net-next v3 0/4] page_pool: Convert stats " Yunsheng Lin
2025-04-09 1:56 ` Jakub Kicinski
2025-04-09 16:15 ` Sebastian Andrzej Siewior
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=20250409161140.-k4iGuQe@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hawk@kernel.org \
--cc=horms@kernel.org \
--cc=ilias.apalodimas@linaro.org \
--cc=jdamato@fastly.com \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-rt-devel@lists.linux.dev \
--cc=linyunsheng@huawei.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=saeedm@nvidia.com \
--cc=tariqt@nvidia.com \
--cc=tglx@linutronix.de \
/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