/Linux-v4.19/net/openvswitch/ |
D | vport-internal_dev.c | 56 struct pcpu_sw_netstats *tstats = this_cpu_ptr(netdev->tstats); in internal_dev_xmit() local 58 u64_stats_update_begin(&tstats->syncp); in internal_dev_xmit() 59 tstats->tx_bytes += len; in internal_dev_xmit() 60 tstats->tx_packets++; in internal_dev_xmit() 61 u64_stats_update_end(&tstats->syncp); in internal_dev_xmit() 114 percpu_stats = per_cpu_ptr(dev->tstats, i); in internal_get_stats() 186 vport->dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in internal_dev_create() 187 if (!vport->dev->tstats) { in internal_dev_create() 213 free_percpu(vport->dev->tstats); in internal_dev_create() 230 free_percpu(vport->dev->tstats); in internal_dev_destroy() [all …]
|
/Linux-v4.19/net/xfrm/ |
D | xfrm_interface.c | 122 free_percpu(dev->tstats); in xfrmi_dev_free() 247 struct pcpu_sw_netstats *tstats; in xfrmi_rcv_cb() local 294 tstats = this_cpu_ptr(dev->tstats); in xfrmi_rcv_cb() 296 u64_stats_update_begin(&tstats->syncp); in xfrmi_rcv_cb() 297 tstats->rx_packets++; in xfrmi_rcv_cb() 298 tstats->rx_bytes += skb->len; in xfrmi_rcv_cb() 299 u64_stats_update_end(&tstats->syncp); in xfrmi_rcv_cb() 367 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in xfrmi_xmit2() local 369 u64_stats_update_begin(&tstats->syncp); in xfrmi_xmit2() 370 tstats->tx_bytes += length; in xfrmi_xmit2() [all …]
|
/Linux-v4.19/net/ipv4/ |
D | ip_tunnel_core.c | 201 const struct pcpu_sw_netstats *tstats = in ip_tunnel_get_stats64() local 202 per_cpu_ptr(dev->tstats, i); in ip_tunnel_get_stats64() 207 start = u64_stats_fetch_begin_irq(&tstats->syncp); in ip_tunnel_get_stats64() 208 rx_packets = tstats->rx_packets; in ip_tunnel_get_stats64() 209 tx_packets = tstats->tx_packets; in ip_tunnel_get_stats64() 210 rx_bytes = tstats->rx_bytes; in ip_tunnel_get_stats64() 211 tx_bytes = tstats->tx_bytes; in ip_tunnel_get_stats64() 212 } while (u64_stats_fetch_retry_irq(&tstats->syncp, start)); in ip_tunnel_get_stats64()
|
D | ip_vti.c | 89 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()
|
D | ip_tunnel.c | 378 struct pcpu_sw_netstats *tstats; in ip_tunnel_rcv() local 420 tstats = this_cpu_ptr(tunnel->dev->tstats); in ip_tunnel_rcv() 421 u64_stats_update_begin(&tstats->syncp); in ip_tunnel_rcv() 422 tstats->rx_packets++; in ip_tunnel_rcv() 423 tstats->rx_bytes += skb->len; in ip_tunnel_rcv() 424 u64_stats_update_end(&tstats->syncp); in ip_tunnel_rcv() 971 free_percpu(dev->tstats); in ip_tunnel_dev_free() 1185 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip_tunnel_init() 1186 if (!dev->tstats) in ip_tunnel_init() 1191 free_percpu(dev->tstats); in ip_tunnel_init() [all …]
|
/Linux-v4.19/drivers/net/ethernet/cavium/liquidio/ |
D | lio_core.c | 1341 struct nic_tx_stats *tstats = &oct_dev->link_stats.fromhost; in octnet_nic_stats_callback() local 1390 tstats->total_pkts_sent = rsp_tstats->total_pkts_sent; in octnet_nic_stats_callback() 1391 tstats->total_bytes_sent = rsp_tstats->total_bytes_sent; in octnet_nic_stats_callback() 1392 tstats->mcast_pkts_sent = rsp_tstats->mcast_pkts_sent; in octnet_nic_stats_callback() 1393 tstats->bcast_pkts_sent = rsp_tstats->bcast_pkts_sent; in octnet_nic_stats_callback() 1394 tstats->ctl_sent = rsp_tstats->ctl_sent; in octnet_nic_stats_callback() 1396 tstats->one_collision_sent = rsp_tstats->one_collision_sent; in octnet_nic_stats_callback() 1398 tstats->multi_collision_sent = rsp_tstats->multi_collision_sent; in octnet_nic_stats_callback() 1400 tstats->max_collision_fail = rsp_tstats->max_collision_fail; in octnet_nic_stats_callback() 1402 tstats->max_deferral_fail = rsp_tstats->max_deferral_fail; in octnet_nic_stats_callback() [all …]
|
/Linux-v4.19/include/net/ |
D | ip_tunnels.h | 438 struct pcpu_sw_netstats *tstats = get_cpu_ptr(dev->tstats); in iptunnel_xmit_stats() local 440 u64_stats_update_begin(&tstats->syncp); in iptunnel_xmit_stats() 441 tstats->tx_bytes += pkt_len; in iptunnel_xmit_stats() 442 tstats->tx_packets++; in iptunnel_xmit_stats() 443 u64_stats_update_end(&tstats->syncp); in iptunnel_xmit_stats() 444 put_cpu_ptr(tstats); in iptunnel_xmit_stats()
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/ |
D | qed_fcoe.c | 664 struct fcoe_rx_stat tstats; in _qed_fcoe_get_tstats() local 667 memset(&tstats, 0, sizeof(tstats)); in _qed_fcoe_get_tstats() 670 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_fcoe_get_tstats() 672 p_stats->fcoe_rx_byte_cnt = HILO_64_REGPAIR(tstats.fcoe_rx_byte_cnt); in _qed_fcoe_get_tstats() 674 HILO_64_REGPAIR(tstats.fcoe_rx_data_pkt_cnt); in _qed_fcoe_get_tstats() 676 HILO_64_REGPAIR(tstats.fcoe_rx_xfer_pkt_cnt); in _qed_fcoe_get_tstats() 678 HILO_64_REGPAIR(tstats.fcoe_rx_other_pkt_cnt); in _qed_fcoe_get_tstats() 681 le32_to_cpu(tstats.fcoe_silent_drop_pkt_cmdq_full_cnt); in _qed_fcoe_get_tstats() 683 le32_to_cpu(tstats.fcoe_silent_drop_pkt_rq_full_cnt); in _qed_fcoe_get_tstats() 685 le32_to_cpu(tstats.fcoe_silent_drop_pkt_crc_error_cnt); in _qed_fcoe_get_tstats() [all …]
|
D | qed_iscsi.c | 936 struct tstorm_iscsi_stats_drv tstats; in _qed_iscsi_get_tstats() local 939 memset(&tstats, 0, sizeof(tstats)); in _qed_iscsi_get_tstats() 942 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_iscsi_get_tstats() 945 HILO_64_REGPAIR(tstats.iscsi_rx_bytes_cnt); in _qed_iscsi_get_tstats() 947 HILO_64_REGPAIR(tstats.iscsi_rx_packet_cnt); in _qed_iscsi_get_tstats() 949 HILO_64_REGPAIR(tstats.iscsi_rx_new_ooo_isle_events_cnt); in _qed_iscsi_get_tstats() 951 le32_to_cpu(tstats.iscsi_cmdq_threshold_cnt); in _qed_iscsi_get_tstats() 953 le32_to_cpu(tstats.iscsi_rq_threshold_cnt); in _qed_iscsi_get_tstats() 955 le32_to_cpu(tstats.iscsi_immq_threshold_cnt); in _qed_iscsi_get_tstats()
|
D | qed_l2.c | 1660 struct tstorm_per_port_stat tstats; in __qed_get_vport_tstats() local 1671 tstats_addr = p_resp->pfdev_info.stats_info.tstats.address; in __qed_get_vport_tstats() 1672 tstats_len = p_resp->pfdev_info.stats_info.tstats.len; in __qed_get_vport_tstats() 1675 memset(&tstats, 0, sizeof(tstats)); in __qed_get_vport_tstats() 1676 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, tstats_len); in __qed_get_vport_tstats() 1679 HILO_64_REGPAIR(tstats.mftag_filter_discard); in __qed_get_vport_tstats() 1681 HILO_64_REGPAIR(tstats.eth_mac_filter_discard); in __qed_get_vport_tstats() 1683 HILO_64_REGPAIR(tstats.eth_gft_drop_pkt); in __qed_get_vport_tstats()
|
D | qed_ll2.c | 2078 struct core_ll2_tstorm_per_queue_stat tstats; in _qed_ll2_get_tstats() local 2082 memset(&tstats, 0, sizeof(tstats)); in _qed_ll2_get_tstats() 2085 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_ll2_get_tstats() 2088 HILO_64_REGPAIR(tstats.packet_too_big_discard); in _qed_ll2_get_tstats() 2089 p_stats->no_buff_discard = HILO_64_REGPAIR(tstats.no_buff_discard); in _qed_ll2_get_tstats()
|
D | qed_vf.h | 173 struct pfvf_storm_stats tstats; member
|
D | qed.h | 436 struct storm_stats tstats; member
|
/Linux-v4.19/net/ipv6/ |
D | ip6_tunnel.c | 104 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() 783 struct pcpu_sw_netstats *tstats; in __ip6_tnl_rcv() local [all …]
|
D | ip6_vti.c | 182 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() 897 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in vti6_dev_init_gen() 898 if (!dev->tstats) in vti6_dev_init_gen()
|
D | sit.c | 651 struct pcpu_sw_netstats *tstats; in ipip6_rcv() local 683 tstats = this_cpu_ptr(tunnel->dev->tstats); in ipip6_rcv() 684 u64_stats_update_begin(&tstats->syncp); in ipip6_rcv() 685 tstats->rx_packets++; in ipip6_rcv() 686 tstats->rx_bytes += skb->len; in ipip6_rcv() 687 u64_stats_update_end(&tstats->syncp); in ipip6_rcv() 1352 free_percpu(dev->tstats); in ipip6_dev_free() 1393 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ipip6_tunnel_init() 1394 if (!dev->tstats) in ipip6_tunnel_init() 1399 free_percpu(dev->tstats); in ipip6_tunnel_init() [all …]
|
D | ip6_gre.c | 1396 free_percpu(dev->tstats); in ip6gre_dev_free() 1457 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6gre_tunnel_init_common() 1458 if (!dev->tstats) in ip6gre_tunnel_init_common() 1487 free_percpu(dev->tstats); in ip6gre_tunnel_init_common() 1488 dev->tstats = NULL; in ip6gre_tunnel_init_common() 1845 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6erspan_tap_init() 1846 if (!dev->tstats) in ip6erspan_tap_init() 1872 free_percpu(dev->tstats); in ip6erspan_tap_init() 1873 dev->tstats = NULL; in ip6erspan_tap_init()
|
/Linux-v4.19/net/mac80211/ |
D | iface.c | 1145 const struct pcpu_sw_netstats *tstats; in ieee80211_get_stats64() local 1149 tstats = per_cpu_ptr(dev->tstats, i); in ieee80211_get_stats64() 1152 start = u64_stats_fetch_begin_irq(&tstats->syncp); in ieee80211_get_stats64() 1153 rx_packets = tstats->rx_packets; in ieee80211_get_stats64() 1154 tx_packets = tstats->tx_packets; in ieee80211_get_stats64() 1155 rx_bytes = tstats->rx_bytes; in ieee80211_get_stats64() 1156 tx_bytes = tstats->tx_bytes; in ieee80211_get_stats64() 1157 } while (u64_stats_fetch_retry_irq(&tstats->syncp, start)); in ieee80211_get_stats64() 1212 free_percpu(dev->tstats); in ieee80211_if_free() 1779 ndev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ieee80211_if_add() [all …]
|
D | rx.c | 40 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in ieee80211_rx_stats() local 42 u64_stats_update_begin(&tstats->syncp); in ieee80211_rx_stats() 43 tstats->rx_packets++; in ieee80211_rx_stats() 44 tstats->rx_bytes += len; in ieee80211_rx_stats() 45 u64_stats_update_end(&tstats->syncp); in ieee80211_rx_stats()
|
/Linux-v4.19/drivers/net/ |
D | geneve.c | 298 stats = this_cpu_ptr(geneve->dev->tstats); in geneve_rx() 316 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in geneve_init() 317 if (!dev->tstats) in geneve_init() 322 free_percpu(dev->tstats); in geneve_init() 328 free_percpu(dev->tstats); in geneve_init() 341 free_percpu(dev->tstats); in geneve_uninit()
|
D | gtp.c | 212 stats = this_cpu_ptr(pctx->dev->tstats); in gtp_rx() 367 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in gtp_dev_init() 368 if (!dev->tstats) in gtp_dev_init() 379 free_percpu(dev->tstats); in gtp_dev_uninit()
|
D | macsec.c | 589 struct pcpu_sw_netstats *stats = this_cpu_ptr(dev->tstats); in count_tx() 879 struct pcpu_sw_netstats *stats = this_cpu_ptr(dev->tstats); in count_rx() 2762 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in macsec_dev_init() 2763 if (!dev->tstats) in macsec_dev_init() 2768 free_percpu(dev->tstats); in macsec_dev_init() 2793 free_percpu(dev->tstats); in macsec_dev_uninit() 2933 if (!dev->tstats) in macsec_get_stats64() 2941 stats = per_cpu_ptr(dev->tstats, cpu); in macsec_get_stats64()
|
D | vxlan.c | 1472 stats = this_cpu_ptr(vxlan->dev->tstats); in vxlan_rcv() 2009 tx_stats = this_cpu_ptr(src_vxlan->dev->tstats); in vxlan_encap_bypass() 2010 rx_stats = this_cpu_ptr(dst_vxlan->dev->tstats); in vxlan_encap_bypass() 2433 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in vxlan_init() 2434 if (!dev->tstats) in vxlan_init() 2457 free_percpu(dev->tstats); in vxlan_uninit()
|
/Linux-v4.19/Documentation/networking/ |
D | gen_stats.txt | 25 mystruct->tstats.packet++;
|
/Linux-v4.19/net/sched/ |
D | sch_cake.c | 2761 struct nlattr *tstats, *ts; in cake_dump_stats() local 2789 tstats = nla_nest_start(d->skb, TCA_CAKE_STATS_TIN_STATS); in cake_dump_stats() 2790 if (!tstats) in cake_dump_stats() 2848 nla_nest_end(d->skb, tstats); in cake_dump_stats()
|