Opened 11 years ago

Closed 2 years ago

#4622 closed bug (fixed)

ipro100 driver defauts to 10Mb ; Can't change to 100Mb

Reported by: thetick Owned by: nobody
Priority: normal Milestone: R1
Component: Drivers/Network/ipro100 Version: R1/alpha1
Keywords: Cc: bergep@…
Blocked By: Blocking:
Platform: All

Description (last modified by jackburton)

I would like the ipro100 driver to automatically detect 100M. I have a 20M connection that works at 20M with Linux and Windows on the exact same machine. Haiku connects at 10Mb and I get 5Mb max transfers. Not bad at all but I would like to get 20Mb transfers.

I tried:

ifconfig /dev/net/ipro100/0 media 100baseTX

ifconfig: Setting media failed: Operation not supported

"ifconfig --help" shows: For Ethernet <media> can be one of: 10baseT 100baseTX 1000baseT 1000baseSX

Below is the syslog which shows the speed=10000 (10M):

KERN: ipro100: init_hardware(0x8115990c)
KERN: ipro100, found Intel 82550 Pro/100 Ethernet at 5
KERN: ipro100: init_driver(0x8115990c)
KERN: [ipro100] (fxp) bus_alloc_resource(3, [16], 0x0, 0xffffffff, 0x1, 0x2)
KERN: [ipro100] (fxp) bus_alloc_resource(1, [0], 0x0, 0xffffffff, 0x1, 0x6)
KERN: [ipro100] (fxp) using memory space register mapping
KERN: [ipro100] (fxp) PCI IDs: 8086 1229 8086 2205 000c
KERN: [ipro100] (fxp) Dynamic Standby mode is disabled
KERN: [ipro100] (miibus) No PHY module found (aa00/15)!
KERN: [ipro100] ipro100: /dev/net/ipro100/0
KERN: loaded driver /boot/system/add-ons/kernel/drivers/dev/net/ipro100
KERN: ipro1000: init_hardware(0x83935864)
KERN: ipro1000: no hardware found.
KERN: get_device_interface: ask "network/devices/ethernet/v1" for /dev/net/ipro100/0
KERN: ipv4_datalink_init(/dev/net/ipro100/0)
KERN: [net/ipro100/0] compat_open(0x2)
KERN: /dev/net/ipro100/0: media change, media 0x22 quality 1000 speed 10000
DAEMON 'DHCP': DHCP for /dev/net/ipro100/0, status: No error

listdev shows:

device Network controller (Ethernet controller) [2|0|0]
  vendor 8086: Intel Corporation
  device 1229: 82557/8/9/0/1 Ethernet Pro 100

Attachments (1)

ipro100.txt (1.4 KB ) - added by thetick 11 years ago.
syslog added for readibility since post is missing returns

Download all attachments as: .zip

Change History (12)

comment:1 by thetick, 11 years ago

Cc: bergep@… added

by thetick, 11 years ago

Attachment: ipro100.txt added

syslog added for readibility since post is missing returns

comment:2 by jackburton, 11 years ago

Description: modified (diff)

comment:3 by axeld, 11 years ago

What do you mean by 10Mb, 20M, and 100Mb? If you mean 10/100 Mbit, and 20 MB/s then there is something wrong in your description; 10 Mbit ethernet manages to reach a transfer rate of about 1 MB/s, while 100 Mbit ethernet can transfer up to 10 MB/s.

If Haiku transfers 5 MB/s then it connects with 100 Mbit. If Windows/Linux transfer 20 MB/s on a 100 Mbit line, then they are lying to you. ipro100 does not support Gigabit ethernet, so I guess everyone connects with 100 Mbit, and Haiku is just significantly slower, which could be a problem of the driver port.

comment:4 by thetick, 11 years ago

I have a 20Mbit/s pipe to Verizon my ISP. With Windows/Linux I get up to 2.4MByte/s (which is roughly 20Mbit/s) rate when downloading. The Etherpro is set to 100Mbits

With Haiku connected to the same 20Mbit/s ISP, I get roughly .6MByte (roughly 4.8Mbits/s) when downloading.

These numbers were from the default download tool of firefox 3.5.3 on Windows/Linux and Bezilla on Haiku. Not sure if compression is involved. Sounds like a confusion between bits and bytes. Anyway regardless Haiku is downloading about 4X slower on the same hardware compared to Windows and Linux.

I have to try ftp , but don't suspect Bezilla on Haiku would download 4X slower then Firefox 3.5.3.

The integrated Etherpro I have is only 10M/100M bit. I think the Haiku driver is set to 10M since the speed parm is showing 10000 in the syslog. If I can force 100M mode only that would be fine too but the driver should be able to auto sense 10M/100M.

comment:5 by umccullough, 11 years ago

Seems like you have a lot of variables involved in your testing...

I would recommend you take "internet" out of the equation, and "browser" out of the equation.

When doing throughput tests on Haiku, I usually just wget from an FTP server on my LAN.

This way I know there's low latency and lots of bandwidth available, without having to worry about whether Bezilla is the problem or not - giving me the best possible test environment. Then I compare the wget from Linux on the same hardware to see how it compares with Haiku.

comment:6 by thetick, 11 years ago

OK after more testing the driver is in 10Mb mode and is set to 100Mb mode on Linux and Windows. That is the issue. Am I correct that the ipro100 driver was ported from FreeBSD? If so then just implement changing from 10Mb to 100Mb is needed to fix this. Not a show stopper issue, but it would be nice to gain the extra bandwidth by switching to 100Mb. Thanks.

I also found out Bezilla in Haiku is a bad bandwidth bottle neck. I'm guessing that's not a shocker to developers. Anyway I can get the Qt Browser to transfer much faster. If it did not crash often I would use it as my main Haiku browser.

comment:7 by thetick, 11 years ago

Ok after running many tests with wget With Haiku my laptop maxes out at 1.2M Bytes -- which is roughly 10Mbits and with Linux the max is 2.4M Bytes/s -- which is roughly 20Mbits

I would like to change the driver from a speed of 10000 to 100000 (10M to 100M). Haiku is amazing fast as a desktop and it would be nice to have similar the network performance as Linux and Windows.

From syslog the ipro100 appears to be set to 10000 (10M): 2010-01-14 03:12:19 KERN: /dev/net/ipro100/0: media change, media 0x22 quality 1000 speed 10000

comment:8 by diver, 9 years ago

Component: Drivers/NetworkDrivers/Network/ipro100

comment:9 by siarzhuk, 9 years ago

Please check with with any revision after hrev41908. The driver was updated to use corresponding inphy (INTEL) mii module.

By the way - are you using the Network Status applet? Does it show correct status? Before I have fixed this driver the status was "No Link" instead of "Ready".

comment:10 by axeld, 3 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:11 by waddlesplash, 2 years ago

Resolution: fixed
Status: assignedclosed

No reply in 7 years, assuming fixed.

Note: See TracTickets for help on using tickets.