From owner-cvs-src-old@FreeBSD.ORG Wed Jun 24 20:56:27 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CE991065670 for ; Wed, 24 Jun 2009 20:56:27 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5A1D88FC13 for ; Wed, 24 Jun 2009 20:56:27 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n5OKuRZS065939 for ; Wed, 24 Jun 2009 20:56:27 GMT (envelope-from marius@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5OKuREp065938 for cvs-src-old@freebsd.org; Wed, 24 Jun 2009 20:56:27 GMT (envelope-from marius@repoman.freebsd.org) Message-Id: <200906242056.n5OKuREp065938@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marius@repoman.freebsd.org using -f From: Marius Strobl Date: Wed, 24 Jun 2009 20:56:06 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/cas if_cas.c if_casvar.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 20:56:27 -0000 marius 2009-06-24 20:56:06 UTC FreeBSD src repository Modified files: sys/dev/cas if_cas.c if_casvar.h Log: SVN rev 194904 on 2009-06-24 20:56:06Z by marius - Change this driver to do taskqueue(9) based TX and interrupt handling in order to reduce interrupt overhead which results in better performance. - Call ether_ifdetach(9) before stopping the controller and the callouts detach in order to prevent active BPF listeners to clear promiscuous mode which may lead to the tick callout being restarted which will trigger a panic once it's actually gone. - Add explicit IFF_DRV_RUNNING checking in order to prevent extra link up/down events when using dhclient(8). - Use the correct macro for deciding whether 2/3 of the available TX descriptors are used. - Wrap the RX fault printing in #ifdef CAS_DEBUG in order to not unnecessarily frighten users and as debugging was the actual intention. Real errors caused by these faults still will be accumulated as input errors. It might be a good idea to later on add driver specific counters for the faults though. Submitted by: yongari (original patch) Revision Changes Path 1.2 +133 -57 src/sys/dev/cas/if_cas.c 1.2 +3 -0 src/sys/dev/cas/if_casvar.h