Date: Sat, 15 Sep 2007 10:00:52 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pci if_dc.c if_dcreg.h Message-ID: <200709151000.l8FA0qMV034153@repoman.freebsd.org>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709151000.l8FA0qMV034153>
