All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v05 0/1] net: hinic3: Bugfix for later patch-set.
@ 2026-11-20  3:14 Fan Gong
  2026-11-20  3:14 ` [PATCH net-next v05 1/1] hinic3: Fix the RX stalls in hinic3_rx_poll() Fan Gong
  0 siblings, 1 reply; 2+ messages in thread
From: Fan Gong @ 2026-11-20  3:14 UTC (permalink / raw)
  To: Fan Gong, Wu Di, Teng Peisen, netdev, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman,
	Andrew Lunn, Ioana Ciornei, Maxime Chevallier, Mohsin Bashir,
	Dimitri Daskalakis, Harshitha Ramamurthy, Larysa Zaremba,
	Vadim Fedorenko
  Cc: linux-kernel, linux-doc, Zhou Shuai, Wu Like

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.
* The software RX OOM recovery has been tested on hinic3 hardware.

v05:
* Replace the NAPI busy-poll on RX allocation failure with the software
  RX OOM recovery that hns3 uses: 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/cover.1794917917.git.gongfan1@huawei.com/
* 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@huawei.com/
* 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@huawei.com/
* 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@huawei.com/

Fan Gong (1):
  hinic3: Fix the RX stalls in hinic3_rx_poll()

 .../net/ethernet/huawei/hinic3/hinic3_irq.c   |  5 ++
 .../net/ethernet/huawei/hinic3/hinic3_main.c  | 51 ++++++++++++++++++-
 .../ethernet/huawei/hinic3/hinic3_nic_dev.h   |  3 ++
 .../net/ethernet/huawei/hinic3/hinic3_rx.c    | 26 ++++++++--
 4 files changed, 79 insertions(+), 6 deletions(-)


base-commit: 66726ba54a01a2951688a56f5eb4d13d063acbea
-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-20  3:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20  3:14 [PATCH net-next v05 0/1] net: hinic3: Bugfix for later patch-set Fan Gong
2026-11-20  3:14 ` [PATCH net-next v05 1/1] hinic3: Fix the RX stalls in hinic3_rx_poll() Fan Gong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.