Skip to content

net: dev: PREEMPT_RT fixups.

Sebastian Andrzej Siewior bpf linux-mips netdev 4 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 4 repliesApplied 3/3
  2. v2 posting 2/23 patches 9 repliesSuperseded
  3. v2 posting 1/23 of 4 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches22 repliesSuperseded

v1 from the cover letter

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: dev: Remove preempt_disable() and get_cpu() in netif_rx_internal().net/core/dev.c+1 -40 repliesApplied
2/3net: dev: Makes sure netif_rx() can be invoked in any context.drivers/net/amt.c drivers/net/geneve.c drivers/net/gtp.c +13 more+60 -734 repliesApplied
3/3net: dev: Make rps_lock() disable interrupts.net/core/dev.c+42 -340 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchEric DumazetToke Høiland-JørgensenJakub Kicinski
1/3R-b R-b
2/3R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH net-next v3 0/3] net: dev: PREEMPT_RT fixups.

Hi,

this series removes or replaces preempt_disable() and local_irq_save() sections which are problematic on PREEMPT_RT.
Patch 2 makes netif_rx() work from any context after I found suggestions for it in an old thread. Should that work, then the context-specific variants could be removed.

v2…v3:
- #2
- Export __netif_rx() so it can be used by everyone.
- Add a lockdep assert to check for interrupt context.
- Update the kernel doc and mention that the skb is posted to backlog NAPI.
- Use __netif_rx() also in drivers/net/*.c.
- Added Toke''s review tag and kept Eric's desptite the changes made.

v1…v2:
- #1 and #2
- merge patch 1 und 2 from the series (as per Toke).
- updated patch description and corrected the first commit number (as per Eric).
- #2
- Provide netif_rx() as in v1 and additionally __netif_rx() without local_bh disable()+enable() for the loopback driver. __netif_rx() is not exported (loopback is built-in only) so it won't be used drivers. If this doesn't work then we can still export/ define a wrapper as Eric suggested.
- Added a comment that netif_rx() considered legacy.
- #3
- Moved ____napi_schedule() into rps_ipi_queued() and renamed it napi_schedule_rps().
https://lore.kernel.org/all/[email protected]/

v1:
https://lore.kernel.org/all/[email protected]