Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/net/ethernet/amd/
Damd8111e.c890 struct net_device_stats *new_stats = &dev->stats; in amd8111e_get_stats() local
893 return new_stats; in amd8111e_get_stats()
897 new_stats->rx_packets = amd8111e_read_mib(mmio, rcv_broadcast_pkts)+ in amd8111e_get_stats()
902 new_stats->tx_packets = amd8111e_read_mib(mmio, xmt_packets); in amd8111e_get_stats()
905 new_stats->rx_bytes = amd8111e_read_mib(mmio, rcv_octets); in amd8111e_get_stats()
908 new_stats->tx_bytes = amd8111e_read_mib(mmio, xmt_octets); in amd8111e_get_stats()
912 new_stats->rx_errors = amd8111e_read_mib(mmio, rcv_undersize_pkts)+ in amd8111e_get_stats()
921 new_stats->tx_errors = amd8111e_read_mib(mmio, xmt_underrun_pkts); in amd8111e_get_stats()
924 new_stats->rx_dropped = amd8111e_read_mib(mmio, rcv_miss_pkts); in amd8111e_get_stats()
927 new_stats->tx_dropped = amd8111e_read_mib(mmio, xmt_underrun_pkts); in amd8111e_get_stats()
[all …]
/linux-4.4.14/net/openvswitch/
Dflow.c101 struct flow_stats *new_stats; in ovs_flow_stats_update() local
103 new_stats = in ovs_flow_stats_update()
110 if (likely(new_stats)) { in ovs_flow_stats_update()
111 new_stats->used = jiffies; in ovs_flow_stats_update()
112 new_stats->packet_count = 1; in ovs_flow_stats_update()
113 new_stats->byte_count = len; in ovs_flow_stats_update()
114 new_stats->tcp_flags = tcp_flags; in ovs_flow_stats_update()
115 spin_lock_init(&new_stats->lock); in ovs_flow_stats_update()
118 new_stats); in ovs_flow_stats_update()