Searched refs:new_stats (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/ |
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() 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 …]
|
D | lan966x_police.c | 143 struct rtnl_link_stats64 new_stats; in lan966x_police_port_add() local 175 lan966x_stats_get(port->dev, &new_stats); in lan966x_police_port_add() 176 old_stats->bytes = new_stats.rx_bytes; in lan966x_police_port_add() 177 old_stats->pkts = new_stats.rx_packets; in lan966x_police_port_add() 178 old_stats->drops = new_stats.rx_dropped; in lan966x_police_port_add() 218 struct rtnl_link_stats64 new_stats; in lan966x_police_port_stats() local 222 lan966x_stats_get(port->dev, &new_stats); in lan966x_police_port_stats() 225 new_stats.rx_bytes - old_stats->bytes, in lan966x_police_port_stats() 226 new_stats.rx_packets - old_stats->pkts, in lan966x_police_port_stats() 227 new_stats.rx_dropped - old_stats->drops, in lan966x_police_port_stats() [all …]
|
/linux-6.1.9/drivers/net/ethernet/amd/ |
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() 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 …]
|
/linux-6.1.9/net/openvswitch/ |
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()
|