27 #include <linux/kernel.h>
28 #include <linux/ethtool.h>
77 static int cvm_oct_nway_reset(
struct net_device *dev)
91 .get_drvinfo = cvm_oct_get_drvinfo,
92 .get_settings = cvm_oct_get_settings,
93 .set_settings = cvm_oct_set_settings,
94 .nway_reset = cvm_oct_nway_reset,
110 if (!netif_running(dev))
119 static void cvm_oct_adjust_link(
struct net_device *dev)
127 link_info.
s.link_up = priv->
last_link ? 1 : 0;
128 link_info.
s.full_duplex = priv->
phydev->duplex ? 1 : 0;
129 link_info.
s.speed = priv->
phydev->speed;
133 if (priv->
queue != -1)
135 "port %2d, queue %2d\n",