[haiku-development] Only 1200 seconds of network activity. ( Was: Haiku USB: actual_length returned from send_request() is differ than amount of transferred data. )

  • From: Siarzhuk Zharski <zharik@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 21 Jul 2008 22:49:45 +0200

Hi, Michael!

Michael Lotz wrote:
By the way, the driver code is currently available at http://sis4be.cvs.sourceforge.net/sis4be/usb_asix/. It inherits skeleton functionality from Haiku's usb_ecm one and support ASIX AX88172/AX88772/AX88178-based USB2Ethernet adapters. It is also known as "if_axe" on FreeBSD and as "asix" on Linux. May it be useful to beautify Haiku's Tree too? ;-)

Nice work! I would say there's no reason not to include it, so from my
perspective feel free to add it.
Thank you!

Unfortunately I still have some Haiku-specific problem with this driver. The problem is following: - it stop receiving data from input USB pipe about 1200 seconds after the connection was established. I check this with sending pings to Haiku machine from outside and pinging my DSL modem from this Haiku machine. In first case the usb_asix.log on this machine traces only GET_LINK_STATE activity after the "1200 seconds limit" goes away. At this time the driver is blocked on reading from input pipe. In second case - the reading of input pipe is blocked too but ping packets from this PC looks like successfully written into output pipe - Write calls are logged and write callback is also handled with B_OK status. It is very difficult to restore the connection after this: neither re-plugging the adapter nor killing and restarting the net_server helps in most cases. I have tried this situation with other network devices: embedded rtl8139 and external USB ECM-compatible DSL -modem. They work without such problem. Note that this is a Haiku-only issue - BeOS R5/BONE works with this driver for a days under big load without a problem. :-\

My "ideas box" is empty. :-( Frankly speaking I'm new in networking area. Can somebody any ideas to try?

Thank you.

----
Kind Regards,
  S.Zharski


Other related posts: