diff options
author | Jijie Shao <shaojijie@huawei.com> | 2025-04-10 05:13:23 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-04-12 06:17:36 +0300 |
commit | 4ad3df755a96012f792c7fa2aa62317db3cba82b (patch) | |
tree | bac8f72109918743f7a638edb42f0e678d574066 /lib/mpi/mpi-inline.c | |
parent | 9afaaa54e3eb9b64fc07c06741897800e98ac253 (diff) | |
download | linux-4ad3df755a96012f792c7fa2aa62317db3cba82b.tar.xz |
net: hibmcge: fix the share of irq statistics among different network ports issue
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@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250410021327.590362-4-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions