Skip to content

net: cpsw: Execute ndo_set_rx_mode callback in a work queue

Kevin Hao linux-omap netdev stable 5 versions – Applied

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

Get series with b4
b4 am [email protected] change-id 20260123-bbb-dc3675f671d0

Versions newest first

  1. v5 Latest2 patches 0 repliesApplied 2/2
  2. v41 patch 4 repliesSuperseded
  3. v31 patch 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch2 repliesSuperseded
v11 patch0 repliesSuperseded

Changes in v5 from the cover letter

- Apply the same fix to the legacy cpsw driver as well.

- Use goto label in cpsw_ndo_set_rx_mode_work() for the undo path as suggested by Jakub.

- Move the disable_work_sync() call to after unregister_netdev() as suggested by Jakub.

- Link to v4: https://lore.kernel.org/r/[email protected]

Patches in v5 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: cpsw_new: Execute ndo_set_rx_mode callback in a work queuedrivers/net/ethernet/ti/cpsw_new.c drivers/net/ethernet/ti/cpsw_priv.h+30 -50 repliesApplied
2/2net: cpsw: Execute ndo_set_rx_mode callback in a work queuedrivers/net/ethernet/ti/cpsw.c+35 -60 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH net v5 0/2] net: cpsw: Execute ndo_set_rx_mode callback in a work queue

These two patches resolve an RTNL assertion call trace issue in both the legacy and new cpsw drivers.

Thanks,
Kevin

---
Changes in v5:
- Apply the same fix to the legacy cpsw driver as well.

- Use goto label in cpsw_ndo_set_rx_mode_work() for the undo path as suggested by Jakub.

- Move the disable_work_sync() call to after unregister_netdev() as suggested by Jakub.

- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Using schedule_work() instead of creating a dedicated workqueue.

- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Resolve the deadlock issue identified in the AI review [2] by moving the netif_running() check under the RTNL lock and removing the cancel_work_sync() call in cpsw_ndo_stop().

- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Addresses the issue identified in the AI review [1]:
- Adds a netif_running() check in cpsw_ndo_set_rx_mode_work()
- Cancels the rx_mode_work in cpsw_ndo_stop()

- Link to v1: https://lore.kernel.org/r/[email protected]

[1] https://netdev-ai.bots.linux.dev/ai-review.html?id=bd885e1e-1aed-4755-ad60-7150737ad0f5
[2] https://netdev-ai.bots.linux.dev/ai-review.html?id=c9fc3cf8-a06c-4cb8-b26b-910e775951a0

---
Kevin Hao (2):
net: cpsw_new: Execute ndo_set_rx_mode callback in a work queue
net: cpsw: Execute ndo_set_rx_mode callback in a work queue

 drivers/net/ethernet/ti/cpsw.c      | 41 +++++++++++++++++++++++++++++++------
 drivers/net/ethernet/ti/cpsw_new.c  | 34 +++++++++++++++++++++++++-----
 drivers/net/ethernet/ti/cpsw_priv.h |  1 +
 3 files changed, 65 insertions(+), 11 deletions(-)

---
base-commit: 193579fe01389bc21aff0051d13f24e8ea95b47d
change-id: 20260123-bbb-dc3675f671d0

Best regards,

Signature · 1 line
Kevin Hao <[email protected]>