Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dipoib_main.c24 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/
Dlio_core.c1293 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/
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()
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/
Dip_tunnels.h469 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/
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()
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_fcoe.c646 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 …]
Dqed_iscsi.c887 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()
Dqed_l2.c1647 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()
Dqed_ll2.c2258 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/
Ddevice.c264 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/
Dbareudp.c197 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()
Dgeneve.c322 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()
Dmacsec.c522 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/
Dnetdevice.h2287 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/
Dip6_gre.c1450 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()
Dsit.c1409 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()
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()
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/
Dip_tunnel.c1015 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/
Dxfrm_interface.c242 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/
Dcore.c201 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/
Dgen_stats.rst32 mystruct->tstats.packet++;
/linux-6.1.9/drivers/net/usb/
Dusbnet.c323 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()
Dqmi_wwan.c259 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/
Diface.c826 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()

12