cvs commit: src/sys/pci if_dc.c if_dcreg.h

Marius Strobl marius at FreeBSD.org
Sat Sep 15 03:00:52 PDT 2007


marius      2007-09-15 10:00:52 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/pci              if_dc.c if_dcreg.h 
  Log:
  MFC: if_dc.c 1.166 1.171, 1.189 (partial), 1.190, 1.192; if_dcreg.h 1.54
  
  - In detach method, move if_free() after bus_teardown_intr().
  - Use our own callout (the dc_tick() callout uses varying periods
    depending on the NIC and isn't used at all with HomePNA links)
    instead of if_slowtimo() for driving dc_watchdog() in order to
    avoid races accessing if_timer.
  - Use bus_get_dma_tag() so dc(4) works on platforms requiring it.
  - Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
  - Fix a bug originally introduced in rev. 1.74; don't reloaded the
    watchdog timer in dc_txeof() in case there are still unhandled
    descriptors as dc_poll() invokes dc_poll() unconditionally.
    Otherwise this would result in the watchdog timer constantly being
    being reloaded and thus circumvent that the watchdog ever fires in
    the DEVICE_POLLING case.
  
  Revision    Changes    Path
  1.160.2.13  +71 -94    src/sys/pci/if_dc.c
  1.44.2.6    +3 -2      src/sys/pci/if_dcreg.h


More information about the cvs-src mailing list