Searched refs:new_stats (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-6.6/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() 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 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() 217 new_stats.rx_packets - old_stats->pkts, in lan966x_police_port_stats() 218 new_stats in lan966x_police_port_stats() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/ |
H A D | amd8111e.c | 862 struct net_device_stats *new_stats = &dev->stats; in amd8111e_get_stats() local 865 return new_stats; in amd8111e_get_stats() 869 new_stats->rx_packets = amd8111e_read_mib(mmio, rcv_broadcast_pkts)+ in amd8111e_get_stats() 874 new_stats->tx_packets = amd8111e_read_mib(mmio, xmt_packets); in amd8111e_get_stats() 877 new_stats->rx_bytes = amd8111e_read_mib(mmio, rcv_octets); in amd8111e_get_stats() 880 new_stats->tx_bytes = amd8111e_read_mib(mmio, xmt_octets); in amd8111e_get_stats() 884 new_stats->rx_errors = amd8111e_read_mib(mmio, rcv_undersize_pkts)+ in amd8111e_get_stats() 893 new_stats->tx_errors = amd8111e_read_mib(mmio, xmt_underrun_pkts); in amd8111e_get_stats() 896 new_stats->rx_dropped = amd8111e_read_mib(mmio, rcv_miss_pkts); in amd8111e_get_stats() 899 new_stats in amd8111e_get_stats() [all...] |
/kernel/linux/linux-6.6/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() 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 in amd8111e_get_stats() [all...] |
/kernel/linux/linux-5.10/net/openvswitch/ |
H A D | flow.c | 90 struct sw_flow_stats *new_stats; in ovs_flow_stats_update() local 92 new_stats = in ovs_flow_stats_update() 99 if (likely(new_stats)) { in ovs_flow_stats_update() 100 new_stats->used = jiffies; in ovs_flow_stats_update() 101 new_stats->packet_count = 1; in ovs_flow_stats_update() 102 new_stats->byte_count = len; in ovs_flow_stats_update() 103 new_stats->tcp_flags = tcp_flags; in ovs_flow_stats_update() 104 spin_lock_init(&new_stats->lock); in ovs_flow_stats_update() 107 new_stats); in ovs_flow_stats_update()
|
/kernel/linux/linux-6.6/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()
|
Completed in 12 milliseconds