From owner-cvs-all@FreeBSD.ORG Tue Sep 14 22:06:25 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 8A0B016A4CF; Tue, 14 Sep 2004 22:06:25 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7657B43D4C; Tue, 14 Sep 2004 22:06:25 +0000 (GMT) (envelope-from wpaul@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i8EM6PTd032522; Tue, 14 Sep 2004 22:06:25 GMT (envelope-from wpaul@repoman.freebsd.org) Received: (from wpaul@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i8EM6Psd032521; Tue, 14 Sep 2004 22:06:25 GMT (envelope-from wpaul) Message-Id: <200409142206.i8EM6Psd032521@repoman.freebsd.org> From: Bill Paul Date: Tue, 14 Sep 2004 22:06:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/nge if_nge.c if_ngereg.h 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: Tue, 14 Sep 2004 22:06:25 -0000 wpaul 2004-09-14 22:06:25 UTC FreeBSD src repository Modified files: sys/dev/nge if_nge.c if_ngereg.h Log: Make two major changes to this code to address some stability/corruption problems: 1) Add locking for SMP, code provided by Alan Cox 2) While testing Alan's patches, I observed serious problems with the jumbo buffer allocation code (machine crashed twice), so I gutted it and rewrote the receive handler to use multiple chained descriptors. Each RX descriptor gets a single 2K cluster, and the chip will fill in as many as it needs to hold the complete packet. User reports that this corrects the data corruption issues previously observed and discussed on -current. Note that this driver still needs to be hit with the busdma stick. I intend to inflict said beating in the near future. MFC after: 1 week Revision Changes Path 1.66 +172 -251 src/sys/dev/nge/if_nge.c 1.10 +66 -48 src/sys/dev/nge/if_ngereg.h