From owner-cvs-all@FreeBSD.ORG Wed Mar 31 13:10:02 2004 Return-Path: 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 4136D16A4CF; Wed, 31 Mar 2004 13:10:02 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3872743D1F; Wed, 31 Mar 2004 13:10:02 -0800 (PST) (envelope-from ru@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2VLA2Ge092912; Wed, 31 Mar 2004 13:10:02 -0800 (PST) (envelope-from ru@repoman.freebsd.org) Received: (from ru@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2VLA1O7092911; Wed, 31 Mar 2004 13:10:01 -0800 (PST) (envelope-from ru) Message-Id: <200403312110.i2VLA1O7092911@repoman.freebsd.org> From: Ruslan Ermilov Date: Wed, 31 Mar 2004 13:10:01 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/pci if_ste.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 31 Mar 2004 21:10:02 -0000 ru 2004/03/31 13:10:01 PST FreeBSD src repository Modified files: sys/pci if_ste.c Log: Under a heavy RX load, at least with D-Link DFE-550TX adapters, the driver's RX ring head may fall behind the chip, causing the stuck traffic, disordered packets, etc. Work around this by adopting the technique of resyncing RX head used in dc(4) and xl(4) drivers, but do it in a slightly different place to reduce the number of resyncs needed. Also, set the NIC's RX polling period to a more meaningful value, to stop overloading the PCI bus (this also reduces the number of resyncs by a factor of 3 or more in a long run; the actual number is very dependent on a nature of the traffic). Maintain the statistics counter as the hw.ste_rxsyncs sysctl. In cooperation with: Vsevolod Lobko OK'ed by: ambrisko MFC after: 5 days Revision Changes Path 1.66 +18 -1 src/sys/pci/if_ste.c