From nobody@FreeBSD.org  Tue Feb  1 10:35:22 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5A0D316A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Feb 2005 10:35:22 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2A8D643D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Feb 2005 10:35:22 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j11AZLKk096105
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 1 Feb 2005 10:35:21 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j11AZLYW096104;
	Tue, 1 Feb 2005 10:35:21 GMT
	(envelope-from nobody)
Message-Id: <200502011035.j11AZLYW096104@www.freebsd.org>
Date: Tue, 1 Feb 2005 10:35:21 GMT
From: "Karl M. Joch" <k.joch@ctseuro.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Slow network with rl0 (rl0 driver problem)
X-Send-Pr-Version: www-2.3

>Number:         76948
>Category:       i386
>Synopsis:       [rl] Slow network with rl0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 01 10:40:19 GMT 2005
>Closed-Date:    Mon Jul 30 10:28:23 GMT 2007
>Last-Modified:  Mon Jul 30 10:28:23 GMT 2007
>Originator:     Karl M. Joch
>Release:        5.3
>Organization:
CTS
>Environment:
FreeBSD sv00.ourdomain.com 5.3-STABLE FreeBSD 5.3-STABLE #0: Wed Jan 26 18:10:30 CET 2005    ouradmin@sv00.ourdomain.com:/usr/obj/usr/src/sys/CTSSINGLECPU  i386

>Description:
    Karl,

On Monday 31 January 2005 18:28, Karl M. Joch wrote:
> your patch works like a charme. One of my guys tested it on 2 boxes and it

I was afraid it would :-\

> works now like it worked before. Speed is great again and we think about
> installing it on 2 production boxes where customers really have problems.
> Is it save to patch production boxes with it?

Well, the fact that this patch makes the symptom go away indicates that there 
is some more fundamental problem hiding somewhere in the driver/hardware that 
should get fixed all the way.  It is, however, a valid workaround until the 
real problem is identified.

Can you please submit a PR with the information in this thread?  I will look 
into the driver some more and commit the workaround if I fail to find the 
real cause soon.

EVERYBODY: Could you please check if you have a rl(4) driven NIC and check if 
you experienced a speed degradation as well.  Please let me know either way 
with information about the chipset on your NIC.  Thanks!

-- 
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

>How-To-Repeat:
      see above
>Fix:
      see full description
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Sun Jun 24 18:51:48 UTC 2007 
State-Changed-Why:  

To submitter:  Is this still a problem with more recent versions of 
FreeBSD? 
(for the record, the patch mentioned in the PR is as follows) 

Index: if_rl.c
===================================================================
RCS file: /usr/store/mlaier/fcvs/src/sys/pci/if_rl.c,v
retrieving revision 1.145
diff -u -r1.145 if_rl.c
--- if_rl.c	9 Aug 2004 20:22:17 -0000	1.145
+++ if_rl.c	30 Jan 2005 18:24:23 -0000
@@ -964,7 +964,7 @@
 #endif
 	ifp->if_capenable = ifp->if_capabilities;
 	IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
-	ifp->if_snd.ifq_drv_maxlen = IFQ_MAXLEN;
+	ifp->if_snd.ifq_drv_maxlen = 0;
 	IFQ_SET_READY(&ifp->if_snd);
 
 	callout_handle_init(&sc->rl_stat_ch);



http://www.freebsd.org/cgi/query-pr.cgi?pr=76948 
State-Changed-From-To: feedback->closed 
State-Changed-By: gavin 
State-Changed-When: Mon Jul 30 10:26:39 UTC 2007 
State-Changed-Why:  
Feedback timeout (>1 month) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76948 
>Unformatted:
