| /linux/drivers/net/ethernet/cavium/liquidio/ |
| H A D | lio_core.c | 1304 struct nic_tx_stats *tstats = &oct_dev->link_stats.fromhost; in octnet_nic_stats_callback() local 1353 tstats->total_pkts_sent = rsp_tstats->total_pkts_sent; in octnet_nic_stats_callback() 1354 tstats->total_bytes_sent = rsp_tstats->total_bytes_sent; in octnet_nic_stats_callback() 1355 tstats->mcast_pkts_sent = rsp_tstats->mcast_pkts_sent; in octnet_nic_stats_callback() 1356 tstats->bcast_pkts_sent = rsp_tstats->bcast_pkts_sent; in octnet_nic_stats_callback() 1357 tstats->ctl_sent = rsp_tstats->ctl_sent; in octnet_nic_stats_callback() 1359 tstats->one_collision_sent = rsp_tstats->one_collision_sent; in octnet_nic_stats_callback() 1361 tstats->multi_collision_sent = rsp_tstats->multi_collision_sent; in octnet_nic_stats_callback() 1363 tstats->max_collision_fail = rsp_tstats->max_collision_fail; in octnet_nic_stats_callback() 1365 tstats->max_deferral_fail = rsp_tstats->max_deferral_fail; in octnet_nic_stats_callback() [all …]
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H 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() 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 …]
|
| H 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()
|
| H A D | qed_ll2.c | 2259 struct core_ll2_tstorm_per_queue_stat tstats; in _qed_ll2_get_tstats() local 2263 memset(&tstats, 0, sizeof(tstats)); in _qed_ll2_get_tstats() 2266 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_ll2_get_tstats() 2269 HILO_64_REGPAIR(tstats.packet_too_big_discard); in _qed_ll2_get_tstats() 2270 p_stats->no_buff_discard += HILO_64_REGPAIR(tstats.no_buff_discard); in _qed_ll2_get_tstats()
|
| H A D | qed_vf.h | 146 struct pfvf_storm_stats tstats; member
|
| H A D | qed_sriov.c | 1531 p_stats->tstats.address = 0; in qed_iov_vf_mbx_acquire_stats() 1532 p_stats->tstats.len = 0; in qed_iov_vf_mbx_acquire_stats()
|
| /linux/include/net/ |
| H A D | ip_tunnels.h | 685 struct pcpu_sw_netstats *tstats = get_cpu_ptr(dev->tstats); in iptunnel_xmit_stats() local 687 u64_stats_update_begin(&tstats->syncp); in iptunnel_xmit_stats() 688 u64_stats_add(&tstats->tx_bytes, pkt_len); in iptunnel_xmit_stats() 689 u64_stats_inc(&tstats->tx_packets); in iptunnel_xmit_stats() 690 u64_stats_update_end(&tstats->syncp); in iptunnel_xmit_stats() 691 put_cpu_ptr(tstats); in iptunnel_xmit_stats()
|
| /linux/include/linux/ |
| H A D | netdevice.h | 2203 struct pcpu_sw_netstats __percpu *tstats; member 3074 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in dev_sw_netstats_rx_add() local 3076 u64_stats_update_begin(&tstats->syncp); in dev_sw_netstats_rx_add() 3077 u64_stats_add(&tstats->rx_bytes, len); in dev_sw_netstats_rx_add() 3078 u64_stats_inc(&tstats->rx_packets); in dev_sw_netstats_rx_add() 3079 u64_stats_update_end(&tstats->syncp); in dev_sw_netstats_rx_add() 3086 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); in dev_sw_netstats_tx_add() local 3088 u64_stats_update_begin(&tstats->syncp); in dev_sw_netstats_tx_add() 3089 u64_stats_add(&tstats->tx_bytes, len); in dev_sw_netstats_tx_add() 3090 u64_stats_add(&tstats->tx_packets, packets); in dev_sw_netstats_tx_add() [all …]
|
| /linux/Documentation/networking/ |
| H A D | gen_stats.rst | 32 mystruct->tstats.packet++;
|
| /linux/net/sched/ |
| H A D | sch_cake.c | 2996 struct nlattr *tstats, *ts; in cake_dump_stats() local 3025 tstats = nla_nest_start_noflag(d->skb, TCA_CAKE_STATS_TIN_STATS); in cake_dump_stats() 3026 if (!tstats) in cake_dump_stats() 3084 nla_nest_end(d->skb, tstats); in cake_dump_stats()
|
| /linux/drivers/net/ |
| H A D | veth.c | 460 dev_fetch_sw_netstats(tot, dev->tstats); in veth_get_stats64() 473 dev_fetch_sw_netstats(&tot_peer, peer->tstats); in veth_get_stats64()
|
| H A D | macsec.c | 3789 if (!dev->tstats) in macsec_get_stats64() 3792 dev_fetch_sw_netstats(s, dev->tstats); in macsec_get_stats64()
|
| /linux/drivers/net/usb/ |
| H A D | usbnet.c | 328 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->net->tstats); in usbnet_skb_return() 1301 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->net->tstats); in tx_complete()
|
| /linux/drivers/net/ppp/ |
| H A D | ppp_generic.c | 1542 dev_fetch_sw_netstats(stats64, dev->tstats); in ppp_get_stats64() 3320 struct pcpu_sw_netstats *p = per_cpu_ptr(dev->tstats, cpu); in ppp_get_stats()
|
| /linux/drivers/net/ethernet/realtek/rtase/ |
| H A D | rtase_main.c | 1871 dev_fetch_sw_netstats(stats, dev->tstats); in rtase_get_stats64()
|
| /linux/net/dsa/ |
| H A D | user.c | 1057 s = per_cpu_ptr(dev->tstats, i); in dsa_user_get_ethtool_stats()
|
| /linux/net/core/ |
| H A D | dev.c | 11335 v = dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in netdev_do_alloc_pcpu_stats() 11356 free_percpu(dev->tstats); in netdev_do_free_pcpu_stats() 12031 dev_fetch_sw_netstats(s, dev->tstats); in dev_get_tstats64()
|
| /linux/drivers/net/ethernet/ti/ |
| H A D | am65-cpsw-nuss.c | 1913 dev_fetch_sw_netstats(stats, dev->tstats); in am65_cpsw_nuss_ndo_get_stats()
|