Re: [PATCH net 3/7] net: hibmcge: fix the share of irq statistics among different network ports issue

From: Simon Horman
Date: Wed Apr 02 2025 - 14:57:41 EST


On Wed, Apr 02, 2025 at 09:39:01PM +0800, Jijie Shao wrote:
> hbg_irqs is a global array which contains irq statistics.
> However, the irq statistics of different network ports
> point to the same global array. As a result, the statistics are incorrect.
>
> This patch allocates a statistics array for each network port
> to prevent the statistics of different network ports
> from affecting each other.
>
> irq statistics are removed from hbg_irq_info. Therefore,
> all data in hbg_irq_info remains unchanged. Therefore,
> the input parameter of some functions is changed to const.
>
> Fixes: 4d089035fa19 ("net: hibmcge: Add interrupt supported in this module")
> Signed-off-by: Jijie Shao <shaojijie@xxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>