]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4add793221d9a53a630b2d83996a4c2cc33713ad
treefe36fc1510338cc3ca23683f270821f4ebfcfb1a
parentc77dce4c9967e92e4029a9248995624a77b44fc2
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