From owner-freebsd-net@FreeBSD.ORG Thu Mar 15 21:25:39 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1FF21065672; Thu, 15 Mar 2012 21:25:39 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id C8BF08FC18; Thu, 15 Mar 2012 21:25:39 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by cyrus.watson.org (Postfix) with ESMTPSA id 8157E46B49; Thu, 15 Mar 2012 17:25:39 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id E0138B91A; Thu, 15 Mar 2012 17:25:38 -0400 (EDT) From: John Baldwin To: freebsd-net@freebsd.org Date: Thu, 15 Mar 2012 14:17:04 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p10; KDE/4.5.5; amd64; ; ) References: <4F5C587B.6010004@gmail.com> In-Reply-To: <4F5C587B.6010004@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201203151417.04507.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 15 Mar 2012 17:25:39 -0400 (EDT) Cc: Adrian Chadd , Jason Wolfe , Hooman Fazaeli Subject: Re: Intel 82574L interface wedging - em7.3.2/8.2-STABLE X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2012 21:25:40 -0000 On Sunday, March 11, 2012 3:47:07 am Hooman Fazaeli wrote: > On 3/11/2012 5:31 AM, Adrian Chadd wrote: > > Are you able to post the patch here? > > Maybe Jack can look at what's going on and apply it to the latest > > intel ethernet driver. > > > > > > Adrian > > > > Below is the patch for if_em.c (7.2.3). It simply checks driver's > queue status when the link state changes (inactive -> active) and > start transmit task if queue(s) are not empty. > > It also contains stuff I have added to compile on 7 plus some code > for test and diagnostics. Hmm, so I have yet to test this, but I found several bugs related to transmit in em(4) and igb(4) recently just reading the code. (Mostly unnecessary scheduling of tasks for transmit.) I've included your change of restarting TX when link becomes active. I've also updated it to fix resume for em and igb to DTRT when buf_ring is used, and to not include old-style start routines at all when using multiq. It is at http://www.freebsd.org/~jhb/patches/e1000_txeof2.patch -- John Baldwin