[PATCH net-next v04 0/4] net: hinic3: Bugfix for later patch-set.

From: Fan Gong

Date: Tue Nov 17 2026 - 07:09:20 EST


These issues were discovered by LLM Gemini-4-Argon and Claude-Opus-5-5.
At the same time, LLM recommended submitting an independent patch.
These issues were not actually triggered. Based on theoretical analysis
and consideration of actual risks, this patch is used to fix the issues.

Testing:
This patch-set has been tested on hinic3 hardware.

v04:
* Fold a short ring refill into the hinic3_rx_poll() repoll decision: with
no WQE posted the device raises no interrupt, so returning nr_pkts left
the queue dead until the interface is reset.(AI Review)
* Keep csum_errors in rx_errors, and describe the u64_stats reader change
as the cleanup it is: the driver depends on 64BIT, so the retry never
happens. Drop the Fixes: tag.(AI Review)
* Rewrite "fix some checkpatchs.": name what is wrapped and renamed, and
note that the patch has no functional effect.(AI Review)
* Reword "Ensure that the value of max_qps is not changed": max_qps sizes
the software arrays, the hardware capacity is nic_io->max_qps, and the
change is a design change rather than a fix (no Fixes: tag).(AI Review)

V03: https://lore.kernel.org/all/cover.1794467919.git.gongfan1@xxxxxxxxxx/
* Cleanup checkpatchs in file hinic3_netdev_ops.c.(AI Review)
* nic_svc_cap->max_sqs is already in the range [1, 256].(AI Review)

V02: https://lore.kernel.org/all/cover.1794371175.git.gongfan1@xxxxxxxxxx/
* Rewrite the commit message and provide an explanation for each
patch.(AI Review)
* Split checkpatchs in to a separate patch.(AI Review)
* Fix the failure of napi_alloc_skb() in recv_one_pkt().(AI Review)
* READ_ONCE()/WRITE_ONCE() only stop the compiler from tearing or caching
the access. They don't order anything against the work item, and they
can't stop it from running. So, remove READ_ONCE() and WRITE_ONCE() on
nic_dev->adaptive_rx_coal.(AI Review)

V01: https://lore.kernel.org/netdev/cover.1793946318.git.gongfan1@xxxxxxxxxx/

Fan Gong (4):
hinic3: Fix the RX stalls in hinic3_rx_poll()
hinic3: Read the queue counters once per u64_stats retry loop
hinic3: Wrap long lines and rename q_params
hinic3: Keep max_qps at the hardware maximum when RSS setup fails

.../huawei/hinic3/hinic3_netdev_ops.c | 77 ++++++++-----------
.../net/ethernet/huawei/hinic3/hinic3_rss.c | 7 +-
.../net/ethernet/huawei/hinic3/hinic3_rx.c | 22 ++++--
3 files changed, 53 insertions(+), 53 deletions(-)


base-commit: 73022f605c447f31610b94ed4a983d2b4bf2c721
--
2.43.0