From owner-cvs-src@FreeBSD.ORG Fri Nov 28 17:25:37 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C33E16A4D2; Fri, 28 Nov 2003 17:25:37 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BFEF440C3; Fri, 28 Nov 2003 17:24:07 -0800 (PST) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hAT1NxXJ065462; Fri, 28 Nov 2003 17:23:59 -0800 (PST) (envelope-from sam@repoman.freebsd.org) Received: (from sam@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hAT1NxeO065461; Fri, 28 Nov 2003 17:23:59 -0800 (PST) (envelope-from sam) Message-Id: <200311290123.hAT1NxeO065461@repoman.freebsd.org> From: Sam Leffler Date: Fri, 28 Nov 2003 17:23:59 -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/dev/ath if_ath.c if_athioctl.h if_athvar.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2003 01:25:38 -0000 sam 2003/11/28 17:23:59 PST FreeBSD src repository Modified files: sys/dev/ath if_ath.c if_athioctl.h if_athvar.h Log: o track API change for HAL v0.9.6.1 o fix race condition when processing rx descriptors: because we use a self-linked descriptor at the end of the rx descriptor list to avoid rx overruns (which can easily happen for 5212 parts that enable PHY errors) we must carefully check that a descriptor is "done" by looking ahead to the next descriptor before believing the done bit in the current descriptor (this is all handled in the HAL since the rx descriptor format is chip-specific so we need to pass in two additional parameters--the physical address of the current descriptor and the virtual address of the next descriptor in the list) o check copyout return status for SIOCGATHSTATS ioctl Approved by: re (scottl) Revision Changes Path 1.36 +43 -10 src/sys/dev/ath/if_ath.c 1.4 +9 -0 src/sys/dev/ath/if_athioctl.h 1.10 +4 -8 src/sys/dev/ath/if_athvar.h