From owner-freebsd-net@FreeBSD.ORG Tue Dec 25 06:40:16 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 64C858FA for ; Tue, 25 Dec 2012 06:40:16 +0000 (UTC) (envelope-from telemat@extrim.it) Received: from fatboy.mirasystem.net (unknown [IPv6:2a02:17d0:af:ff01:1:2::]) by mx1.freebsd.org (Postfix) with ESMTP id C38018FC14 for ; Tue, 25 Dec 2012 06:40:14 +0000 (UTC) Received: from tsar.itmh.local (unknown [172.16.64.37]) by fatboy.mirasystem.net (Postfix) with ESMTP id 8D523126B7B9; Tue, 25 Dec 2012 12:40:12 +0600 (YEKT) Message-ID: <50D94A4C.1020407@extrim.it> Date: Tue, 25 Dec 2012 12:40:12 +0600 From: Tsaregorodtsev Denis User-Agent: Mozilla/5.0 (X11; Linux i686; 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-net 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 06:40:16 -0000 On 25.12.2012 07:01, 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. > but on my production machine, when i see 'no buffer space available', pinging the interface does not fixes it. Last time I tried to ping, ssh to the machine, but machine stayed unavailable. Only `/etc/rc.d/netif restart` from local console helped. I will try to reproduce the situation on test machine. if this happens, I will try the patch. Thanks