Home
last modified time | relevance | path

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

/Linux-v5.10/net/openvswitch/
Dvport.c270 const struct rtnl_link_stats64 *dev_stats; in ovs_vport_get_stats() local
273 dev_stats = dev_get_stats(vport->dev, &temp); in ovs_vport_get_stats()
274 stats->rx_errors = dev_stats->rx_errors; in ovs_vport_get_stats()
275 stats->tx_errors = dev_stats->tx_errors; in ovs_vport_get_stats()
276 stats->tx_dropped = dev_stats->tx_dropped; in ovs_vport_get_stats()
277 stats->rx_dropped = dev_stats->rx_dropped; in ovs_vport_get_stats()
279 stats->rx_bytes = dev_stats->rx_bytes; in ovs_vport_get_stats()
280 stats->rx_packets = dev_stats->rx_packets; in ovs_vport_get_stats()
281 stats->tx_bytes = dev_stats->tx_bytes; in ovs_vport_get_stats()
282 stats->tx_packets = dev_stats->tx_packets; in ovs_vport_get_stats()
/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_common.c87 struct otx2_dev_stats *dev_stats = &pfvf->hw.dev_stats; in otx2_get_dev_stats() local
94 dev_stats->rx_bytes = OTX2_GET_RX_STATS(RX_OCTS); in otx2_get_dev_stats()
95 dev_stats->rx_drops = OTX2_GET_RX_STATS(RX_DROP); in otx2_get_dev_stats()
96 dev_stats->rx_bcast_frames = OTX2_GET_RX_STATS(RX_BCAST); in otx2_get_dev_stats()
97 dev_stats->rx_mcast_frames = OTX2_GET_RX_STATS(RX_MCAST); in otx2_get_dev_stats()
98 dev_stats->rx_ucast_frames = OTX2_GET_RX_STATS(RX_UCAST); in otx2_get_dev_stats()
99 dev_stats->rx_frames = dev_stats->rx_bcast_frames + in otx2_get_dev_stats()
100 dev_stats->rx_mcast_frames + in otx2_get_dev_stats()
101 dev_stats->rx_ucast_frames; in otx2_get_dev_stats()
103 dev_stats->tx_bytes = OTX2_GET_TX_STATS(TX_OCTS); in otx2_get_dev_stats()
[all …]
Dotx2_ethtool.c172 *(data++) = ((u64 *)&pfvf->hw.dev_stats) in otx2_get_ethtool_stats()
774 *(data++) = ((u64 *)&vf->hw.dev_stats) in otx2vf_get_ethtool_stats()
Dotx2_common.h196 struct otx2_dev_stats dev_stats; member
/Linux-v5.10/drivers/leds/trigger/
Dledtrig-netdev.c350 struct rtnl_link_stats64 *dev_stats; in netdev_trig_work() local
367 dev_stats = dev_get_stats(trigger_data->net_dev, &temp); in netdev_trig_work()
370 dev_stats->tx_packets : 0) + in netdev_trig_work()
372 dev_stats->rx_packets : 0); in netdev_trig_work()
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c1052 ctx->stats.dev_stats->OutPktsUntagged = stats->out.untagged_pkts; in aq_mdo_get_dev_stats()
1053 ctx->stats.dev_stats->InPktsUntagged = stats->in.untagged_pkts; in aq_mdo_get_dev_stats()
1054 ctx->stats.dev_stats->OutPktsTooLong = stats->out.too_long; in aq_mdo_get_dev_stats()
1055 ctx->stats.dev_stats->InPktsNoTag = stats->in.notag_pkts; in aq_mdo_get_dev_stats()
1056 ctx->stats.dev_stats->InPktsBadTag = stats->in.bad_tag_pkts; in aq_mdo_get_dev_stats()
1057 ctx->stats.dev_stats->InPktsUnknownSCI = stats->in.unknown_sci_pkts; in aq_mdo_get_dev_stats()
1058 ctx->stats.dev_stats->InPktsNoSCI = stats->in.no_sci_pkts; in aq_mdo_get_dev_stats()
1059 ctx->stats.dev_stats->InPktsOverrun = 0; in aq_mdo_get_dev_stats()
/Linux-v5.10/include/net/
Dmacsec.h255 struct macsec_dev_stats *dev_stats; member
/Linux-v5.10/drivers/net/ethernet/amazon/ena/
Dena_netdev.c94 adapter->dev_stats.tx_timeout++; in ena_tx_timeout()
2554 adapter->dev_stats.interface_up++; in ena_up()
2594 adapter->dev_stats.interface_down++; in ena_down()
3213 rx_drops = adapter->dev_stats.rx_drops; in ena_get_stats64()
3214 tx_drops = adapter->dev_stats.tx_drops; in ena_get_stats64()
3792 adapter->dev_stats.wd_expired++; in check_for_missing_keep_alive()
3805 adapter->dev_stats.admin_q_pause++; in check_for_admin_com_state()
4443 adapter->dev_stats.suspend++; in ena_suspend()
4466 adapter->dev_stats.resume++; in ena_resume()
4552 adapter->dev_stats.rx_drops = rx_drops; in ena_keep_alive_wd()
[all …]
Dena_netdev.h385 struct ena_stats_dev dev_stats; member
Dena_ethtool.c188 ptr = (u64 *)&adapter->dev_stats + ena_stats->stat_offset; in ena_get_stats()
/Linux-v5.10/drivers/net/
Dmacsec.c2910 ctx.stats.dev_stats = sum; in get_secy_stats()
3029 struct macsec_dev_stats dev_stats = {0, }; in dump_secy() local
3071 get_secy_stats(dev, &dev_stats); in dump_secy()
3072 if (copy_secy_stats(skb, &dev_stats)) { in dump_secy()
/Linux-v5.10/drivers/net/usb/
Dlan78xx.c519 #define check_counter_rollover(struct1, dev_stats, member) { \ argument
520 if (struct1->member < dev_stats.saved.member) \
521 dev_stats.rollover_count.member++; \
/Linux-v5.10/net/core/
Ddevlink.c607 struct nlattr *dev_stats; in devlink_nl_fill() local
619 dev_stats = nla_nest_start(msg, DEVLINK_ATTR_DEV_STATS); in devlink_nl_fill()
620 if (!dev_stats) in devlink_nl_fill()
628 nla_nest_end(msg, dev_stats); in devlink_nl_fill()
633 nla_nest_cancel(msg, dev_stats); in devlink_nl_fill()