DragonFly- master sys/dev/netif/bce if_bce.c if_bcereg.h

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Feb 17 03:33:51 PST 2009

commit c36fd9eeee1db457b74f08bb1db0c56d97645410
Author: Sepherosa Ziehau <sephe at 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(-)


DragonFly BSD source repository

More information about the Commits mailing list