Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/net/ethernet/microchip/lan966x/
A Dlan966x_mirror.c107 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 …]
A Dlan966x_police.c143 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()
231 old_stats->bytes = new_stats.rx_bytes; in lan966x_police_port_stats()
232 old_stats->pkts = new_stats.rx_packets; in lan966x_police_port_stats()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/amd/
A Damd8111e.c860 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.3-rc2/net/openvswitch/
A Dflow.c92 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 10 milliseconds