linux-stable/drivers/net/ethernet/faraday
Benjamin Herrenschmidt d72e01a043 ftgmac100: Use a scratch buffer for failed RX allocations
We can occasionally fail to allocate new RX buffers at
runtime or when starting the driver. At the moment the
latter just fails to open which is fine but the former
leaves stale DMA pointers in the ring.

Instead, use a scratch page and have all RX ring descriptors
point to it by default unless a proper buffer can be allocated.

It will help later on when re-initializing the whole ring
at runtime on link changes since there is no clean failure
path there unlike open().

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-04-06 15:39:45 -07:00
..
ftgmac100.c ftgmac100: Use a scratch buffer for failed RX allocations 2017-04-06 15:39:45 -07:00
ftgmac100.h ftgmac100: Rework NAPI & interrupts handling 2017-04-06 12:38:04 -07:00
ftmac100.c drivers: net: ethernet: remove incorrect __exit markups 2017-03-02 14:33:49 -08:00
ftmac100.h
Kconfig drivers/net: remove all references to obsolete Ethernet-HOWTO 2015-06-23 06:50:35 -07:00
Makefile