G'day all, After an abortive previous attempt at providing user space reporting (http://marc.theaimsgroup.com/?t=100677748400003&r=1&w=2), I implemented the ioctl() support for the ethtool user space tool (http://gkernel.sf.net) in the catc driver. Here is an example: [bradh@leon linux]# ethtool eth1 Settings for eth1: Link detected: no [bradh@leon linux]# ethtool eth1 Settings for eth1: Link detected: yes [bradh@leon linux]# ethtool -i eth1 driver: EL1210A NetMate USB Ethernet version: v2.8 firmware-version: bus-info: usb1:9
Patch is attached, against 2.4.17-pre6. Discussion issue: The CATC device provides link state as interrupt status bits. So the link state reporting is only accurate when interrupts are being delivered. The catc driver currently only submits the interrupt URB in its open() routine. All this means is that it only works if the interface is UP. Should we try for a sensible handling of link state (by submitting the interrupt URB in probe()), even if it means possibly handling junk interupts? Brad
catc-linkstate.patch
Description: Binary data
