enables .ndo_get_stats
Index: target/linux/ifxmips/files/drivers/net/ifxmips.c =================================================================== --- target/linux/ifxmips/files/drivers/net/ifxmips.c (revision 24118) +++ target/linux/ifxmips/files/drivers/net/ifxmips.c (working copy) @@ -417,6 +417,14 @@ wmb(); } +static struct net_device_stats* ifxmips_mii_get_stats(struct net_device *dev) +{ + struct ifxmips_mii_priv *priv = (struct ifxmips_mii_priv *)netdev_priv(dev); + + /* just return the present stats. */ + return &priv->stats; +} + static const struct net_device_ops ifxmips_eth_netdev_ops = { .ndo_init = ifxmips_mii_dev_init, .ndo_open = ifxmips_ifxmips_mii_open, @@ -426,6 +434,7 @@ .ndo_change_mtu = eth_change_mtu, .ndo_set_mac_address = eth_mac_addr, .ndo_validate_addr = eth_validate_addr, + .ndo_get_stats = ifxmips_mii_get_stats, }; static int
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel