##call trace
the ‘.show’ method in device_attribute will call the netstat_show,
some of the driver read the part of stat from NIC register,
but most count the stat by software in dev->stat
1 | > dev_get_stats |
1 | 356 |
1 | 5855 struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev, |
1 | 6684 static const struct net_device_ops ixgbe_netdev_ops = { |