mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net v3 0/2] eth: fbnic: Queue and channel count fixes
@ 2026-10-02 12:56 Björn Töpel
  2026-10-02 12:56 ` [PATCH net v3 1/2] eth: fbnic: Preserve channels across resume Björn Töpel
  2026-10-02 12:56 ` [PATCH net v3 2/2] eth: fbnic: Publish real queue counts Björn Töpel
  0 siblings, 2 replies; 3+ messages in thread
From: Björn Töpel @ 2026-10-02 12:56 UTC (permalink / raw)
  To: Alexander Duyck, Jakub Kicinski, reviewer:META ETHERNET DRIVERS,
	Andrew Lunn, David S. Miller, Eric Dumazet, Paolo Abeni,
	Russell King, netdev, linux-kernel
  Cc: Björn Töpel, Mike Marciniszyn (Meta), Mina Almasry

Two fixes for what fbnic tells the core about its queues.

Patch 1 keeps the channel layout across suspend. Resume rebuilt it
from the queue counts, turning standalone channels into combined ones
or dropping combined queues, even with an unchanged IRQ count.

Patch 2 publishes the real queue counts at probe and on "ethtool -L"
while down, instead of at the next open.

Resume with fewer IRQs than the layout needs now fails instead of
shrinking the layout. That case is left for a separate change.

Changes in v3:
- Split into two patches, one per bug, each blaming the commit that
  introduced it.
- Keep num_napi across suspend instead of a separate num_napi_cfg.
- Drop the -ENOSPC check on resume, so an interface that is down no
  longer fails resume. (Breno, Sashiko)
- Skip ndo_stop when no NAPI vectors are allocated.
- Drop Breno's Reviewed-by, since the resume path changed.

Changes in v2:
- Keep the configured NAPI count and restore it on resume. v1
  recomputed it from the queue counts, which changed dedicated rx and
  tx layouts even when the vector count was unchanged. (Breno,
  Sashiko)
- Fail resume with -ENOSPC when fewer vectors come back than the
  configured layout needs. (Sashiko)
- Fix the comment and commit message that did not match the code.
  (Breno, Sashiko)
- Keep the RSS indirection reset in fbnic_netdev_alloc().
- Drop Breno's Reviewed-by, since the resume path changed.

v2: https://lore.kernel.org/netdev/20260924191817.1843726-1-bjorn@kernel.org/
v1: https://lore.kernel.org/netdev/20260915180859.4157646-1-bjorn@kernel.org/

Björn Töpel (2):
  eth: fbnic: Preserve channels across resume
  eth: fbnic: Publish real queue counts

 .../net/ethernet/meta/fbnic/fbnic_ethtool.c   |  7 ++++
 .../net/ethernet/meta/fbnic/fbnic_netdev.c    | 36 ++++++++++++++-----
 .../net/ethernet/meta/fbnic/fbnic_netdev.h    |  3 --
 drivers/net/ethernet/meta/fbnic/fbnic_pci.c   |  9 -----
 4 files changed, 34 insertions(+), 21 deletions(-)


base-commit: 71a77ab76e74131a101f4d2d2afb0dcbf81b4e3c
-- 
2.55.0


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

end of thread, other threads:[~2026-10-02 12:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-02 12:56 [PATCH net v3 0/2] eth: fbnic: Queue and channel count fixes Björn Töpel
2026-10-02 12:56 ` [PATCH net v3 1/2] eth: fbnic: Preserve channels across resume Björn Töpel
2026-10-02 12:56 ` [PATCH net v3 2/2] eth: fbnic: Publish real queue counts Björn Töpel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®