]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: Fix race condition in driver when Rx frame is dropped
authorPunnaiah Choudary Kalluri <punnaiah.choudary.kalluri@xilinx.com>
Wed, 29 Apr 2015 03:04:46 +0000 (08:34 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Apr 2015 19:24:46 +0000 (15:24 -0400)
commit9219c04d4ff94d9db7da6a92c4824b3949b439ee
treed2671fa5854cde79770e8ad37900b6b05622852d
parent2f03d7124b69fc33f8995e1f059a5f414571127c
net: macb: Fix race condition in driver when Rx frame is dropped

Under heavy Rx load, observed that the Hw is updating the USED bit
and it is not updating the received frame status to the BD control
field. This could be lack of resources for processing the BDs at high
data rates. Driver drops the frame associated with this BD but not
clearing the USED bit. So, this is causing hang condition as Hw
expects USED bit to be cleared for this BD.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c