Messages in this thread Patch in this message | | | Date | Wed, 11 Aug 1999 20:04:06 -0400 (EDT) | From | "Steven N. Hirsch" <> | Subject | 2.2.11 + sb1000 fixed (Yay Alan!) |
| |
On Wed, 11 Aug 1999, Matthew Eaton wrote:
> Looks like the sb1000 driver no longer works with 2.2.11... It connects, > but doesn't seem to register as an ipv4 device. > > Have you looked into the problem yet? Is it problem in the kernel or the > driver?
Well, I looked at the symptoms <g>.
Alan Cox (as usual) found the problem and suggested the fix:
--- linux/drivers/net/sb1000.c.orig Tue Aug 10 07:22:05 1999 +++ linux/drivers/net/sb1000.c Wed Aug 11 18:46:27 1999 @@ -273,7 +273,7 @@ dev->type = ARPHRD_ETHER; dev->hard_header_len = 0; - dev->mtu = 0; + dev->mtu = 1500; dev->addr_len = ETH_ALEN; /* hardware address is 0:0:serial_number */ dev->dev_addr[0] = 0;
Seems that the IP layer in 2.2.11 will not register an interface whose mtu is < 68 bytes. Since the SB1000 was never intended for outgoing packets, it had been traditionally advertising an mtu of 0.
A suggestion to the networking gurus, shouldn't the kernel log a complaint in such a case? To silently reject the interface doesn't seem helpful.
At any rate, works fine now!
Steve
- 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/
| |