Searched refs:new_stats (Results 1 – 5 of 5) sorted by relevance
| /linux-6.15/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_mirror.c | 107 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() 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() 133 old_stats->bytes = new_stats.tx_bytes; in lan966x_mirror_port_stats() 134 old_stats->pkts = new_stats.tx_packets; in lan966x_mirror_port_stats() [all …]
|
| H A D | lan966x_police.c | 140 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() 222 old_stats->bytes = new_stats.rx_bytes; in lan966x_police_port_stats() 223 old_stats->pkts = new_stats.rx_packets; in lan966x_police_port_stats() [all …]
|
| /linux-6.15/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_mirror.c | 209 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() 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() 235 old_stats->bytes = new_stats.tx_bytes; in sparx5_mirror_stats() 236 old_stats->pkts = new_stats.tx_packets; in sparx5_mirror_stats() [all …]
|
| /linux-6.15/drivers/net/ethernet/amd/ |
| H A D | amd8111e.c | 860 struct net_device_stats *new_stats = &dev->stats; in amd8111e_get_stats() local 863 return new_stats; 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() 906 new_stats->rx_length_errors = in amd8111e_get_stats() 917 new_stats->rx_frame_errors = in amd8111e_get_stats() 927 new_stats->tx_aborted_errors = in amd8111e_get_stats() 931 new_stats->tx_carrier_errors = in amd8111e_get_stats() 938 new_stats->tx_window_errors = in amd8111e_get_stats() [all …]
|
| /linux-6.15/net/openvswitch/ |
| H A D | flow.c | 92 struct sw_flow_stats *new_stats; in ovs_flow_stats_update() local 94 new_stats = in ovs_flow_stats_update() 101 if (likely(new_stats)) { in ovs_flow_stats_update() 102 new_stats->used = jiffies; in ovs_flow_stats_update() 103 new_stats->packet_count = 1; in ovs_flow_stats_update() 104 new_stats->byte_count = len; in ovs_flow_stats_update() 105 new_stats->tcp_flags = tcp_flags; in ovs_flow_stats_update() 106 spin_lock_init(&new_stats->lock); in ovs_flow_stats_update() 109 new_stats); in ovs_flow_stats_update()
|