/Linux-v5.4/net/openvswitch/ |
D | vport-internal_dev.c | 44 struct pcpu_sw_netstats *tstats = this_cpu_ptr(netdev->tstats); in internal_dev_xmit() local 46 u64_stats_update_begin(&tstats->syncp); in internal_dev_xmit() 47 tstats->tx_bytes += len; in internal_dev_xmit() 48 tstats->tx_packets++; in internal_dev_xmit() 49 u64_stats_update_end(&tstats->syncp); in internal_dev_xmit() 102 percpu_stats = per_cpu_ptr(dev->tstats, i); in internal_get_stats() 176 vport->dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in internal_dev_create() 177 if (!vport->dev->tstats) { in internal_dev_create() 204 free_percpu(dev->tstats); in internal_dev_create() 221 free_percpu(vport->dev->tstats); in internal_dev_destroy() [all …]
|
/Linux-v5.4/net/xfrm/ |
D | xfrm_interface.c | 133 free_percpu(dev->tstats); in xfrmi_dev_free() 203 struct pcpu_sw_netstats *tstats; in xfrmi_rcv_cb() local 249 tstats = this_cpu_ptr(dev->tstats); in xfrmi_rcv_cb() 251 u64_stats_update_begin(&tstats->syncp); in xfrmi_rcv_cb() 252 tstats->rx_packets++; in xfrmi_rcv_cb() 253 tstats->rx_bytes += skb->len; in xfrmi_rcv_cb() 254 u64_stats_update_end(&tstats->syncp); in xfrmi_rcv_cb() 322 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in xfrmi_xmit2() local 324 u64_stats_update_begin(&tstats->syncp); in xfrmi_xmit2() 325 tstats->tx_bytes += length; in xfrmi_xmit2() [all …]
|
/Linux-v5.4/drivers/net/ethernet/pensando/ionic/ |
D | ionic_stats.c | 76 struct ionic_tx_stats *tstats; in ionic_get_lif_stats() local 87 tstats = &txqcq->stats->tx; in ionic_get_lif_stats() 88 stats->tx_packets += tstats->pkts; in ionic_get_lif_stats() 89 stats->tx_bytes += tstats->bytes; in ionic_get_lif_stats() 90 stats->tx_tso += tstats->tso; in ionic_get_lif_stats() 91 stats->tx_no_csum += tstats->no_csum; in ionic_get_lif_stats() 92 stats->tx_csum += tstats->csum; in ionic_get_lif_stats()
|
/Linux-v5.4/drivers/net/ethernet/cavium/liquidio/ |
D | lio_core.c | 1294 struct nic_tx_stats *tstats = &oct_dev->link_stats.fromhost; in octnet_nic_stats_callback() local 1343 tstats->total_pkts_sent = rsp_tstats->total_pkts_sent; in octnet_nic_stats_callback() 1344 tstats->total_bytes_sent = rsp_tstats->total_bytes_sent; in octnet_nic_stats_callback() 1345 tstats->mcast_pkts_sent = rsp_tstats->mcast_pkts_sent; in octnet_nic_stats_callback() 1346 tstats->bcast_pkts_sent = rsp_tstats->bcast_pkts_sent; in octnet_nic_stats_callback() 1347 tstats->ctl_sent = rsp_tstats->ctl_sent; in octnet_nic_stats_callback() 1349 tstats->one_collision_sent = rsp_tstats->one_collision_sent; in octnet_nic_stats_callback() 1351 tstats->multi_collision_sent = rsp_tstats->multi_collision_sent; in octnet_nic_stats_callback() 1353 tstats->max_collision_fail = rsp_tstats->max_collision_fail; in octnet_nic_stats_callback() 1355 tstats->max_deferral_fail = rsp_tstats->max_deferral_fail; in octnet_nic_stats_callback() [all …]
|
/Linux-v5.4/net/ipv4/ |
D | ip_tunnel_core.c | 192 const struct pcpu_sw_netstats *tstats = in ip_tunnel_get_stats64() local 193 per_cpu_ptr(dev->tstats, i); in ip_tunnel_get_stats64() 198 start = u64_stats_fetch_begin_irq(&tstats->syncp); in ip_tunnel_get_stats64() 199 rx_packets = tstats->rx_packets; in ip_tunnel_get_stats64() 200 tx_packets = tstats->tx_packets; in ip_tunnel_get_stats64() 201 rx_bytes = tstats->rx_bytes; in ip_tunnel_get_stats64() 202 tx_bytes = tstats->tx_bytes; in ip_tunnel_get_stats64() 203 } while (u64_stats_fetch_retry_irq(&tstats->syncp, start)); in ip_tunnel_get_stats64()
|
D | ip_vti.c | 103 struct pcpu_sw_netstats *tstats; in vti_rcv_cb() local 147 tstats = this_cpu_ptr(dev->tstats); in vti_rcv_cb() 149 u64_stats_update_begin(&tstats->syncp); in vti_rcv_cb() 150 tstats->rx_packets++; in vti_rcv_cb() 151 tstats->rx_bytes += skb->len; in vti_rcv_cb() 152 u64_stats_update_end(&tstats->syncp); in vti_rcv_cb()
|
D | ip_tunnel.c | 365 struct pcpu_sw_netstats *tstats; in ip_tunnel_rcv() local 407 tstats = this_cpu_ptr(tunnel->dev->tstats); in ip_tunnel_rcv() 408 u64_stats_update_begin(&tstats->syncp); in ip_tunnel_rcv() 409 tstats->rx_packets++; in ip_tunnel_rcv() 410 tstats->rx_bytes += skb->len; in ip_tunnel_rcv() 411 u64_stats_update_end(&tstats->syncp); in ip_tunnel_rcv() 1002 free_percpu(dev->tstats); in ip_tunnel_dev_free() 1216 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip_tunnel_init() 1217 if (!dev->tstats) in ip_tunnel_init() 1222 free_percpu(dev->tstats); in ip_tunnel_init() [all …]
|
/Linux-v5.4/include/net/ |
D | ip_tunnels.h | 441 struct pcpu_sw_netstats *tstats = get_cpu_ptr(dev->tstats); in iptunnel_xmit_stats() local 443 u64_stats_update_begin(&tstats->syncp); in iptunnel_xmit_stats() 444 tstats->tx_bytes += pkt_len; in iptunnel_xmit_stats() 445 tstats->tx_packets++; in iptunnel_xmit_stats() 446 u64_stats_update_end(&tstats->syncp); in iptunnel_xmit_stats() 447 put_cpu_ptr(tstats); in iptunnel_xmit_stats()
|
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/ |
D | qed_fcoe.c | 669 struct fcoe_rx_stat tstats; in _qed_fcoe_get_tstats() local 672 memset(&tstats, 0, sizeof(tstats)); in _qed_fcoe_get_tstats() 675 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_fcoe_get_tstats() 677 p_stats->fcoe_rx_byte_cnt = HILO_64_REGPAIR(tstats.fcoe_rx_byte_cnt); in _qed_fcoe_get_tstats() 679 HILO_64_REGPAIR(tstats.fcoe_rx_data_pkt_cnt); in _qed_fcoe_get_tstats() 681 HILO_64_REGPAIR(tstats.fcoe_rx_xfer_pkt_cnt); in _qed_fcoe_get_tstats() 683 HILO_64_REGPAIR(tstats.fcoe_rx_other_pkt_cnt); in _qed_fcoe_get_tstats() 686 le32_to_cpu(tstats.fcoe_silent_drop_pkt_cmdq_full_cnt); in _qed_fcoe_get_tstats() 688 le32_to_cpu(tstats.fcoe_silent_drop_pkt_rq_full_cnt); in _qed_fcoe_get_tstats() 690 le32_to_cpu(tstats.fcoe_silent_drop_pkt_crc_error_cnt); in _qed_fcoe_get_tstats() [all …]
|
D | qed_iscsi.c | 937 struct tstorm_iscsi_stats_drv tstats; in _qed_iscsi_get_tstats() local 940 memset(&tstats, 0, sizeof(tstats)); in _qed_iscsi_get_tstats() 943 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_iscsi_get_tstats() 946 HILO_64_REGPAIR(tstats.iscsi_rx_bytes_cnt); in _qed_iscsi_get_tstats() 948 HILO_64_REGPAIR(tstats.iscsi_rx_packet_cnt); in _qed_iscsi_get_tstats() 950 HILO_64_REGPAIR(tstats.iscsi_rx_new_ooo_isle_events_cnt); in _qed_iscsi_get_tstats() 952 le32_to_cpu(tstats.iscsi_cmdq_threshold_cnt); in _qed_iscsi_get_tstats() 954 le32_to_cpu(tstats.iscsi_rq_threshold_cnt); in _qed_iscsi_get_tstats() 956 le32_to_cpu(tstats.iscsi_immq_threshold_cnt); in _qed_iscsi_get_tstats()
|
D | qed_l2.c | 1667 struct tstorm_per_port_stat tstats; in __qed_get_vport_tstats() local 1678 tstats_addr = p_resp->pfdev_info.stats_info.tstats.address; in __qed_get_vport_tstats() 1679 tstats_len = p_resp->pfdev_info.stats_info.tstats.len; in __qed_get_vport_tstats() 1682 memset(&tstats, 0, sizeof(tstats)); in __qed_get_vport_tstats() 1683 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, tstats_len); in __qed_get_vport_tstats() 1686 HILO_64_REGPAIR(tstats.mftag_filter_discard); in __qed_get_vport_tstats() 1688 HILO_64_REGPAIR(tstats.eth_mac_filter_discard); in __qed_get_vport_tstats() 1690 HILO_64_REGPAIR(tstats.eth_gft_drop_pkt); in __qed_get_vport_tstats()
|
D | qed_ll2.c | 2101 struct core_ll2_tstorm_per_queue_stat tstats; in _qed_ll2_get_tstats() local 2105 memset(&tstats, 0, sizeof(tstats)); in _qed_ll2_get_tstats() 2108 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_ll2_get_tstats() 2111 HILO_64_REGPAIR(tstats.packet_too_big_discard); in _qed_ll2_get_tstats() 2112 p_stats->no_buff_discard += HILO_64_REGPAIR(tstats.no_buff_discard); in _qed_ll2_get_tstats()
|
D | qed.h | 455 struct storm_stats tstats; member
|
D | qed_vf.h | 173 struct pfvf_storm_stats tstats; member
|
/Linux-v5.4/net/ipv6/ |
D | ip6_tunnel.c | 99 const struct pcpu_sw_netstats *tstats = in ip6_get_stats() local 100 per_cpu_ptr(dev->tstats, i); in ip6_get_stats() 103 start = u64_stats_fetch_begin_irq(&tstats->syncp); in ip6_get_stats() 104 tmp.rx_packets = tstats->rx_packets; in ip6_get_stats() 105 tmp.rx_bytes = tstats->rx_bytes; in ip6_get_stats() 106 tmp.tx_packets = tstats->tx_packets; in ip6_get_stats() 107 tmp.tx_bytes = tstats->tx_bytes; in ip6_get_stats() 108 } while (u64_stats_fetch_retry_irq(&tstats->syncp, start)); in ip6_get_stats() 251 free_percpu(dev->tstats); in ip6_dev_free() 778 struct pcpu_sw_netstats *tstats; in __ip6_tnl_rcv() local [all …]
|
D | ip6_vti.c | 178 free_percpu(dev->tstats); in vti6_dev_free() 339 struct pcpu_sw_netstats *tstats; in vti6_rcv_cb() local 383 tstats = this_cpu_ptr(dev->tstats); in vti6_rcv_cb() 384 u64_stats_update_begin(&tstats->syncp); in vti6_rcv_cb() 385 tstats->rx_packets++; in vti6_rcv_cb() 386 tstats->rx_bytes += skb->len; in vti6_rcv_cb() 387 u64_stats_update_end(&tstats->syncp); in vti6_rcv_cb() 894 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in vti6_dev_init_gen() 895 if (!dev->tstats) in vti6_dev_init_gen()
|
D | sit.c | 648 struct pcpu_sw_netstats *tstats; in ipip6_rcv() local 684 tstats = this_cpu_ptr(tunnel->dev->tstats); in ipip6_rcv() 685 u64_stats_update_begin(&tstats->syncp); in ipip6_rcv() 686 tstats->rx_packets++; in ipip6_rcv() 687 tstats->rx_bytes += skb->len; in ipip6_rcv() 688 u64_stats_update_end(&tstats->syncp); in ipip6_rcv() 1362 free_percpu(dev->tstats); in ipip6_dev_free() 1403 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ipip6_tunnel_init() 1404 if (!dev->tstats) in ipip6_tunnel_init() 1409 free_percpu(dev->tstats); in ipip6_tunnel_init() [all …]
|
D | ip6_gre.c | 1388 free_percpu(dev->tstats); in ip6gre_dev_free() 1449 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6gre_tunnel_init_common() 1450 if (!dev->tstats) in ip6gre_tunnel_init_common() 1479 free_percpu(dev->tstats); in ip6gre_tunnel_init_common() 1480 dev->tstats = NULL; in ip6gre_tunnel_init_common() 1844 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6erspan_tap_init() 1845 if (!dev->tstats) in ip6erspan_tap_init() 1871 free_percpu(dev->tstats); in ip6erspan_tap_init() 1872 dev->tstats = NULL; in ip6erspan_tap_init()
|
/Linux-v5.4/net/mac80211/ |
D | iface.c | 1144 const struct pcpu_sw_netstats *tstats; in ieee80211_get_stats64() local 1148 tstats = per_cpu_ptr(dev->tstats, i); in ieee80211_get_stats64() 1151 start = u64_stats_fetch_begin_irq(&tstats->syncp); in ieee80211_get_stats64() 1152 rx_packets = tstats->rx_packets; in ieee80211_get_stats64() 1153 tx_packets = tstats->tx_packets; in ieee80211_get_stats64() 1154 rx_bytes = tstats->rx_bytes; in ieee80211_get_stats64() 1155 tx_bytes = tstats->tx_bytes; in ieee80211_get_stats64() 1156 } while (u64_stats_fetch_retry_irq(&tstats->syncp, start)); in ieee80211_get_stats64() 1210 free_percpu(dev->tstats); in ieee80211_if_free() 1777 ndev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ieee80211_if_add() [all …]
|
D | rx.c | 37 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in ieee80211_rx_stats() local 39 u64_stats_update_begin(&tstats->syncp); in ieee80211_rx_stats() 40 tstats->rx_packets++; in ieee80211_rx_stats() 41 tstats->rx_bytes += len; in ieee80211_rx_stats() 42 u64_stats_update_end(&tstats->syncp); in ieee80211_rx_stats()
|
/Linux-v5.4/drivers/net/ |
D | gtp.c | 208 stats = this_cpu_ptr(pctx->dev->tstats); in gtp_rx() 376 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in gtp_dev_init() 377 if (!dev->tstats) in gtp_dev_init() 388 free_percpu(dev->tstats); in gtp_dev_uninit()
|
D | geneve.c | 296 stats = this_cpu_ptr(geneve->dev->tstats); in geneve_rx() 314 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in geneve_init() 315 if (!dev->tstats) in geneve_init() 320 free_percpu(dev->tstats); in geneve_init() 326 free_percpu(dev->tstats); in geneve_init() 339 free_percpu(dev->tstats); in geneve_uninit()
|
D | macsec.c | 584 struct pcpu_sw_netstats *stats = this_cpu_ptr(dev->tstats); in count_tx() 875 struct pcpu_sw_netstats *stats = this_cpu_ptr(dev->tstats); in count_rx() 2759 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in macsec_dev_init() 2760 if (!dev->tstats) in macsec_dev_init() 2765 free_percpu(dev->tstats); in macsec_dev_init() 2790 free_percpu(dev->tstats); in macsec_dev_uninit() 2927 if (!dev->tstats) in macsec_get_stats64() 2935 stats = per_cpu_ptr(dev->tstats, cpu); in macsec_get_stats64()
|
/Linux-v5.4/Documentation/networking/ |
D | gen_stats.txt | 25 mystruct->tstats.packet++;
|
/Linux-v5.4/net/sched/ |
D | sch_cake.c | 2812 struct nlattr *tstats, *ts; in cake_dump_stats() local 2840 tstats = nla_nest_start_noflag(d->skb, TCA_CAKE_STATS_TIN_STATS); in cake_dump_stats() 2841 if (!tstats) in cake_dump_stats() 2899 nla_nest_end(d->skb, tstats); in cake_dump_stats()
|