]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: hibmcge: fix rx buf avl irq is not re-enabled in irq_handle issue
authorJijie Shao <shaojijie@huawei.com>
Sat, 25 Oct 2025 01:46:40 +0000 (09:46 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 29 Oct 2025 02:11:04 +0000 (19:11 -0700)
commit12d2303db892d397373e2af40758cbd97309ec37
treef374b9a3c6159e876b7d4b07a0e265edefe5fce9
parent40c17a02de41f12dd713309c7d2546117c577d29
net: hibmcge: fix rx buf avl irq is not re-enabled in irq_handle issue

irq initialized with the macro HBG_ERR_IRQ_I will automatically
be re-enabled, whereas those initialized with the macro HBG_IRQ_I
will not be re-enabled.

Since the rx buf avl irq is initialized using the macro HBG_IRQ_I,
it needs to be actively re-enabled;
otherwise priv->stats.rx_fifo_less_empty_thrsld_cnt cannot be
correctly incremented.

Fixes: fd394a334b1c ("net: hibmcge: Add support for abnormal irq handling feature")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20251025014642.265259-2-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hibmcge/hbg_irq.c