/linux/drivers/net/ethernet/cavium/liquidio/ |
A D | lio_core.c | 1346 tstats->ctl_sent = rsp_tstats->ctl_sent; in octnet_nic_stats_callback() 1356 tstats->fifo_err = rsp_tstats->fifo_err; in octnet_nic_stats_callback() 1357 tstats->runts = rsp_tstats->runts; in octnet_nic_stats_callback() 1366 tstats->fw_err_pko = rsp_tstats->fw_err_pko; in octnet_nic_stats_callback() 1367 tstats->fw_err_pki = rsp_tstats->fw_err_pki; in octnet_nic_stats_callback() 1368 tstats->fw_err_link = rsp_tstats->fw_err_link; in octnet_nic_stats_callback() 1369 tstats->fw_err_drop = rsp_tstats->fw_err_drop; in octnet_nic_stats_callback() 1370 tstats->fw_tso = rsp_tstats->fw_tso; in octnet_nic_stats_callback() 1371 tstats->fw_tso_fwd = rsp_tstats->fw_tso_fwd; in octnet_nic_stats_callback() 1372 tstats->fw_err_tso = rsp_tstats->fw_err_tso; in octnet_nic_stats_callback() [all …]
|
/linux/include/net/ |
A D | ip_tunnels.h | 446 struct pcpu_sw_netstats *tstats = get_cpu_ptr(dev->tstats); in iptunnel_xmit_stats() local 448 u64_stats_update_begin(&tstats->syncp); in iptunnel_xmit_stats() 449 tstats->tx_bytes += pkt_len; in iptunnel_xmit_stats() 450 tstats->tx_packets++; in iptunnel_xmit_stats() 451 u64_stats_update_end(&tstats->syncp); in iptunnel_xmit_stats() 452 put_cpu_ptr(tstats); in iptunnel_xmit_stats()
|
/linux/net/openvswitch/ |
A 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() 171 free_percpu(dev->tstats); in internal_dev_create() 188 free_percpu(vport->dev->tstats); in internal_dev_destroy()
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A 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() 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() 669 le32_to_cpu(tstats.fcoe_silent_drop_pkt_task_invalid_cnt); in _qed_fcoe_get_tstats() [all …]
|
A 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()
|
A 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()
|
A 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/net/bridge/ |
A 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/drivers/net/wireguard/ |
A 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()
|
A D | device.c | 247 free_percpu(dev->tstats); in wg_destruct() 316 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in wg_newlink() 317 if (!dev->tstats) in wg_newlink() 383 free_percpu(dev->tstats); in wg_newlink()
|
/linux/net/ipv6/ |
A D | sit.c | 689 struct pcpu_sw_netstats *tstats; in ipip6_rcv() local 727 tstats = this_cpu_ptr(tunnel->dev->tstats); in ipip6_rcv() 728 u64_stats_update_begin(&tstats->syncp); in ipip6_rcv() 729 tstats->rx_packets++; in ipip6_rcv() 730 tstats->rx_bytes += skb->len; in ipip6_rcv() 731 u64_stats_update_end(&tstats->syncp); in ipip6_rcv() 1415 free_percpu(dev->tstats); in ipip6_dev_free() 1456 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ipip6_tunnel_init() 1457 if (!dev->tstats) in ipip6_tunnel_init() 1462 free_percpu(dev->tstats); in ipip6_tunnel_init() [all …]
|
A D | ip6_tunnel.c | 250 free_percpu(dev->tstats); in ip6_dev_free() 801 struct pcpu_sw_netstats *tstats; in __ip6_tnl_rcv() local 861 tstats = this_cpu_ptr(tunnel->dev->tstats); in __ip6_tnl_rcv() 862 u64_stats_update_begin(&tstats->syncp); in __ip6_tnl_rcv() 863 tstats->rx_packets++; in __ip6_tnl_rcv() 864 tstats->rx_bytes += skb->len; in __ip6_tnl_rcv() 865 u64_stats_update_end(&tstats->syncp); in __ip6_tnl_rcv() 1862 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6_tnl_dev_init_gen() 1863 if (!dev->tstats) in ip6_tnl_dev_init_gen() 1892 free_percpu(dev->tstats); in ip6_tnl_dev_init_gen() [all …]
|
A D | ip6_gre.c | 1414 free_percpu(dev->tstats); in ip6gre_dev_free() 1475 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6gre_tunnel_init_common() 1476 if (!dev->tstats) in ip6gre_tunnel_init_common() 1505 free_percpu(dev->tstats); in ip6gre_tunnel_init_common() 1506 dev->tstats = NULL; in ip6gre_tunnel_init_common() 1869 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6erspan_tap_init() 1870 if (!dev->tstats) in ip6erspan_tap_init() 1897 free_percpu(dev->tstats); in ip6erspan_tap_init() 1898 dev->tstats = NULL; in ip6erspan_tap_init()
|
A 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()
|
/linux/drivers/infiniband/hw/hfi1/ |
A D | ipoib_main.c | 24 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in hfi1_ipoib_dev_init() 168 free_percpu(dev->tstats); in hfi1_ipoib_netdev_dtor()
|
/linux/drivers/net/ |
A D | bareudp.c | 190 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in bareudp_init() 191 if (!dev->tstats) in bareudp_init() 196 free_percpu(dev->tstats); in bareudp_init() 207 free_percpu(dev->tstats); in bareudp_uninit()
|
A D | geneve.c | 313 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in geneve_init() 314 if (!dev->tstats) in geneve_init() 319 free_percpu(dev->tstats); in geneve_init() 325 free_percpu(dev->tstats); in geneve_init() 338 free_percpu(dev->tstats); in geneve_uninit()
|
A D | gtp.c | 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()
|
/linux/net/xfrm/ |
A D | xfrm_interface.c | 145 free_percpu(dev->tstats); in xfrmi_dev_free() 583 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in xfrmi_dev_init() 584 if (!dev->tstats) in xfrmi_dev_init() 589 free_percpu(dev->tstats); in xfrmi_dev_init()
|
/linux/include/linux/ |
A D | netdevice.h | 2217 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 tstats->rx_bytes += len; in dev_sw_netstats_rx_add() 2681 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 tstats->tx_bytes += len; in dev_sw_netstats_tx_add() 2693 tstats->tx_packets += packets; in dev_sw_netstats_tx_add() [all …]
|
/linux/net/ipv4/ |
A D | ip_tunnel.c | 1012 free_percpu(dev->tstats); in ip_tunnel_dev_free() 1228 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip_tunnel_init() 1229 if (!dev->tstats) in ip_tunnel_init() 1234 free_percpu(dev->tstats); in ip_tunnel_init() 1241 free_percpu(dev->tstats); in ip_tunnel_init()
|
/linux/drivers/net/wireless/quantenna/qtnfmac/ |
A 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/drivers/net/usb/ |
A D | usbnet.c | 326 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->net->tstats); in usbnet_skb_return() 1257 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->net->tstats); in tx_complete() 1633 free_percpu(net->tstats); in usbnet_disconnect() 1710 net->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in usbnet_probe() 1711 if (!net->tstats) in usbnet_probe() 1855 free_percpu(net->tstats); in usbnet_probe()
|
A D | qmi_wwan.c | 260 new_dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in qmimux_register_device() 261 if (!new_dev->tstats) { in qmimux_register_device() 298 free_percpu(dev->tstats); in qmimux_unregister_device()
|
/linux/Documentation/networking/ |
A D | gen_stats.rst | 32 mystruct->tstats.packet++;
|