From owner-freebsd-net@FreeBSD.ORG Tue Dec 25 13:43:15 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 50661E0E for ; Tue, 25 Dec 2012 13:43:15 +0000 (UTC) (envelope-from hoomanfazaeli@gmail.com) Received: from mail-we0-f174.google.com (mail-we0-f174.google.com [74.125.82.174]) by mx1.freebsd.org (Postfix) with ESMTP id C81988FC0C for ; Tue, 25 Dec 2012 13:43:14 +0000 (UTC) Received: by mail-we0-f174.google.com with SMTP id x10so3623112wey.19 for ; Tue, 25 Dec 2012 05:43:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=JsLlEbIXMq8KuLIOAv/gA0SjRD5nu7iDkRUI1fJsdc8=; b=cYtlQaOHN4IuYEWYvUgxu7gR1CPGPIFHyu7kHaCBJEwpwXQHH7k+9nkDQ1mZdvzdU3 d/+psU4knINr7wL4tXipuzzTWVfcgHoOPfEHuG6hRSfEL0JQNm5bW2tqYYBkahstw6vk D7To4hpnQdv92wUgodqYVxDdvxJPgMlHA2s5A0pKYXYnbGHjoKnHWGNBr9xBPXwambTI l40MLqOuLjlfvVCT8/gZ+PPS+oFjIXFuBRrobrY1Dvd2CLYncCCGJFxexZwl61lmwXLc VOz0pRRh1H9aYysk04yH98L6pP0HMcncZTXW6cbxgdBRfqLDnDevCBBGJZcgVvJDjheQ rTKA== X-Received: by 10.180.87.228 with SMTP id bb4mr21204015wib.31.1356442987892; Tue, 25 Dec 2012 05:43:07 -0800 (PST) Received: from [192.168.2.30] ([2.176.192.140]) by mx.google.com with ESMTPS id p3sm47889720wic.8.2012.12.25.05.43.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Dec 2012 05:43:07 -0800 (PST) Message-ID: <50D9AD62.6060102@gmail.com> Date: Tue, 25 Dec 2012 17:12:58 +0330 From: Hooman Fazaeli User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Ryan Stone Subject: Re: 'no buffer space available' after switch goes down on freeBSD 7.3 References: <50D45282.5080708@extrim.it> <50D7F61A.5020304@extrim.it> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net , Tsaregorodtsev Denis X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2012 13:43:15 -0000 On 12/25/2012 4:31 AM, Ryan Stone wrote: > I don't believe that this is fixed in later versions of the driver. The > problem is that when the interface loses link the transmit queue can fill > up. Once that happens the driver never gets any more calls from the network > stack to make it send packets. Pinging the interface fixes it because the > driver processes rx.and tx from the same context, so when it receives a > packet it starts transmitting again. > > The patch that I sent fixes the problem by forcing the driver to process > the tx queue when ever links goes from down to up. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > I have not tested it but it is apparently fixed: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/e1000/if_em.c#rev1.21.2.23 -- Best regards. Hooman Fazaeli