Skip to content

sky2: Resolve sky2_down/transmit races, lockless transmit

Mike McCormack netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5sky2: Avoid rewinding sky2->tx_proddrivers/net/sky2.c+0 -02 replies
2/5sky2: Move tx reset functionality to sky2_tx_reset()drivers/net/sky2.c+26 -180 replies
3/5sky2: Reset tx train after interrupts disabled.drivers/net/sky2.c+2 -20 replies
4/5sky2: Remove tx locksdrivers/net/sky2.c+0 -20 replies
5/5sky2: Lock tx queue when calling sky2_down locallydrivers/net/sky2.c+11 -20 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchStephen Hemminger
1/5A-b
2/5
3/5
4/5
5/5

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

Read the v1 thread

Cover letter [PATCH 0/5] sky2: Resolve sky2_down/transmit races, lockless transmit

Hi Stephen,

Here is an alternate (and more intrusive) patch set to solve the transmit during restart issues.

These patches avoid introducing a new state variable by

* reworking the transmit queue to work without locks
* tweaking sky2_down() to avoid invalid tx queue positions being received in the status queue

Please let me know if this looks better,

thanks,

Mike