]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
net: macb: Fix race condition in driver when Rx frame is dropped
authorPunnaiah Choudary Kalluri <punnaiah.choudary.kalluri@xilinx.com>
Tue, 14 Apr 2015 05:34:49 +0000 (11:04 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 16 Apr 2015 08:45:10 +0000 (10:45 +0200)
commitb66859a6f77446ff522fe2fff7c4c3c7c77d4003
treeb662fdc599d9d7dda132a6b2539fd1fae26060d6
parent59a205be710582dbda10bb52d8bced1b0c1f5e7d
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: Michal Simek <michal.simek@xilinx.com>
drivers/net/ethernet/cadence/macb.c