freebsd-skq/sys/pci
truckman 21e6787900 The transmit frame status is stored in the last transmit descriptor for the
frame, not the first.  It is probably also not safe to free the mbuf chain
as soon as the OWN bit is cleared on the first descriptor since the chip
may not be done copying the frame into the transmit FIFO.  Revert the part of
of busdma conversion (if_dc.c rev 1.115) which changed dc_txeof() to look for
the status in the first descriptor and free the mbuf chain when processing
the first descriptor for the frame, and revert the matching changes elsewhere
in the driver.  This part of the busdma change caused the driver to report
spurious collisions and output errors, even when running in full-duplex mode.
Reverting the mbuf chain handling slightly complicates dc_dma_map_txbuf(),
since it is responsible for setting the OWN bits on the descriptors, but does
not normally have direct access to the mbuf chain.

Tested by:
  Dejan Lesjak <dejan.lesjak at ijs.si>  alpha/<Intel 21143 10/100BaseTX>
  "Xin LI" <delphij at frontfree.net>    i386/<Macronix 98713 10/100BaseTX>
  Wiktor Niesiobedzki <bsd at w.evip.pl> i386/<3Com OfficeConnect 10/100B>

Reviewed by:	mux
2004-01-08 06:22:15 +00:00
..
agp_ali.c
agp_amd.c
agp_i810.c
agp_if.m
agp_intel.c
agp_nvidia.c
agp_sis.c
agp_via.c
agp.c
agppriv.h
agpreg.h
agpvar.h
alpm.c
amdpm.c
cy_pci.c
dc21040reg.h
if_dc.c The transmit frame status is stored in the last transmit descriptor for the 2004-01-08 06:22:15 +00:00
if_dcreg.h The transmit frame status is stored in the last transmit descriptor for the 2004-01-08 06:22:15 +00:00
if_de.c
if_devar.h
if_mn.c
if_pcn.c Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones. 2003-12-08 07:54:15 +00:00
if_pcnreg.h
if_rl.c Fix detection of RealTek 8129 PCI cards. Apparently, these cards 2004-01-02 17:22:12 +00:00
if_rlreg.h
if_sf.c Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones. 2003-12-08 07:54:15 +00:00
if_sfreg.h
if_sis.c Vastly improve performance of IRQ handling on stopped interfaces with 2003-12-25 22:14:25 +00:00
if_sisreg.h Vastly improve performance of IRQ handling on stopped interfaces with 2003-12-25 22:14:25 +00:00
if_sk.c Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones. 2003-12-08 07:54:15 +00:00
if_skreg.h
if_ste.c Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones. 2003-12-08 07:54:15 +00:00
if_stereg.h
if_ti.c
if_tireg.h
if_tl.c Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones. 2003-12-08 07:54:15 +00:00
if_tlreg.h
if_vr.c Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones. 2003-12-08 07:54:15 +00:00
if_vrreg.h
if_wb.c Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones. 2003-12-08 07:54:15 +00:00
if_wbreg.h
if_xl.c Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones. 2003-12-08 07:54:15 +00:00
if_xlreg.h
intpm.c
intpmreg.h
locate.pl
ncr.c
ncrreg.h
ti_fw2.h
ti_fw.h
viapm.c
xmaciireg.h
xrpu.c
yukonreg.h