Re: [PATCH net-next 1/6] net: hns3: add support for page_pool_get_stats

From: Jijie Shao
Date: Tue Dec 12 2023 - 06:05:51 EST



on 2023/12/12 11:17, Jakub Kicinski wrote:
On Mon, 11 Dec 2023 10:08:11 +0800 Jijie Shao wrote:
Add support for page_pool_get_stats, then the hns3 driver
can get page pool statistics by ethtool.
Sorry, you're late to the party :( We have now added the ability to
read page pool stats via netlink. The support was merged as
a379972973a80924b1d03443e20f113ff76a94c7.

If you use the page pools in your driver in a normal way (each page
pool only used by one NAPI instance and one netdev) you should use
that instead of dumping the stats into ethtool -S.

Okay, we'll try to use netlink instead of ethtool.
And this patch will be dropped in v2 patch set. Jijie