Home
last modified time | relevance | path

Searched refs:tstats (Results 1 – 11 of 11) sorted by relevance

/net/openvswitch/
Dvport-internal_dev.c57 struct pcpu_sw_netstats *tstats = this_cpu_ptr(netdev->tstats); in internal_dev_xmit() local
59 u64_stats_update_begin(&tstats->syncp); in internal_dev_xmit()
60 tstats->tx_bytes += len; in internal_dev_xmit()
61 tstats->tx_packets++; in internal_dev_xmit()
62 u64_stats_update_end(&tstats->syncp); in internal_dev_xmit()
125 percpu_stats = per_cpu_ptr(dev->tstats, i); in internal_get_stats()
203 vport->dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in internal_dev_create()
204 if (!vport->dev->tstats) { in internal_dev_create()
231 free_percpu(vport->dev->tstats); in internal_dev_create()
248 free_percpu(vport->dev->tstats); in internal_dev_destroy()
[all …]
/net/ipv4/
Dip_tunnel_core.c199 const struct pcpu_sw_netstats *tstats = in ip_tunnel_get_stats64() local
200 per_cpu_ptr(dev->tstats, i); in ip_tunnel_get_stats64()
205 start = u64_stats_fetch_begin_irq(&tstats->syncp); in ip_tunnel_get_stats64()
206 rx_packets = tstats->rx_packets; in ip_tunnel_get_stats64()
207 tx_packets = tstats->tx_packets; in ip_tunnel_get_stats64()
208 rx_bytes = tstats->rx_bytes; in ip_tunnel_get_stats64()
209 tx_bytes = tstats->tx_bytes; in ip_tunnel_get_stats64()
210 } while (u64_stats_fetch_retry_irq(&tstats->syncp, start)); in ip_tunnel_get_stats64()
Dip_vti.c89 struct pcpu_sw_netstats *tstats; in vti_rcv_cb() local
133 tstats = this_cpu_ptr(dev->tstats); in vti_rcv_cb()
135 u64_stats_update_begin(&tstats->syncp); in vti_rcv_cb()
136 tstats->rx_packets++; in vti_rcv_cb()
137 tstats->rx_bytes += skb->len; in vti_rcv_cb()
138 u64_stats_update_end(&tstats->syncp); in vti_rcv_cb()
Dip_tunnel.c379 struct pcpu_sw_netstats *tstats; in ip_tunnel_rcv() local
421 tstats = this_cpu_ptr(tunnel->dev->tstats); in ip_tunnel_rcv()
422 u64_stats_update_begin(&tstats->syncp); in ip_tunnel_rcv()
423 tstats->rx_packets++; in ip_tunnel_rcv()
424 tstats->rx_bytes += skb->len; in ip_tunnel_rcv()
425 u64_stats_update_end(&tstats->syncp); in ip_tunnel_rcv()
960 free_percpu(dev->tstats); in ip_tunnel_dev_free()
1149 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip_tunnel_init()
1150 if (!dev->tstats) in ip_tunnel_init()
1155 free_percpu(dev->tstats); in ip_tunnel_init()
[all …]
/net/ipv6/
Dip6_vti.c181 free_percpu(dev->tstats); in vti6_dev_free()
342 struct pcpu_sw_netstats *tstats; in vti6_rcv_cb() local
386 tstats = this_cpu_ptr(dev->tstats); in vti6_rcv_cb()
387 u64_stats_update_begin(&tstats->syncp); in vti6_rcv_cb()
388 tstats->rx_packets++; in vti6_rcv_cb()
389 tstats->rx_bytes += skb->len; in vti6_rcv_cb()
390 u64_stats_update_end(&tstats->syncp); in vti6_rcv_cb()
506 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in vti6_xmit() local
508 u64_stats_update_begin(&tstats->syncp); in vti6_xmit()
509 tstats->tx_bytes += pkt_len; in vti6_xmit()
[all …]
Dip6_tunnel.c104 const struct pcpu_sw_netstats *tstats = in ip6_get_stats() local
105 per_cpu_ptr(dev->tstats, i); in ip6_get_stats()
108 start = u64_stats_fetch_begin_irq(&tstats->syncp); in ip6_get_stats()
109 tmp.rx_packets = tstats->rx_packets; in ip6_get_stats()
110 tmp.rx_bytes = tstats->rx_bytes; in ip6_get_stats()
111 tmp.tx_packets = tstats->tx_packets; in ip6_get_stats()
112 tmp.tx_bytes = tstats->tx_bytes; in ip6_get_stats()
113 } while (u64_stats_fetch_retry_irq(&tstats->syncp, start)); in ip6_get_stats()
256 free_percpu(dev->tstats); in ip6_dev_free()
791 struct pcpu_sw_netstats *tstats; in __ip6_tnl_rcv() local
[all …]
Dsit.c643 struct pcpu_sw_netstats *tstats; in ipip6_rcv() local
676 tstats = this_cpu_ptr(tunnel->dev->tstats); in ipip6_rcv()
677 u64_stats_update_begin(&tstats->syncp); in ipip6_rcv()
678 tstats->rx_packets++; in ipip6_rcv()
679 tstats->rx_bytes += skb->len; in ipip6_rcv()
680 u64_stats_update_end(&tstats->syncp); in ipip6_rcv()
1351 free_percpu(dev->tstats); in ipip6_dev_free()
1390 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ipip6_tunnel_init()
1391 if (!dev->tstats) in ipip6_tunnel_init()
1396 free_percpu(dev->tstats); in ipip6_tunnel_init()
[all …]
Dip6_gre.c1007 free_percpu(dev->tstats); in ip6gre_dev_free()
1035 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6gre_tunnel_init_common()
1036 if (!dev->tstats) in ip6gre_tunnel_init_common()
1041 free_percpu(dev->tstats); in ip6gre_tunnel_init_common()
1042 dev->tstats = NULL; in ip6gre_tunnel_init_common()
/net/mac80211/
Diface.c1155 const struct pcpu_sw_netstats *tstats; in ieee80211_get_stats64() local
1159 tstats = per_cpu_ptr(dev->tstats, i); in ieee80211_get_stats64()
1162 start = u64_stats_fetch_begin_irq(&tstats->syncp); in ieee80211_get_stats64()
1163 rx_packets = tstats->rx_packets; in ieee80211_get_stats64()
1164 tx_packets = tstats->tx_packets; in ieee80211_get_stats64()
1165 rx_bytes = tstats->rx_bytes; in ieee80211_get_stats64()
1166 tx_bytes = tstats->tx_bytes; in ieee80211_get_stats64()
1167 } while (u64_stats_fetch_retry_irq(&tstats->syncp, start)); in ieee80211_get_stats64()
1226 free_percpu(dev->tstats); in ieee80211_if_free()
1821 ndev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ieee80211_if_add()
[all …]
Drx.c39 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in ieee80211_rx_stats() local
41 u64_stats_update_begin(&tstats->syncp); in ieee80211_rx_stats()
42 tstats->rx_packets++; in ieee80211_rx_stats()
43 tstats->rx_bytes += len; in ieee80211_rx_stats()
44 u64_stats_update_end(&tstats->syncp); in ieee80211_rx_stats()
Dtx.c45 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in ieee80211_tx_stats() local
47 u64_stats_update_begin(&tstats->syncp); in ieee80211_tx_stats()
48 tstats->tx_packets++; in ieee80211_tx_stats()
49 tstats->tx_bytes += len; in ieee80211_tx_stats()
50 u64_stats_update_end(&tstats->syncp); in ieee80211_tx_stats()