Searched refs:tstats (Results 1 – 11 of 11) sorted by relevance
57 struct pcpu_sw_netstats *tstats = this_cpu_ptr(netdev->tstats); in internal_dev_xmit() local59 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 …]
199 const struct pcpu_sw_netstats *tstats = in ip_tunnel_get_stats64() local200 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()
89 struct pcpu_sw_netstats *tstats; in vti_rcv_cb() local133 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()
379 struct pcpu_sw_netstats *tstats; in ip_tunnel_rcv() local421 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 …]
181 free_percpu(dev->tstats); in vti6_dev_free()342 struct pcpu_sw_netstats *tstats; in vti6_rcv_cb() local386 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() local508 u64_stats_update_begin(&tstats->syncp); in vti6_xmit()509 tstats->tx_bytes += pkt_len; in vti6_xmit()[all …]
104 const struct pcpu_sw_netstats *tstats = in ip6_get_stats() local105 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 …]
643 struct pcpu_sw_netstats *tstats; in ipip6_rcv() local676 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 …]
1007 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()
1155 const struct pcpu_sw_netstats *tstats; in ieee80211_get_stats64() local1159 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 …]
39 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in ieee80211_rx_stats() local41 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()
45 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in ieee80211_tx_stats() local47 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()