DragonFly commits List (threaded) for 2009-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
DragonFly-2.3.0.195.gc36fd9 master sys/dev/netif/bce if_bce.c if_bcereg.h
commit c36fd9eeee1db457b74f08bb1db0c56d97645410
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date: Tue Jan 27 22:53:18 2009 +0800
bce(4): Adjust RX path to avoid fatal error caused by busdma failure
- Create tmp busdma map for loading mbuf on RX path, so busdma map
loading failure will not be fatal.
- Don't unload RX buffer's busdma map until we could make sure that
new RX buffer could be loaded.
- On RX path, if error happens, we only need to reconfigure RX desc,
so just call bce_setup_rxdesc_std().
- Make sure that sw_chain_cons and sw_chain_prod are same, else
log error and reconfigure the RX desc indiced by sw_chain_cons.
- Utilize bus_dmamap_load_mbuf_segment().
Summary of changes:
sys/dev/netif/bce/if_bce.c | 159 ++++++++++++++++++-----------------------
sys/dev/netif/bce/if_bcereg.h | 6 +--
2 files changed, 70 insertions(+), 95 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c36fd9eeee1db457b74f08bb1db0c56d97645410
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]