From: Soren Brinkmann Date: Sun, 4 May 2014 22:43:02 +0000 (-0700) Subject: net: macb: Fix race between HW and driver X-Git-Tag: omap-for-v3.16/fixes-against-rc1~214^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8ea5a22bd3b27d68ec2f95483ce8bfe7f114933;p=pandora-kernel.git net: macb: Fix race between HW and driver Under "heavy" RX load, the driver cannot handle the descriptors fast enough. In detail, when a descriptor is consumed, its used flag is cleared and once the RX budget is consumed all descriptors with a cleared used flag are prepared to receive more data. Under load though, the HW may constantly receive more data and use those descriptors with a cleared used flag before they are actually prepared for next usage. The head and tail pointers into the RX-ring should always be valid and we can omit clearing and checking of the used flag. Signed-off-by: Soren Brinkmann Signed-off-by: David S. Miller --- Reading git-diff-tree failed