Searched refs:dev_stats (Results 1 – 2 of 2) sorted by relevance
286 const struct rtnl_link_stats64 *dev_stats; in ovs_vport_get_stats() local289 dev_stats = dev_get_stats(vport->dev, &temp); in ovs_vport_get_stats()290 stats->rx_errors = dev_stats->rx_errors; in ovs_vport_get_stats()291 stats->tx_errors = dev_stats->tx_errors; in ovs_vport_get_stats()292 stats->tx_dropped = dev_stats->tx_dropped; in ovs_vport_get_stats()293 stats->rx_dropped = dev_stats->rx_dropped; in ovs_vport_get_stats()295 stats->rx_bytes = dev_stats->rx_bytes; in ovs_vport_get_stats()296 stats->rx_packets = dev_stats->rx_packets; in ovs_vport_get_stats()297 stats->tx_bytes = dev_stats->tx_bytes; in ovs_vport_get_stats()298 stats->tx_packets = dev_stats->tx_packets; in ovs_vport_get_stats()
145 struct nlattr *dev_stats; in devlink_nl_fill() local157 dev_stats = nla_nest_start(msg, DEVLINK_ATTR_DEV_STATS); in devlink_nl_fill()158 if (!dev_stats) in devlink_nl_fill()166 nla_nest_end(msg, dev_stats); in devlink_nl_fill()171 nla_nest_cancel(msg, dev_stats); in devlink_nl_fill()