tulip problem

From: Martin Josefsson (gandalf@wlug.westbo.se)
Date: Mon Apr 03 2000 - 19:23:59 EST


Hi

This problem is not serious at all but I still feel that it should be
fixed.

Im usin the tulip driver in 2.3.99pre4-2 with a D-link dfe570tx
card. That's a quad fast ethernet card based on the 21143 chips.

The problem is when I run ifconfig to see the packets statisktics the
values seem correct for eth1 - eth3 but not for eth0

The result is the same when i do a "cat /proc/net/dev"

This machine does routing between eth0 and eth3 so the results should be
similar only the in/out reversed.

but the tx-statistics for eth0 is 0, both for transitted bytes and packets
instead the value that should have been transmitted packets are shown as
errors and again as carrier.

I don't think it's a overrun anywhere, the router vas booted for the first
time today and the count is only 29 million.
(In 7 hours this router has routed ~4TB (60 million packets) of data with
no errors).

I might have a difficult time testing patches or anything as there are 500
furius students breathing down my neck if the router has downtime.

I have patched the tulip driver a little bit.
The problem is that we have to use Half-duplex to our ISP (our school) to
get this we had to force the tulip driver to half duplex. but after
3 seconds it would switch over to auto-sense and negotiate full-duplex
even though we had forced it in to half duplex.

I found this patch against 2.0.34, I applied it manually and now
everything is happy.

--- tulip.c-0.88 Mon May 25 04:04:01 1998
+++ tulip.c-0.88+loic Sun Jun 14 01:47:14 1998
@@ -1336,11 +1336,14 @@
        }
        /* Set the timer to switch to check for link beat and perhaps switch
           to an alternate media type. */
+if (tp->medialock) printk("Loic's patch active: remaining with user media type.\n");
+else {
        init_timer(&tp->timer);
        tp->timer.expires = RUN_AT(5*HZ);
        tp->timer.data = (unsigned long)dev;
        tp->timer.function = tulip_tbl[tp->chip_id].media_timer;
        add_timer(&tp->timer);
+}
 
        return 0;
 }

I don't see how this patch could have anything with the bug that I'm
reporting to do.

/Martin

---
The three best things about going to school are June, July, and August.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:11 EST