--- ./drivers/xen/netfront/netfront.c.ethtool 2006-07-14 16:49:22.000000000 +0100 +++ ./drivers/xen/netfront/netfront.c 2006-07-14 16:51:38.000000000 +0100 @@ -179,6 +179,10 @@ return dev->features & NETIF_F_SG; } +static struct ethtool_ops netfront_ethtool_ops = { + .get_link = ethtool_op_get_link, +}; + /** * Entry point to this code when a new device is created. Allocate the basic * structures and the ring buffers for communication with the backend, and @@ -211,6 +215,8 @@ info = netdev_priv(netdev); dev->data = info; + SET_ETHTOOL_OPS(netdev, &netfront_ethtool_ops); + err = talk_to_backend(dev, info); if (err) { xennet_sysfs_delif(info->netdev);