From owner-freebsd-net@FreeBSD.ORG Thu Jul 11 00:26:05 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DA25C260 for ; Thu, 11 Jul 2013 00:26:05 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pd0-x236.google.com (mail-pd0-x236.google.com [IPv6:2607:f8b0:400e:c02::236]) by mx1.freebsd.org (Postfix) with ESMTP id B694112EC for ; Thu, 11 Jul 2013 00:26:05 +0000 (UTC) Received: by mail-pd0-f182.google.com with SMTP id r10so6891410pdi.13 for ; Wed, 10 Jul 2013 17:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=nJz7OKZ5US3HHkCMukDJM541PnHte0RhNc4oartzOHE=; b=UrNQg/46NOmKjQkT2x1TGyiRFJCfCULEYJYQ/gJO6YsSRIMqbKabxlRbfykKIgFyIQ no7sPV2XHjY/iO1XRQUJYwdSAPk/zm6OAVdGXzh18JTtQI/FZoCJDK11KYGD3yXumxky 81ExcL/NDsK/C2f3swhQxPO8XgT0FyCvEt0U87b/8TuvFFOYBS3RUbRmTV4+e4HR9HFW tmn2d+yVgmmS8MgG1GauIz2+VWiVu5OHMnWg5R2aCIFQ3q/FSs5QNCDQZVjWKKHFPNcQ eDeWxoDmqlv+2ePT6MAWII1I/rz1QZKDxJ2XZT3ia0Qg7bdFUU+DlMH+HLqdAxKUhohV e0iw== X-Received: by 10.66.179.17 with SMTP id dc17mr23106038pac.85.1373502365464; Wed, 10 Jul 2013 17:26:05 -0700 (PDT) Received: from pyunyh@gmail.com (lpe4.p59-icn.cdngp.net. [114.111.62.249]) by mx.google.com with ESMTPSA id 4sm36348919pbw.32.2013.07.10.17.26.02 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 10 Jul 2013 17:26:04 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 11 Jul 2013 09:25:57 +0900 From: Yonghyeon PYUN Date: Thu, 11 Jul 2013 09:25:57 +0900 To: Andreas Longwitz Subject: Re: sis(4) flow control Message-ID: <20130711002557.GA6697@michelle.cdnetworks.com> References: <51DC1599.8040805@incore.de> <20130710023512.GB2753@michelle.cdnetworks.com> <51DDDDAB.6070100@incore.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51DDDDAB.6070100@incore.de> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jul 2013 00:26:05 -0000 On Thu, Jul 11, 2013 at 12:18:19AM +0200, Andreas Longwitz wrote: > Yonghyeon PYUN wrote: > > > Hmm, does the change really make flow-control work? > > I believe flow-control should be negotiated with remote link > > partner so you have to announce flow-control capability to link > > partner. In addition, it seems DP83815/DP83816 does not support > > TX flow-control so it just honors RX pause frames. > > Excuse me, the comment in my patch was wrong. Better would be > /* Enable reception of 802.3x pause frames. */. > My soekris boxes are connected to a slow so called "Ethernet Connect" > line (2 Mbit/s). The line works correct and stable if I respect incoming > RX pause frames from the line. I do not need TX flow-control. > > > Try attached patch and let me know how it works. > > Thanks for your patch. I will test it on next update of my soekris boxes > with sis interfaces. Because they are all remote far away this will need > some time. Ok. Make sure to check established link before testing flow-control. 'ifconfig sis0' will show current media and you should have something like the following. ... media: Ethernet autoselect (100baseTX ) If you don't see 'rxpause', re-negotiate flow-control with 'ifconfig sis0 mediaopt flow'.