Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/amd/
Damd8111e.c857 struct net_device_stats *new_stats = &dev->stats; in amd8111e_get_stats() local
860 return new_stats; in amd8111e_get_stats()
864 new_stats->rx_packets = amd8111e_read_mib(mmio, rcv_broadcast_pkts)+ in amd8111e_get_stats()
869 new_stats->tx_packets = amd8111e_read_mib(mmio, xmt_packets); in amd8111e_get_stats()
872 new_stats->rx_bytes = amd8111e_read_mib(mmio, rcv_octets); in amd8111e_get_stats()
875 new_stats->tx_bytes = amd8111e_read_mib(mmio, xmt_octets); in amd8111e_get_stats()
879 new_stats->rx_errors = amd8111e_read_mib(mmio, rcv_undersize_pkts)+ in amd8111e_get_stats()
888 new_stats->tx_errors = amd8111e_read_mib(mmio, xmt_underrun_pkts); in amd8111e_get_stats()
891 new_stats->rx_dropped = amd8111e_read_mib(mmio, rcv_miss_pkts); in amd8111e_get_stats()
894 new_stats->tx_dropped = amd8111e_read_mib(mmio, xmt_underrun_pkts); in amd8111e_get_stats()
[all …]
/Linux-v5.4/net/openvswitch/
Dflow.c90 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()