From nobody@FreeBSD.org  Sun Aug 15 09:30:07 2004
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 D787E16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Aug 2004 09:30:07 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CDC9543D39
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Aug 2004 09:30:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i7F9U7w5040138
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Aug 2004 09:30:07 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i7F9U7NU040128;
	Sun, 15 Aug 2004 09:30:07 GMT
	(envelope-from nobody)
Message-Id: <200408150930.i7F9U7NU040128@www.freebsd.org>
Date: Sun, 15 Aug 2004 09:30:07 GMT
From: Andrew Thompson <andy@fud.org.nz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: if_axe USB interface stops responding
X-Send-Pr-Version: www-2.3

>Number:         70474
>Category:       kern
>Synopsis:       if_axe USB interface stops responding
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    iedowse
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 15 09:30:20 GMT 2004
>Closed-Date:    Sun Nov 28 20:26:53 GMT 2004
>Last-Modified:  Sun Nov 28 20:26:53 GMT 2004
>Originator:     Andrew Thompson
>Release:        5.2-CURRENT
>Organization:
>Environment:
>Description:
I have a Netgear FA120 (if_axe) which is causing me greif. After doing
moderate network traffic it will stop responding with oodles of "axe0: read
PHY failed" on the console. A cvsup triggers it quite reliably.

On further analysis I found that it will not send any ethernet frame where the
size % 64 == 0

For instance all of the following will timeout
  ping -s 22 <host>
  ping -s 86 <host>
  ping -s 150 <host>
etc...

Comparing to the other USB network drivers, I added USBD_FORCE_SHORT_XFER to
the transfer flags and it nas now been working reliably for months. I have 
not seen any throughput reduction as a result.

>How-To-Repeat:
      
>Fix:
--- sys/dev/usb/if_axe.c    Thu Jun 10 02:34:03 2004
+++ sys/dev/usb/if_axe.c    Thu Jul  1 20:31:57 2004
@@ -808,7 +808,8 @@
        c->axe_mbuf = m;
 
        usbd_setup_xfer(c->axe_xfer, sc->axe_ep[AXE_ENDPT_TX],
-           c, c->axe_buf, m->m_pkthdr.len, 0, 10000, axe_txeof);
+           c, c->axe_buf, m->m_pkthdr.len, USBD_FORCE_SHORT_XFER,
+           10000, axe_txeof);
 
        /* Transmit */
        err = usbd_transfer(c->axe_xfer);
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: iedowse 
State-Changed-When: Sun Aug 15 10:52:22 GMT 2004 
State-Changed-Why:  

Committed; thanks for tracking this down! 


Responsible-Changed-From-To: freebsd-bugs->iedowse 
Responsible-Changed-By: iedowse 
Responsible-Changed-When: Sun Aug 15 10:52:22 GMT 2004 
Responsible-Changed-Why:  

Taking as a reminder to MFC. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70474 
State-Changed-From-To: patched->closed 
State-Changed-By: iedowse 
State-Changed-When: Sun Nov 28 20:25:16 GMT 2004 
State-Changed-Why:  

The if_axe driver was never ported to RELENG_4, so there is no need 
to MFC the patch. 

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