cvs commit: src/sys/dev/em if_em.c
Olivier Houchard
cognet at FreeBSD.org
Mon Oct 17 17:42:11 PDT 2005
cognet 2005-10-18 00:42:10 UTC
FreeBSD src repository
Modified files:
sys/dev/em if_em.c
Log:
- Use BUS_DMASYNC_PREWRITE in em_get_buf(), as the adapter is about to read
the descriptors set.
- In em_process_receive_interrupts(), call bus_dmamap_sync() for the
descriptors set each time we modify one descriptor, instead of doing it only
at the function exit, to make sure the adapters know he can re-use the
descriptor.
This helps on arm with write-back data cache (and possibly on other arches
with bounce pages, I don't know) under heavy network load. Without this,
if we attempt to process more than num_rx_desc descriptors, the adapter
would just stop processing rx interrupts.
Revision Changes Path
1.78 +4 -3 src/sys/dev/em/if_em.c
More information about the cvs-src
mailing list