]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8634318c90a18e66a1edf84de885a867cb43652e
tree6dcc70186cdca997df18399bbda806339100f2ea
parentd383bbe638871c113733db887419f022cae2a02c
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