freebsd-nq/sys/dev/bge
Pyun YongHyeon 943787f3a7 Reimplement Rx buffer allocation to handle dma map load failure.
Introduce two spare dma maps for standard buffer and jumbo buffer
respectively. If loading a dma map failed reuse previously loaded
dma map. This should fix unloaded dma map is used in case of dma
map load failure. Also don't blindly unload dma map and defer
dma map sync and unloading operation until we know dma map for new
buffer is successfully loaded. This change saves unnecessary dma
load/unload operation. Previously bge(4) tried to reuse mbuf
with unloaded dma map which is really bad thing in bus_dma(9)
perspective.
While I'm here update if_iqdrops if we can't allocate Rx buffers.
2009-11-07 01:01:33 +00:00
..
if_bge.c Reimplement Rx buffer allocation to handle dma map load failure. 2009-11-07 01:01:33 +00:00
if_bgereg.h Reimplement Rx buffer allocation to handle dma map load failure. 2009-11-07 01:01:33 +00:00