Skip to content

rocker: revert back to support for nowait processes

[email protected] netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5rocker: revert back to support for nowait processesdrivers/net/ethernet/rocker/rocker.c+112 -900 replies
2/5rocker: mark neigh update event processing as 'no wait'drivers/net/ethernet/rocker/rocker.c+2 -10 replies
3/5rocker: mark STP update as 'no wait' processingdrivers/net/ethernet/rocker/rocker.c+2 -10 replies
4/5rocker: move MAC learn event back to 'no wait' processingdrivers/net/ethernet/rocker/rocker.c+3 -370 replies
5/5rocker: move port stop to 'no wait' processingdrivers/net/ethernet/rocker/rocker.c+2 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 0/5] rocker: revert back to support for nowait processes

From: Scott Feldman <[email protected]>

One of the items removed from the rocker driver in the Spring Cleanup patch series was the ability to mark processing in the driver as "no wait" for those contexts where we cannot sleep. Turns out, we have "no wait" contexts where we want to program the device and we don't want to defer the processing to a process context. So re-add the ROCKER_OP_FLAG_NOWAIT flag to mark such processes, and propagate flags to mem allocator and to the device cmd executor. With NOWAIT, mem allocs are GFP_ATOMIC and device cmds are queued to the device, but the driver will not wait (sleep) for the response back from the device.

My bad for removing NOWAIT support in the first place; I thought we could swing non-sleep contexts to process context using a work queue, for example, but there is push-back to keep processing in original context.

Scott Feldman (5):
rocker: revert back to support for nowait processes
rocker: mark neigh update event processing as 'no wait'
rocker: mark STP update as 'no wait' processing
rocker: move MAC learn event back to 'no wait' processing
rocker: move port stop to 'no wait' processing

 drivers/net/ethernet/rocker/rocker.c |  245 ++++++++++++++++------------------
 1 file changed, 118 insertions(+), 127 deletions(-)
Signature · 1 line
1.7.10.4