/kernel/linux/linux-5.10/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() 95 dev_fetch_sw_netstats(stats, dev->tstats); in internal_get_stats() 158 vport->dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in internal_dev_create() 159 if (!vport->dev->tstats) { in internal_dev_create() 186 free_percpu(dev->tstats); in internal_dev_create() 203 free_percpu(vport->dev->tstats); in internal_dev_destroy()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/ |
D | lio_core.c | 1299 struct nic_tx_stats *tstats = &oct_dev->link_stats.fromhost; in octnet_nic_stats_callback() local 1348 tstats->total_pkts_sent = rsp_tstats->total_pkts_sent; in octnet_nic_stats_callback() 1349 tstats->total_bytes_sent = rsp_tstats->total_bytes_sent; in octnet_nic_stats_callback() 1350 tstats->mcast_pkts_sent = rsp_tstats->mcast_pkts_sent; in octnet_nic_stats_callback() 1351 tstats->bcast_pkts_sent = rsp_tstats->bcast_pkts_sent; in octnet_nic_stats_callback() 1352 tstats->ctl_sent = rsp_tstats->ctl_sent; in octnet_nic_stats_callback() 1354 tstats->one_collision_sent = rsp_tstats->one_collision_sent; in octnet_nic_stats_callback() 1356 tstats->multi_collision_sent = rsp_tstats->multi_collision_sent; in octnet_nic_stats_callback() 1358 tstats->max_collision_fail = rsp_tstats->max_collision_fail; in octnet_nic_stats_callback() 1360 tstats->max_deferral_fail = rsp_tstats->max_deferral_fail; in octnet_nic_stats_callback() [all …]
|
/kernel/linux/linux-5.10/include/net/ |
D | ip_tunnels.h | 447 struct pcpu_sw_netstats *tstats = get_cpu_ptr(dev->tstats); in iptunnel_xmit_stats() local 449 u64_stats_update_begin(&tstats->syncp); in iptunnel_xmit_stats() 450 tstats->tx_bytes += pkt_len; in iptunnel_xmit_stats() 451 tstats->tx_packets++; in iptunnel_xmit_stats() 452 u64_stats_update_end(&tstats->syncp); in iptunnel_xmit_stats() 453 put_cpu_ptr(tstats); in iptunnel_xmit_stats()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_fcoe.c | 647 struct fcoe_rx_stat tstats; in _qed_fcoe_get_tstats() local 650 memset(&tstats, 0, sizeof(tstats)); in _qed_fcoe_get_tstats() 653 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_fcoe_get_tstats() 655 p_stats->fcoe_rx_byte_cnt = HILO_64_REGPAIR(tstats.fcoe_rx_byte_cnt); in _qed_fcoe_get_tstats() 657 HILO_64_REGPAIR(tstats.fcoe_rx_data_pkt_cnt); in _qed_fcoe_get_tstats() 659 HILO_64_REGPAIR(tstats.fcoe_rx_xfer_pkt_cnt); in _qed_fcoe_get_tstats() 661 HILO_64_REGPAIR(tstats.fcoe_rx_other_pkt_cnt); in _qed_fcoe_get_tstats() 664 le32_to_cpu(tstats.fcoe_silent_drop_pkt_cmdq_full_cnt); in _qed_fcoe_get_tstats() 666 le32_to_cpu(tstats.fcoe_silent_drop_pkt_rq_full_cnt); in _qed_fcoe_get_tstats() 668 le32_to_cpu(tstats.fcoe_silent_drop_pkt_crc_error_cnt); in _qed_fcoe_get_tstats() [all …]
|
D | qed_iscsi.c | 888 struct tstorm_iscsi_stats_drv tstats; in _qed_iscsi_get_tstats() local 891 memset(&tstats, 0, sizeof(tstats)); in _qed_iscsi_get_tstats() 894 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_iscsi_get_tstats() 897 HILO_64_REGPAIR(tstats.iscsi_rx_bytes_cnt); in _qed_iscsi_get_tstats() 899 HILO_64_REGPAIR(tstats.iscsi_rx_packet_cnt); in _qed_iscsi_get_tstats() 901 HILO_64_REGPAIR(tstats.iscsi_rx_new_ooo_isle_events_cnt); in _qed_iscsi_get_tstats() 903 le32_to_cpu(tstats.iscsi_cmdq_threshold_cnt); in _qed_iscsi_get_tstats() 905 le32_to_cpu(tstats.iscsi_rq_threshold_cnt); in _qed_iscsi_get_tstats() 907 le32_to_cpu(tstats.iscsi_immq_threshold_cnt); in _qed_iscsi_get_tstats()
|
D | qed_l2.c | 1646 struct tstorm_per_port_stat tstats; in __qed_get_vport_tstats() local 1657 tstats_addr = p_resp->pfdev_info.stats_info.tstats.address; in __qed_get_vport_tstats() 1658 tstats_len = p_resp->pfdev_info.stats_info.tstats.len; in __qed_get_vport_tstats() 1661 memset(&tstats, 0, sizeof(tstats)); in __qed_get_vport_tstats() 1662 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, tstats_len); in __qed_get_vport_tstats() 1665 HILO_64_REGPAIR(tstats.mftag_filter_discard); in __qed_get_vport_tstats() 1667 HILO_64_REGPAIR(tstats.eth_mac_filter_discard); in __qed_get_vport_tstats() 1669 HILO_64_REGPAIR(tstats.eth_gft_drop_pkt); in __qed_get_vport_tstats()
|
D | qed_ll2.c | 2213 struct core_ll2_tstorm_per_queue_stat tstats; in _qed_ll2_get_tstats() local 2217 memset(&tstats, 0, sizeof(tstats)); in _qed_ll2_get_tstats() 2220 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_ll2_get_tstats() 2223 HILO_64_REGPAIR(tstats.packet_too_big_discard); in _qed_ll2_get_tstats() 2224 p_stats->no_buff_discard += HILO_64_REGPAIR(tstats.no_buff_discard); in _qed_ll2_get_tstats()
|
D | qed_vf.h | 146 struct pfvf_storm_stats tstats; member
|
/kernel/linux/linux-5.10/net/xfrm/ |
D | xfrm_interface.c | 145 free_percpu(dev->tstats); in xfrmi_dev_free() 328 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in xfrmi_xmit2() local 330 u64_stats_update_begin(&tstats->syncp); in xfrmi_xmit2() 331 tstats->tx_bytes += length; in xfrmi_xmit2() 332 tstats->tx_packets++; in xfrmi_xmit2() 333 u64_stats_update_end(&tstats->syncp); in xfrmi_xmit2() 550 dev_fetch_sw_netstats(s, dev->tstats); in xfrmi_get_stats64() 594 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in xfrmi_dev_init() 595 if (!dev->tstats) in xfrmi_dev_init() 600 free_percpu(dev->tstats); in xfrmi_dev_init()
|
/kernel/linux/linux-5.10/drivers/net/wireguard/ |
D | receive.c | 22 struct pcpu_sw_netstats *tstats = in update_rx_stats() local 23 get_cpu_ptr(peer->device->dev->tstats); in update_rx_stats() 25 u64_stats_update_begin(&tstats->syncp); in update_rx_stats() 26 ++tstats->rx_packets; in update_rx_stats() 27 tstats->rx_bytes += len; in update_rx_stats() 29 u64_stats_update_end(&tstats->syncp); in update_rx_stats() 30 put_cpu_ptr(tstats); in update_rx_stats()
|
D | device.c | 248 free_percpu(dev->tstats); in wg_destruct() 317 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in wg_newlink() 318 if (!dev->tstats) in wg_newlink() 384 free_percpu(dev->tstats); in wg_newlink()
|
/kernel/linux/linux-5.10/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() 277 free_percpu(dev->tstats); in ip6_dev_free() 832 struct pcpu_sw_netstats *tstats; in __ip6_tnl_rcv() local [all …]
|
D | sit.c | 684 struct pcpu_sw_netstats *tstats; in ipip6_rcv() local 720 tstats = this_cpu_ptr(tunnel->dev->tstats); in ipip6_rcv() 721 u64_stats_update_begin(&tstats->syncp); in ipip6_rcv() 722 tstats->rx_packets++; in ipip6_rcv() 723 tstats->rx_bytes += skb->len; in ipip6_rcv() 724 u64_stats_update_end(&tstats->syncp); in ipip6_rcv() 1406 free_percpu(dev->tstats); in ipip6_dev_free() 1447 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ipip6_tunnel_init() 1448 if (!dev->tstats) in ipip6_tunnel_init() 1453 free_percpu(dev->tstats); in ipip6_tunnel_init() [all …]
|
D | ip6_gre.c | 1427 free_percpu(dev->tstats); in ip6gre_dev_free() 1488 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6gre_tunnel_init_common() 1489 if (!dev->tstats) in ip6gre_tunnel_init_common() 1518 free_percpu(dev->tstats); in ip6gre_tunnel_init_common() 1519 dev->tstats = NULL; in ip6gre_tunnel_init_common() 1882 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6erspan_tap_init() 1883 if (!dev->tstats) in ip6erspan_tap_init() 1910 free_percpu(dev->tstats); in ip6erspan_tap_init() 1911 dev->tstats = NULL; in ip6erspan_tap_init()
|
D | ip6_vti.c | 178 free_percpu(dev->tstats); in vti6_dev_free() 934 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in vti6_dev_init_gen() 935 if (!dev->tstats) in vti6_dev_init_gen()
|
/kernel/linux/linux-5.10/drivers/net/ |
D | bareudp.c | 189 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in bareudp_init() 190 if (!dev->tstats) in bareudp_init() 195 free_percpu(dev->tstats); in bareudp_init() 206 free_percpu(dev->tstats); in bareudp_uninit()
|
D | geneve.c | 312 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in geneve_init() 313 if (!dev->tstats) in geneve_init() 318 free_percpu(dev->tstats); in geneve_init() 324 free_percpu(dev->tstats); in geneve_init() 337 free_percpu(dev->tstats); in geneve_uninit()
|
D | gtp.c | 369 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in gtp_dev_init() 370 if (!dev->tstats) in gtp_dev_init() 381 free_percpu(dev->tstats); in gtp_dev_uninit()
|
D | macsec.c | 521 struct pcpu_sw_netstats *stats = this_cpu_ptr(dev->tstats); in count_tx() 823 struct pcpu_sw_netstats *stats = this_cpu_ptr(dev->tstats); in count_rx() 3435 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in macsec_dev_init() 3436 if (!dev->tstats) in macsec_dev_init() 3441 free_percpu(dev->tstats); in macsec_dev_init() 3466 free_percpu(dev->tstats); in macsec_dev_uninit() 3644 if (!dev->tstats) in macsec_get_stats64() 3647 dev_fetch_sw_netstats(s, dev->tstats); in macsec_get_stats64()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | ip_tunnel.c | 1011 free_percpu(dev->tstats); in ip_tunnel_dev_free() 1227 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip_tunnel_init() 1228 if (!dev->tstats) in ip_tunnel_init() 1233 free_percpu(dev->tstats); in ip_tunnel_init() 1240 free_percpu(dev->tstats); in ip_tunnel_init()
|
/kernel/linux/linux-5.10/Documentation/networking/ |
D | gen_stats.rst | 32 mystruct->tstats.packet++;
|
/kernel/linux/linux-5.10/net/mac80211/ |
D | iface.c | 708 dev_fetch_sw_netstats(stats, dev->tstats); in ieee80211_get_stats64() 1318 free_percpu(dev->tstats); in ieee80211_if_free() 1902 ndev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ieee80211_if_add() 1903 if (!ndev->tstats) { in ieee80211_if_add()
|
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()
|
/kernel/linux/linux-5.10/include/linux/ |
D | netdevice.h | 2146 struct pcpu_sw_netstats __percpu *tstats; member 2609 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in dev_sw_netstats_rx_add() local 2611 u64_stats_update_begin(&tstats->syncp); in dev_sw_netstats_rx_add() 2612 tstats->rx_bytes += len; in dev_sw_netstats_rx_add() 2613 tstats->rx_packets++; in dev_sw_netstats_rx_add() 2614 u64_stats_update_end(&tstats->syncp); in dev_sw_netstats_rx_add()
|
/kernel/linux/linux-5.10/net/sched/ |
D | sch_cake.c | 2853 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()
|