net: hinic3: Bugfix for later patch-set.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest1 patch 0 repliesNew
- v51 patch 0 repliesSuperseded
- v44 patches 2 repliesSuperseded 3 of 4 applied
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 4 patches | 0 replies | Superseded | |
| v2 | 5 patches | 1 reply | Superseded | |
| v1 | 4 patches | 1 reply | Superseded |
Changes in v6 from the cover letter
* Enable rx_oom_work in hinic3_qps_irq_init() and disable it with disable_delayed_work_sync() after the NAPI instances are torn down and on the init rollback path, so it cannot be queued again.(AI Review)
* hinic3_rx_oom_work() uses HINIC3_INTF_UP to keep the pending queues and retry.(AI Review)
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | hinic3: Fix the RX stalls in hinic3_rx_poll()drivers/ drivers/ drivers/ +1 more | +92 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.
Cover letter [PATCH net-next v06 0/1] net: hinic3: Bugfix for later patch-set.
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:
* Tested on hinic3 hardware.
v06:
* Enable rx_oom_work in hinic3_qps_irq_init() and disable it with disable_delayed_work_sync() after the NAPI instances are torn down and on the init rollback path, so it cannot be queued again.(AI Review)
* hinic3_rx_oom_work() uses HINIC3_INTF_UP to keep the pending queues and retry.(AI Review)
v05: https://lore.kernel.org/netdev/[email protected]/
* Replace the NAPI busy-poll on RX allocation failure with the software RX OOM recovery: a per-queue bitmap plus a delayed work that re-arms NAPI, so NAPI completes instead of spinning while memory is under pressure.(Jakub Kicinski)
* Return budget only for the LRO replenishment threshold.
* The u64_stats reader, the 80 column wrapping and the max_qps patches of v04 have been merged as 66726ba54a01; this series carries the RX stall fix only.
v04: https://lore.kernel.org/netdev/[email protected]/
* 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/[email protected]/
* 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/[email protected]/
* 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/[email protected]/
Fan Gong (1):
hinic3: Fix the RX stalls in hinic3_rx_poll()
.../net/ethernet/huawei/hinic3/hinic3_irq.c | 10 ++++ .../net/ethernet/huawei/hinic3/hinic3_main.c | 59 ++++++++++++++++++- .../ethernet/huawei/hinic3/hinic3_nic_dev.h | 3 + .../net/ethernet/huawei/hinic3/hinic3_rx.c | 26 ++++++-- 4 files changed, 92 insertions(+), 6 deletions(-)
base-commit: 66726ba54a01a2951688a56f5eb4d13d063acbea
Signature · 1 line
2.43.0