bgmac: simplify/optimize rx DMA error handling
authorFelix Fietkau <nbd@openwrt.org>
Tue, 14 Apr 2015 10:07:57 +0000 (12:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Apr 2015 18:57:10 +0000 (14:57 -0400)
commit56faacd04509f0a60ed646473a930fe584f1cb02
treefe36fc1510338cc3ca23683f270821f4ebfcfb1a
parent4b62dce450e2447146ff6924a1ce8ad1a6592107
bgmac: simplify/optimize rx DMA error handling

Allocate a new buffer before processing the completed one. If allocation
fails, reuse the old buffer.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Acked-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c