From owner-cvs-all@FreeBSD.ORG Tue Oct 18 00:42:11 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52CC916A41F; Tue, 18 Oct 2005 00:42:11 +0000 (GMT) (envelope-from cognet@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2644A43D45; Tue, 18 Oct 2005 00:42:11 +0000 (GMT) (envelope-from cognet@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9I0gB8v016943; Tue, 18 Oct 2005 00:42:11 GMT (envelope-from cognet@repoman.freebsd.org) Received: (from cognet@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9I0gBCr016942; Tue, 18 Oct 2005 00:42:11 GMT (envelope-from cognet) Message-Id: <200510180042.j9I0gBCr016942@repoman.freebsd.org> From: Olivier Houchard Date: Tue, 18 Oct 2005 00:42:11 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/em if_em.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 00:42:11 -0000 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