From owner-cvs-src@FreeBSD.ORG Thu Oct 20 08:46:45 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org 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 E19B416A41F; Thu, 20 Oct 2005 08:46:45 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 819D743D82; Thu, 20 Oct 2005 08:46:44 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9K8kimq069994; Thu, 20 Oct 2005 08:46:44 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9K8kidE069993; Thu, 20 Oct 2005 08:46:44 GMT (envelope-from glebius) Message-Id: <200510200846.j9K8kidE069993@repoman.freebsd.org> From: Gleb Smirnoff Date: Thu, 20 Oct 2005 08:46:44 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/em if_em.c if_em.h if_em_hw.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 20 Oct 2005 08:46:46 -0000 glebius 2005-10-20 08:46:44 UTC FreeBSD src repository Modified files: sys/dev/em if_em.c if_em.h if_em_hw.h Log: Revamp interrupt handling in em(4) driver: o Do not mask the RX overrun interrupt. o Rewrite em_intr(): - Axe EM_MAX_INTR. - Cycle acknowledging interrupts and processing packets until zero interrupt cause register is read. - If RX overrun comes in log this fact. [ NetBSD also resets adapter in this case, but my tests showed that this is not needed and only pessimizes behavior under heavy load. ] - Since almost all functions is rewritten, style the remaining lines. This fixes em(4) interfaces wedging under high load. In collaboration with: wpaul, cognet Obtained from: NetBSD Revision Changes Path 1.80 +37 -31 src/sys/dev/em/if_em.c 1.34 +1 -8 src/sys/dev/em/if_em.h 1.16 +1 -0 src/sys/dev/em/if_em_hw.h