]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
mv643xx_eth: get rid of receive-side locking
authorLennert Buytenhek <buytenh@wantstofly.org>
Sun, 24 Aug 2008 02:33:36 +0000 (04:33 +0200)
committerLennert Buytenhek <buytenh@marvell.com>
Fri, 5 Sep 2008 04:33:58 +0000 (06:33 +0200)
commit2257e05c170561bb1168ee50205ae920008c37fb
tree90982c8a2a60aaa246d0008581a9966f4b972034
parent78fff83b0347d72e996cef883f09c3e5b8544f73
mv643xx_eth: get rid of receive-side locking

By having the receive out-of-memory handling timer schedule the napi
poll handler and then doing oom processing from the napi poll handler,
all code that touches receive state moves to napi context, letting us
get rid of all explicit locking in the receive paths since the only
mutual exclusion we need anymore at that point is protection against
reentering ourselves, which is provided by napi synchronisation.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
drivers/net/mv643xx_eth.c