Skip to content

eth: fbnic: miscellaneous driver fixes

Dimitri Daskalakis linux-kselftest netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 5 repliesApplied 5/5
  2. v14 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Add .get_ts_stats() support to netdevsim
- v1: https://lore.kernel.org/all/[email protected]/

Patches in v2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5eth: fbnic: wait on the correct queues in fbnic_queue_stop()drivers/net/ethernet/meta/fbnic/fbnic_txrx.c+10 -42 repliesApplied
2/5eth: fbnic: skip disabled Tx rings when setting the queue NAPIdrivers/net/ethernet/meta/fbnic/fbnic_txrx.c+6 -01 replyApplied
3/5eth: fbnic: skip freed Tx rings in fbnic_get_ts_stats()drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c+3 -01 replyApplied
4/5netdevsim: report fake timestamping statsdrivers/net/netdevsim/ethtool.c+9 -00 repliesApplied
5/5selftests: drv-net: stats: query timestamping stats while downtools/testing/selftests/drivers/net/stats.py+24 -11 replyApplied

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchBjörn Töpel
1/5R-b
2/5R-b
3/5R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net v2 0/5] eth: fbnic: miscellaneous driver fixes

From: Dimitri Daskalakis <[email protected]>

AI identified several bugs while I was working on unrelated parts of the driver. fbnic_queue_stop() always waits on queue 0 to idle for rx queues. fbnic_get_ts_stats() dereferences a NULL pointer when the interface is down. And fbnic_{set|reset}_netif_napi does not account for disabled rings.

All bugs were verified on HW, and a new stats selftest was added to identify other drivers with the same timestamp stats mishandling.

v2:
- Add .get_ts_stats() support to netdevsim
- v1: https://lore.kernel.org/all/[email protected]/

Dimitri Daskalakis (5):
eth: fbnic: wait on the correct queues in fbnic_queue_stop()
eth: fbnic: skip disabled Tx rings when setting the queue NAPI
eth: fbnic: skip freed Tx rings in fbnic_get_ts_stats()
netdevsim: report fake timestamping stats
selftests: drv-net: stats: query timestamping stats while down

 .../net/ethernet/meta/fbnic/fbnic_ethtool.c   |  3 +++
 drivers/net/ethernet/meta/fbnic/fbnic_txrx.c  | 20 ++++++++++++---
 drivers/net/netdevsim/ethtool.c               |  9 +++++++
 tools/testing/selftests/drivers/net/stats.py  | 25 ++++++++++++++++++-
 4 files changed, 52 insertions(+), 5 deletions(-)
Signature · 1 line
2.52.1