]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: remove BUG_ON() and reset the queue to handle RX errors
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Fri, 25 Mar 2016 09:37:34 +0000 (10:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Mar 2016 15:44:08 +0000 (11:44 -0400)
commit20c3a8ec1c153d976c1d85078736c30061388854
treec92d0e70c46c389930360a37940801289db80af1
parentb1a577976d67317ea1fb2e4a05abdbcfd2209cb9
net: macb: remove BUG_ON() and reset the queue to handle RX errors

This patch removes two BUG_ON() used to notify about RX queue corruptions
on macb (not gem) hardware without actually handling the error.

The new code skips corrupted frames but still processes faultless frames.
Then it resets the RX queue before restarting the reception from a clean
state.

This patch is a rework of an older patch proposed by Neil Armstrong:
http://patchwork.ozlabs.org/patch/371525/

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c