Am Samstag, 6. September 2003 15:55 schrieb David T Hollis:If you are informing the core about carrier by using netif_carrier_on, there is a stub get_link method defined in net/core/ethtool.c as ethtool_op_get_link() that you can use that simply returns netif_carrier_ok.
+/* Default ethtool_ops assigned. Devices can override in their bind() routine */
+static struct ethtool_ops usbnet_ethtool_ops = {
+ .get_drvinfo = usbnet_get_drvinfo,
+ .get_link = usbnet_get_link,
+ .get_msglevel = usbnet_get_msglevel,
+ .set_msglevel = usbnet_set_msglevel,
+};
+
Hi,
is a get_link method needed even if a driver informs the net core about media change events?
Regards
Oliver
There are probably cases where it is not necessary to have a get_link supported though if the interface will appear as a normal network interface, it's probably best (a lot of userspace scripts will use the ethtool interface while bringing the interface up).
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel