Home
last modified time | relevance | path

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

/net/bridge/
Dbr_device.c122 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in br_dev_init()
123 if (!dev->tstats) in br_dev_init()
128 free_percpu(dev->tstats); in br_dev_init()
134 free_percpu(dev->tstats); in br_dev_init()
141 free_percpu(dev->tstats); in br_dev_init()
149 free_percpu(dev->tstats); in br_dev_init()
168 free_percpu(dev->tstats); in br_dev_uninit()
/net/openvswitch/
Dvport-internal_dev.c143 vport->dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in internal_dev_create()
144 if (!vport->dev->tstats) { in internal_dev_create()
171 free_percpu(dev->tstats); in internal_dev_create()
188 free_percpu(vport->dev->tstats); in internal_dev_destroy()
/net/ipv6/
Dsit.c687 struct pcpu_sw_netstats *tstats; in ipip6_rcv() local
725 tstats = this_cpu_ptr(tunnel->dev->tstats); in ipip6_rcv()
726 u64_stats_update_begin(&tstats->syncp); in ipip6_rcv()
727 tstats->rx_packets++; in ipip6_rcv()
728 tstats->rx_bytes += skb->len; in ipip6_rcv()
729 u64_stats_update_end(&tstats->syncp); in ipip6_rcv()
1417 free_percpu(dev->tstats); in ipip6_dev_free()
1458 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ipip6_tunnel_init()
1459 if (!dev->tstats) in ipip6_tunnel_init()
1464 free_percpu(dev->tstats); in ipip6_tunnel_init()
[all …]
Dip6_gre.c1432 free_percpu(dev->tstats); in ip6gre_dev_free()
1493 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6gre_tunnel_init_common()
1494 if (!dev->tstats) in ip6gre_tunnel_init_common()
1523 free_percpu(dev->tstats); in ip6gre_tunnel_init_common()
1524 dev->tstats = NULL; in ip6gre_tunnel_init_common()
1887 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6erspan_tap_init()
1888 if (!dev->tstats) in ip6erspan_tap_init()
1915 free_percpu(dev->tstats); in ip6erspan_tap_init()
1916 dev->tstats = NULL; in ip6erspan_tap_init()
Dip6_vti.c179 free_percpu(dev->tstats); in vti6_dev_free()
936 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in vti6_dev_init_gen()
937 if (!dev->tstats) in vti6_dev_init_gen()
Dip6_tunnel.c250 free_percpu(dev->tstats); in ip6_dev_free()
1858 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6_tnl_dev_init_gen()
1859 if (!dev->tstats) in ip6_tnl_dev_init_gen()
1888 free_percpu(dev->tstats); in ip6_tnl_dev_init_gen()
1889 dev->tstats = NULL; in ip6_tnl_dev_init_gen()
/net/xfrm/
Dxfrm_interface_core.c145 free_percpu(dev->tstats); in xfrmi_dev_free()
586 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in xfrmi_dev_init()
587 if (!dev->tstats) in xfrmi_dev_init()
592 free_percpu(dev->tstats); in xfrmi_dev_init()
/net/ipv4/
Dip_tunnel.c1012 free_percpu(dev->tstats); in ip_tunnel_dev_free()
1228 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip_tunnel_init()
1229 if (!dev->tstats) in ip_tunnel_init()
1234 free_percpu(dev->tstats); in ip_tunnel_init()
1241 free_percpu(dev->tstats); in ip_tunnel_init()
/net/dsa/
Dslave.c753 s = per_cpu_ptr(dev->tstats, i); in dsa_slave_get_ethtool_stats()
1974 slave_dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in dsa_slave_create()
1975 if (!slave_dev->tstats) { in dsa_slave_create()
2035 free_percpu(slave_dev->tstats); in dsa_slave_create()
2056 free_percpu(slave_dev->tstats); in dsa_slave_destroy()
/net/mac80211/
Diface.c710 dev_fetch_sw_netstats(stats, dev->tstats); in ieee80211_get_stats64()
1308 free_percpu(dev->tstats); in ieee80211_if_free()
1945 ndev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ieee80211_if_add()
1946 if (!ndev->tstats) { in ieee80211_if_add()
/net/sched/
Dsch_cake.c2853 struct nlattr *tstats, *ts; in cake_dump_stats() local
2881 tstats = nla_nest_start_noflag(d->skb, TCA_CAKE_STATS_TIN_STATS); in cake_dump_stats()
2882 if (!tstats) in cake_dump_stats()
2940 nla_nest_end(d->skb, tstats); in cake_dump_stats()
/net/core/
Ddev.c10773 dev_fetch_sw_netstats(s, dev->tstats); in dev_get_tstats64()