Home
last modified time | relevance | path

Searched refs:tstats (Results 1 - 25 of 66) sorted by relevance

123

/kernel/linux/linux-5.10/net/openvswitch/
H A Dvport-internal_dev.c44 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()
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/
H A 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
H A Dlio_core.c1299 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 in octnet_nic_stats_callback()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/liquidio/
H A Dlio_core.c1306 struct nic_tx_stats *tstats = &oct_dev->link_stats.fromhost; in octnet_nic_stats_callback() local
1355 tstats->total_pkts_sent = rsp_tstats->total_pkts_sent; in octnet_nic_stats_callback()
1356 tstats->total_bytes_sent = rsp_tstats->total_bytes_sent; in octnet_nic_stats_callback()
1357 tstats->mcast_pkts_sent = rsp_tstats->mcast_pkts_sent; in octnet_nic_stats_callback()
1358 tstats->bcast_pkts_sent = rsp_tstats->bcast_pkts_sent; in octnet_nic_stats_callback()
1359 tstats->ctl_sent = rsp_tstats->ctl_sent; in octnet_nic_stats_callback()
1361 tstats->one_collision_sent = rsp_tstats->one_collision_sent; in octnet_nic_stats_callback()
1363 tstats->multi_collision_sent = rsp_tstats->multi_collision_sent; in octnet_nic_stats_callback()
1365 tstats->max_collision_fail = rsp_tstats->max_collision_fail; in octnet_nic_stats_callback()
1367 tstats in octnet_nic_stats_callback()
[all...]
/kernel/linux/linux-6.6/net/openvswitch/
H A 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()
/kernel/linux/linux-5.10/include/net/
H A Dip_tunnels.h451 struct pcpu_sw_netstats *tstats = get_cpu_ptr(dev->tstats); in iptunnel_xmit_stats() local
453 u64_stats_update_begin(&tstats->syncp); in iptunnel_xmit_stats()
454 tstats->tx_bytes += pkt_len; in iptunnel_xmit_stats()
455 tstats->tx_packets++; in iptunnel_xmit_stats()
456 u64_stats_update_end(&tstats->syncp); in iptunnel_xmit_stats()
457 put_cpu_ptr(tstats); in iptunnel_xmit_stats()
/kernel/linux/linux-6.6/include/net/
H A Dip_tunnels.h479 struct pcpu_sw_netstats *tstats = get_cpu_ptr(dev->tstats); in iptunnel_xmit_stats() local
481 u64_stats_update_begin(&tstats->syncp); in iptunnel_xmit_stats()
482 u64_stats_add(&tstats->tx_bytes, pkt_len); in iptunnel_xmit_stats()
483 u64_stats_inc(&tstats->tx_packets); in iptunnel_xmit_stats()
484 u64_stats_update_end(&tstats->syncp); in iptunnel_xmit_stats()
485 put_cpu_ptr(tstats); in iptunnel_xmit_stats()
/kernel/linux/linux-6.6/net/bridge/
H A Dbr_device.c123 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in br_dev_init()
124 if (!dev->tstats) in br_dev_init()
129 free_percpu(dev->tstats); in br_dev_init()
135 free_percpu(dev->tstats); in br_dev_init()
142 free_percpu(dev->tstats); in br_dev_init()
150 free_percpu(dev->tstats); in br_dev_init()
169 free_percpu(dev->tstats); in br_dev_uninit()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
H A Dqed_fcoe.c647 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 in _qed_fcoe_get_tstats()
[all...]
H A Dqed_iscsi.c888 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 in _qed_iscsi_get_tstats()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qed/
H A 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 in _qed_fcoe_get_tstats()
[all...]
H A 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 in _qed_iscsi_get_tstats()
[all...]
/kernel/linux/linux-5.10/drivers/net/wireguard/
H A Dreceive.c22 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()
H A Ddevice.c248 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/xfrm/
H A Dxfrm_interface_core.c145 free_percpu(dev->tstats); in xfrmi_dev_free()
373 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in xfrmi_xmit2() local
375 u64_stats_update_begin(&tstats->syncp); in xfrmi_xmit2()
376 tstats->tx_bytes += length; in xfrmi_xmit2()
377 tstats->tx_packets++; in xfrmi_xmit2()
378 u64_stats_update_end(&tstats->syncp); in xfrmi_xmit2()
594 dev_fetch_sw_netstats(s, dev->tstats); in xfrmi_get_stats64()
638 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in xfrmi_dev_init()
639 if (!dev->tstats) in xfrmi_dev_init()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/litex/
H A Dlitex_liteeth.c199 dev_fetch_sw_netstats(stats, netdev->tstats); in liteeth_get_stats64()
251 netdev->tstats = devm_netdev_alloc_pcpu_stats(&pdev->dev, in liteeth_probe()
253 if (!netdev->tstats) in liteeth_probe()
/kernel/linux/linux-6.6/drivers/net/wireguard/
H A Ddevice.c265 free_percpu(dev->tstats); in wg_destruct()
334 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in wg_newlink()
335 if (!dev->tstats) in wg_newlink()
401 free_percpu(dev->tstats); in wg_newlink()
/kernel/linux/linux-5.10/net/ipv6/
H A Dsit.c684 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()
1408 free_percpu(dev->tstats); in ipip6_dev_free()
1449 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ipip6_tunnel_init()
1450 if (!dev->tstats) in ipip6_tunnel_init()
[all...]
H A Dip6_tunnel.c104 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()
1902 dev->tstats in ip6_tnl_dev_init_gen()
[all...]
H A Dip6_gre.c1431 free_percpu(dev->tstats); in ip6gre_dev_free()
1492 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6gre_tunnel_init_common()
1493 if (!dev->tstats) in ip6gre_tunnel_init_common()
1522 free_percpu(dev->tstats); in ip6gre_tunnel_init_common()
1523 dev->tstats = NULL; in ip6gre_tunnel_init_common()
1886 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6erspan_tap_init()
1887 if (!dev->tstats) in ip6erspan_tap_init()
1914 free_percpu(dev->tstats); in ip6erspan_tap_init()
1915 dev->tstats = NULL; in ip6erspan_tap_init()
/kernel/linux/linux-5.10/drivers/net/
H A Dbareudp.c189 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()
/kernel/linux/linux-6.6/drivers/net/
H A 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()
/kernel/linux/linux-6.6/include/linux/
H A Dnetdevice.h1980 * allocate/free: none, lstats, tstats, dstats. none
1984 * @tstats: Tunnel statistics: RX/TX packets, RX/TX bytes
2345 struct pcpu_sw_netstats __percpu *tstats; member
2760 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in dev_sw_netstats_rx_add() local
2762 u64_stats_update_begin(&tstats->syncp); in dev_sw_netstats_rx_add()
2763 u64_stats_add(&tstats->rx_bytes, len); in dev_sw_netstats_rx_add()
2764 u64_stats_inc(&tstats->rx_packets); in dev_sw_netstats_rx_add()
2765 u64_stats_update_end(&tstats->syncp); in dev_sw_netstats_rx_add()
2772 struct pcpu_sw_netstats *tstats in dev_sw_netstats_tx_add() local
[all...]
/kernel/linux/linux-6.6/net/ipv6/
H A Dip6_gre.c1431 free_percpu(dev->tstats); in ip6gre_dev_free()
1489 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6gre_tunnel_init_common()
1490 if (!dev->tstats) in ip6gre_tunnel_init_common()
1519 free_percpu(dev->tstats); in ip6gre_tunnel_init_common()
1520 dev->tstats = NULL; in ip6gre_tunnel_init_common()
1883 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6erspan_tap_init()
1884 if (!dev->tstats) in ip6erspan_tap_init()
1911 free_percpu(dev->tstats); in ip6erspan_tap_init()
1912 dev->tstats = NULL; in ip6erspan_tap_init()
/kernel/linux/linux-6.6/drivers/net/wireless/quantenna/qtnfmac/
H A 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()

Completed in 35 milliseconds

123