Date: Wed, 6 Jan 2010 23:34:53 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/bge if_bge.c if_bgereg.h Message-ID: <201001062335.o06NZ9dJ051801@repoman.freebsd.org>
index | next in thread | raw e-mail
yongari 2010-01-06 23:34:53 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/dev/bge if_bge.c if_bgereg.h
Log:
SVN rev 201694 on 2010-01-06 23:34:53Z by yongari
MFC 199663-199666
r199663:
Due to newly added PCIe capabilities fallback code for finding the
PCIe capability did not work right on recent controllers. Remove
FreeBSD 6.x support code.
r199664:
Use capability pointer to access PCIe registers rather than
directly access them at fixed address. While I'm here don't touch
other bits of PCIe device control register except max payload size.
r199665:
Controller does not write Rx descriptors, remove BUS_DMASYNC_PREREAD.
r199666:
Rearrange bge_start_locked to see we can send more frames by
checking IFF_DRV_RUNNING and IFF_DRV_OACTIVE flags. Also if we
have less than 16 free send BDs set IFF_DRV_OACTIVE and try it
later. Previously bge(4) used to reserve 16 free send BDs after
loading dma maps but hardware just need one reserved send BD. If
prouder index has the same value of consumer index it means the Tx
queue is empty.
While I'm here check IFQ_DRV_IS_EMPTY first to save one lock
operation.
Revision Changes Path
1.226.2.10 +66 -75 src/sys/dev/bge/if_bge.c
1.83.2.6 +3 -0 src/sys/dev/bge/if_bgereg.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001062335.o06NZ9dJ051801>
