From owner-cvs-src-old@FreeBSD.ORG Mon Jul 25 18:33:00 2011 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 8498E106566C for ; Mon, 25 Jul 2011 18:33:00 +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 59F938FC16 for ; Mon, 25 Jul 2011 18:33:00 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p6PIX03a095759 for ; Mon, 25 Jul 2011 18:33:00 GMT (envelope-from marius@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p6PIX09u095758 for cvs-src-old@freebsd.org; Mon, 25 Jul 2011 18:33:00 GMT (envelope-from marius@repoman.freebsd.org) Message-Id: <201107251833.p6PIX09u095758@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marius@repoman.freebsd.org using -f From: Marius Strobl Date: Mon, 25 Jul 2011 18:32:54 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/dev/gem if_gem.c if_gemvar.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: Mon, 25 Jul 2011 18:33:00 -0000 marius 2011-07-25 18:32:54 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/dev/gem if_gem.c if_gemvar.h Log: SVN rev 224366 on 2011-07-25 18:32:54Z by marius MFC: r223648, r223949 - In gem_reset_rx() also reset the RX MAC which is necessary in order to get it out of a stuck condition that can be caused by GEM_MAC_RX_OVERFLOW. - In gem_reset_rxdma() call gem_setladrf() in order to reprogram the RX filter and restore the previous content of GEM_MAC_RX_CONFIG. While at it consistently use the newly introduced sc_mac_rxcfg throughout the driver instead of reading the its old content. - Increment if_iqdrops instead of if_ierrors in case of RX buffer allocation failure. - According to the GEM datasheet the RX MAC should also be disabled in gem_setladrf() before changing its configuration. - Add error messages to gem_disable_{r,t}x() and take advantage of these throughout the driver instead of duplicating their functionality all over the place. In joint forces with: yongari Revision Changes Path 1.44.2.14 +55 -51 src/sys/dev/gem/if_gem.c 1.15.2.5 +2 -0 src/sys/dev/gem/if_gemvar.h