Home
last modified time | relevance | path

Searched refs:dev_stats (Results 1 – 2 of 2) sorted by relevance

/net/openvswitch/
Dvport.c272 const struct rtnl_link_stats64 *dev_stats; in ovs_vport_get_stats() local
275 dev_stats = dev_get_stats(vport->dev, &temp); in ovs_vport_get_stats()
276 stats->rx_errors = dev_stats->rx_errors; in ovs_vport_get_stats()
277 stats->tx_errors = dev_stats->tx_errors; in ovs_vport_get_stats()
278 stats->tx_dropped = dev_stats->tx_dropped; in ovs_vport_get_stats()
279 stats->rx_dropped = dev_stats->rx_dropped; in ovs_vport_get_stats()
281 stats->rx_bytes = dev_stats->rx_bytes; in ovs_vport_get_stats()
282 stats->rx_packets = dev_stats->rx_packets; in ovs_vport_get_stats()
283 stats->tx_bytes = dev_stats->tx_bytes; in ovs_vport_get_stats()
284 stats->tx_packets = dev_stats->tx_packets; in ovs_vport_get_stats()
/net/devlink/
Dleftover.c1007 struct nlattr *dev_stats; in devlink_nl_fill() local
1019 dev_stats = nla_nest_start(msg, DEVLINK_ATTR_DEV_STATS); in devlink_nl_fill()
1020 if (!dev_stats) in devlink_nl_fill()
1028 nla_nest_end(msg, dev_stats); in devlink_nl_fill()
1033 nla_nest_cancel(msg, dev_stats); in devlink_nl_fill()