Home
last modified time | relevance | path

Searched refs:new_stats (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_mirror.c107 struct rtnl_link_stats64 new_stats; in lan966x_mirror_port_stats() local
111 lan966x_stats_get(port->dev, &new_stats); in lan966x_mirror_port_stats()
115 new_stats.rx_bytes - old_stats->bytes, in lan966x_mirror_port_stats()
116 new_stats.rx_packets - old_stats->pkts, in lan966x_mirror_port_stats()
117 new_stats.rx_dropped - old_stats->drops, in lan966x_mirror_port_stats()
121 old_stats->bytes = new_stats.rx_bytes; in lan966x_mirror_port_stats()
122 old_stats->pkts = new_stats.rx_packets; in lan966x_mirror_port_stats()
123 old_stats->drops = new_stats.rx_dropped; in lan966x_mirror_port_stats()
127 new_stats.tx_bytes - old_stats->bytes, in lan966x_mirror_port_stats()
128 new_stats.tx_packets - old_stats->pkts, in lan966x_mirror_port_stats()
[all …]
H A Dlan966x_police.c140 struct rtnl_link_stats64 new_stats; in lan966x_police_port_add() local
172 lan966x_stats_get(port->dev, &new_stats); in lan966x_police_port_add()
173 old_stats->bytes = new_stats.rx_bytes; in lan966x_police_port_add()
174 old_stats->pkts = new_stats.rx_packets; in lan966x_police_port_add()
175 old_stats->drops = new_stats.rx_dropped; in lan966x_police_port_add()
209 struct rtnl_link_stats64 new_stats; in lan966x_police_port_stats() local
213 lan966x_stats_get(port->dev, &new_stats); in lan966x_police_port_stats()
216 new_stats.rx_bytes - old_stats->bytes, in lan966x_police_port_stats()
217 new_stats.rx_packets - old_stats->pkts, in lan966x_police_port_stats()
218 new_stats.rx_dropped - old_stats->drops, in lan966x_police_port_stats()
[all …]
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_mirror.c209 struct rtnl_link_stats64 new_stats; in sparx5_mirror_stats() local
213 sparx5_get_stats64(port->ndev, &new_stats); in sparx5_mirror_stats()
217 new_stats.rx_bytes - old_stats->bytes, in sparx5_mirror_stats()
218 new_stats.rx_packets - old_stats->pkts, in sparx5_mirror_stats()
219 new_stats.rx_dropped - old_stats->drops, in sparx5_mirror_stats()
223 old_stats->bytes = new_stats.rx_bytes; in sparx5_mirror_stats()
224 old_stats->pkts = new_stats.rx_packets; in sparx5_mirror_stats()
225 old_stats->drops = new_stats.rx_dropped; in sparx5_mirror_stats()
229 new_stats.tx_bytes - old_stats->bytes, in sparx5_mirror_stats()
230 new_stats.tx_packets - old_stats->pkts, in sparx5_mirror_stats()
[all …]
/linux/drivers/net/ethernet/amd/
H A Damd8111e.c860 struct net_device_stats *new_stats = &dev->stats; in amd8111e_get_stats() local
863 return new_stats; in amd8111e_get_stats()
867 new_stats->rx_packets = amd8111e_read_mib(mmio, rcv_broadcast_pkts)+ in amd8111e_get_stats()
872 new_stats->tx_packets = amd8111e_read_mib(mmio, xmt_packets); in amd8111e_get_stats()
875 new_stats->rx_bytes = amd8111e_read_mib(mmio, rcv_octets); in amd8111e_get_stats()
878 new_stats->tx_bytes = amd8111e_read_mib(mmio, xmt_octets); in amd8111e_get_stats()
882 new_stats->rx_errors = amd8111e_read_mib(mmio, rcv_undersize_pkts)+ in amd8111e_get_stats()
891 new_stats->tx_errors = amd8111e_read_mib(mmio, xmt_underrun_pkts); in amd8111e_get_stats()
894 new_stats->rx_dropped = amd8111e_read_mib(mmio, rcv_miss_pkts); in amd8111e_get_stats()
897 new_stats->tx_dropped = amd8111e_read_mib(mmio, xmt_underrun_pkts); in amd8111e_get_stats()
[all …]