bge(4): Rework bge_newbuf_{std,jumbo}()
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 23 Jan 2009 07:15:00 +0000 (15:15 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 17 Feb 2009 10:35:29 +0000 (18:35 +0800)
commit1436f9a039dd68fdea60d45fc5232cf8aa479e0d
treea104b873519f073fdd4fc3ad649e1780aaa46a87
parentddca511dc96d82fb3c3e56fe79ca9511e8686254
bge(4): Rework bge_newbuf_{std,jumbo}()

- Always fill the std RX ring, instead of leaving it half full.
  On modern system, 1MBytes non-contiguous memory will not be
  the source of trouble.
- Record RX buffer's physical address along with the RX mbuf.
- Factor out bge_setup_rxdesc_{std,jumbo}(); call them if RX errors
  happen.
- Move RX std buffer busdma map sync/unload into bge_newbuf_std()
- Use temporary busdma map to load RX std buffer, so that the busdma
  map loading failure will not be fatal.
sys/dev/netif/bge/if_bge.c
sys/dev/netif/bge/if_bgereg.h