/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | ipoib_main.c | 24 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in hfi1_ipoib_dev_init() 25 if (!dev->tstats) in hfi1_ipoib_dev_init() 42 free_percpu(dev->tstats); in hfi1_ipoib_dev_init() 43 dev->tstats = NULL; in hfi1_ipoib_dev_init() 51 free_percpu(dev->tstats); in hfi1_ipoib_dev_uninit() 52 dev->tstats = NULL; in hfi1_ipoib_dev_uninit() 177 free_percpu(dev->tstats); in hfi1_ipoib_netdev_dtor() 178 dev->tstats = NULL; in hfi1_ipoib_netdev_dtor()
|
/linux-6.1.9/drivers/net/ethernet/cavium/liquidio/ |
D | lio_core.c | 1293 struct nic_tx_stats *tstats = &oct_dev->link_stats.fromhost; in octnet_nic_stats_callback() local 1342 tstats->total_pkts_sent = rsp_tstats->total_pkts_sent; in octnet_nic_stats_callback() 1343 tstats->total_bytes_sent = rsp_tstats->total_bytes_sent; in octnet_nic_stats_callback() 1344 tstats->mcast_pkts_sent = rsp_tstats->mcast_pkts_sent; in octnet_nic_stats_callback() 1345 tstats->bcast_pkts_sent = rsp_tstats->bcast_pkts_sent; in octnet_nic_stats_callback() 1346 tstats->ctl_sent = rsp_tstats->ctl_sent; in octnet_nic_stats_callback() 1348 tstats->one_collision_sent = rsp_tstats->one_collision_sent; in octnet_nic_stats_callback() 1350 tstats->multi_collision_sent = rsp_tstats->multi_collision_sent; in octnet_nic_stats_callback() 1352 tstats->max_collision_fail = rsp_tstats->max_collision_fail; in octnet_nic_stats_callback() 1354 tstats->max_deferral_fail = rsp_tstats->max_deferral_fail; in octnet_nic_stats_callback() [all …]
|
/linux-6.1.9/net/openvswitch/ |
D | vport-internal_dev.c | 143 vport->dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in internal_dev_create() 144 if (!vport->dev->tstats) { in internal_dev_create() 172 free_percpu(dev->tstats); in internal_dev_create() 189 free_percpu(vport->dev->tstats); in internal_dev_destroy()
|
/linux-6.1.9/include/net/ |
D | ip_tunnels.h | 469 struct pcpu_sw_netstats *tstats = get_cpu_ptr(dev->tstats); in iptunnel_xmit_stats() local 471 u64_stats_update_begin(&tstats->syncp); in iptunnel_xmit_stats() 472 u64_stats_add(&tstats->tx_bytes, pkt_len); in iptunnel_xmit_stats() 473 u64_stats_inc(&tstats->tx_packets); in iptunnel_xmit_stats() 474 u64_stats_update_end(&tstats->syncp); in iptunnel_xmit_stats() 475 put_cpu_ptr(tstats); in iptunnel_xmit_stats()
|
/linux-6.1.9/net/bridge/ |
D | br_device.c | 122 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()
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/ |
D | qed_fcoe.c | 646 struct fcoe_rx_stat tstats; in _qed_fcoe_get_tstats() local 649 memset(&tstats, 0, sizeof(tstats)); in _qed_fcoe_get_tstats() 652 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_fcoe_get_tstats() 654 p_stats->fcoe_rx_byte_cnt = HILO_64_REGPAIR(tstats.fcoe_rx_byte_cnt); in _qed_fcoe_get_tstats() 656 HILO_64_REGPAIR(tstats.fcoe_rx_data_pkt_cnt); in _qed_fcoe_get_tstats() 658 HILO_64_REGPAIR(tstats.fcoe_rx_xfer_pkt_cnt); in _qed_fcoe_get_tstats() 660 HILO_64_REGPAIR(tstats.fcoe_rx_other_pkt_cnt); in _qed_fcoe_get_tstats() 663 le32_to_cpu(tstats.fcoe_silent_drop_pkt_cmdq_full_cnt); in _qed_fcoe_get_tstats() 665 le32_to_cpu(tstats.fcoe_silent_drop_pkt_rq_full_cnt); in _qed_fcoe_get_tstats() 667 le32_to_cpu(tstats.fcoe_silent_drop_pkt_crc_error_cnt); in _qed_fcoe_get_tstats() [all …]
|
D | qed_iscsi.c | 887 struct tstorm_iscsi_stats_drv tstats; in _qed_iscsi_get_tstats() local 890 memset(&tstats, 0, sizeof(tstats)); in _qed_iscsi_get_tstats() 893 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_iscsi_get_tstats() 896 HILO_64_REGPAIR(tstats.iscsi_rx_bytes_cnt); in _qed_iscsi_get_tstats() 898 HILO_64_REGPAIR(tstats.iscsi_rx_packet_cnt); in _qed_iscsi_get_tstats() 900 HILO_64_REGPAIR(tstats.iscsi_rx_new_ooo_isle_events_cnt); in _qed_iscsi_get_tstats() 902 le32_to_cpu(tstats.iscsi_cmdq_threshold_cnt); in _qed_iscsi_get_tstats() 904 le32_to_cpu(tstats.iscsi_rq_threshold_cnt); in _qed_iscsi_get_tstats() 906 le32_to_cpu(tstats.iscsi_immq_threshold_cnt); in _qed_iscsi_get_tstats()
|
D | qed_l2.c | 1647 struct tstorm_per_port_stat tstats; in __qed_get_vport_tstats() local 1658 tstats_addr = p_resp->pfdev_info.stats_info.tstats.address; in __qed_get_vport_tstats() 1659 tstats_len = p_resp->pfdev_info.stats_info.tstats.len; in __qed_get_vport_tstats() 1662 memset(&tstats, 0, sizeof(tstats)); in __qed_get_vport_tstats() 1663 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, tstats_len); in __qed_get_vport_tstats() 1666 HILO_64_REGPAIR(tstats.mftag_filter_discard); in __qed_get_vport_tstats() 1668 HILO_64_REGPAIR(tstats.eth_mac_filter_discard); in __qed_get_vport_tstats() 1670 HILO_64_REGPAIR(tstats.eth_gft_drop_pkt); in __qed_get_vport_tstats()
|
D | qed_ll2.c | 2258 struct core_ll2_tstorm_per_queue_stat tstats; in _qed_ll2_get_tstats() local 2262 memset(&tstats, 0, sizeof(tstats)); in _qed_ll2_get_tstats() 2265 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_ll2_get_tstats() 2268 HILO_64_REGPAIR(tstats.packet_too_big_discard); in _qed_ll2_get_tstats() 2269 p_stats->no_buff_discard += HILO_64_REGPAIR(tstats.no_buff_discard); in _qed_ll2_get_tstats()
|
/linux-6.1.9/drivers/net/wireguard/ |
D | device.c | 264 free_percpu(dev->tstats); in wg_destruct() 333 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in wg_newlink() 334 if (!dev->tstats) in wg_newlink() 400 free_percpu(dev->tstats); in wg_newlink()
|
/linux-6.1.9/drivers/net/ |
D | bareudp.c | 197 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in bareudp_init() 198 if (!dev->tstats) in bareudp_init() 203 free_percpu(dev->tstats); in bareudp_init() 214 free_percpu(dev->tstats); in bareudp_uninit()
|
D | geneve.c | 322 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in geneve_init() 323 if (!dev->tstats) in geneve_init() 328 free_percpu(dev->tstats); in geneve_init() 334 free_percpu(dev->tstats); in geneve_init() 347 free_percpu(dev->tstats); in geneve_uninit()
|
D | macsec.c | 522 struct pcpu_sw_netstats *stats = this_cpu_ptr(dev->tstats); in count_tx() 830 struct pcpu_sw_netstats *stats = this_cpu_ptr(dev->tstats); in count_rx() 3450 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in macsec_dev_init() 3451 if (!dev->tstats) in macsec_dev_init() 3456 free_percpu(dev->tstats); in macsec_dev_init() 3484 free_percpu(dev->tstats); in macsec_dev_uninit() 3661 if (!dev->tstats) in macsec_get_stats64() 3664 dev_fetch_sw_netstats(s, dev->tstats); in macsec_get_stats64()
|
/linux-6.1.9/include/linux/ |
D | netdevice.h | 2287 struct pcpu_sw_netstats __percpu *tstats; member 2677 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in dev_sw_netstats_rx_add() local 2679 u64_stats_update_begin(&tstats->syncp); in dev_sw_netstats_rx_add() 2680 u64_stats_add(&tstats->rx_bytes, len); in dev_sw_netstats_rx_add() 2681 u64_stats_inc(&tstats->rx_packets); in dev_sw_netstats_rx_add() 2682 u64_stats_update_end(&tstats->syncp); in dev_sw_netstats_rx_add() 2689 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in dev_sw_netstats_tx_add() local 2691 u64_stats_update_begin(&tstats->syncp); in dev_sw_netstats_tx_add() 2692 u64_stats_add(&tstats->tx_bytes, len); in dev_sw_netstats_tx_add() 2693 u64_stats_add(&tstats->tx_packets, packets); in dev_sw_netstats_tx_add() [all …]
|
/linux-6.1.9/net/ipv6/ |
D | ip6_gre.c | 1450 free_percpu(dev->tstats); in ip6gre_dev_free() 1508 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6gre_tunnel_init_common() 1509 if (!dev->tstats) in ip6gre_tunnel_init_common() 1538 free_percpu(dev->tstats); in ip6gre_tunnel_init_common() 1539 dev->tstats = NULL; in ip6gre_tunnel_init_common() 1902 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6erspan_tap_init() 1903 if (!dev->tstats) in ip6erspan_tap_init() 1930 free_percpu(dev->tstats); in ip6erspan_tap_init() 1931 dev->tstats = NULL; in ip6erspan_tap_init()
|
D | sit.c | 1409 free_percpu(dev->tstats); in ipip6_dev_free() 1450 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ipip6_tunnel_init() 1451 if (!dev->tstats) in ipip6_tunnel_init() 1456 free_percpu(dev->tstats); in ipip6_tunnel_init() 1457 dev->tstats = NULL; in ipip6_tunnel_init()
|
D | ip6_vti.c | 179 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()
|
D | ip6_tunnel.c | 250 free_percpu(dev->tstats); in ip6_dev_free() 1863 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6_tnl_dev_init_gen() 1864 if (!dev->tstats) in ip6_tnl_dev_init_gen() 1893 free_percpu(dev->tstats); in ip6_tnl_dev_init_gen() 1894 dev->tstats = NULL; in ip6_tnl_dev_init_gen()
|
/linux-6.1.9/net/ipv4/ |
D | ip_tunnel.c | 1015 free_percpu(dev->tstats); in ip_tunnel_dev_free() 1231 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip_tunnel_init() 1232 if (!dev->tstats) in ip_tunnel_init() 1237 free_percpu(dev->tstats); in ip_tunnel_init() 1244 free_percpu(dev->tstats); in ip_tunnel_init()
|
/linux-6.1.9/net/xfrm/ |
D | xfrm_interface.c | 242 free_percpu(dev->tstats); in xfrmi_dev_free() 715 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in xfrmi_dev_init() 716 if (!dev->tstats) in xfrmi_dev_init() 721 free_percpu(dev->tstats); in xfrmi_dev_init()
|
/linux-6.1.9/drivers/net/wireless/quantenna/qtnfmac/ |
D | core.c | 201 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in qtnf_netdev_alloc_pcpu_stats() 203 return dev->tstats ? 0 : -ENOMEM; in qtnf_netdev_alloc_pcpu_stats() 208 free_percpu(dev->tstats); in qtnf_netdev_free_pcpu_stats()
|
/linux-6.1.9/Documentation/networking/ |
D | gen_stats.rst | 32 mystruct->tstats.packet++;
|
/linux-6.1.9/drivers/net/usb/ |
D | usbnet.c | 323 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->net->tstats); in usbnet_skb_return() 1252 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->net->tstats); in tx_complete() 1631 free_percpu(net->tstats); in usbnet_disconnect() 1708 net->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in usbnet_probe() 1709 if (!net->tstats) in usbnet_probe() 1853 free_percpu(net->tstats); in usbnet_probe()
|
D | qmi_wwan.c | 259 new_dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in qmimux_register_device() 260 if (!new_dev->tstats) { in qmimux_register_device() 297 free_percpu(dev->tstats); in qmimux_unregister_device()
|
/linux-6.1.9/net/mac80211/ |
D | iface.c | 826 dev_fetch_sw_netstats(stats, dev->tstats); in ieee80211_get_stats64() 1497 free_percpu(dev->tstats); in ieee80211_if_free() 2150 ndev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ieee80211_if_add() 2151 if (!ndev->tstats) { in ieee80211_if_add()
|