sky2: lock less transmit completion
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 14 Aug 2009 22:33:19 +0000 (15:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Aug 2009 22:33:19 +0000 (15:33 -0700)
commit481cea4a4d72aabe76dbb86b1a64f4e8931eca25
tree6dcc70186cdca997df18399bbda806339100f2ea
parentaf18d8b89930aecc742982634adaf97dfb43ed3b
sky2: lock less transmit completion

Transmit completion can safely run lockless against transmit start.
In the normal case, completion is done from NAPI and only looks
at elements that are at the tail of the ring.  When doing shutdown
or reset, the transmiter should be completely block by NAPI disable
and blocking of transmit queue.

Based on earlier work by Mike McCormack.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sky2.c