Home
last modified time | relevance | path

Searched refs:net_stats (Results 1 – 16 of 16) sorted by relevance

/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_ae_adapt.c618 struct net_device_stats *net_stats) in hns_ae_update_stats() argument
684 net_stats->tx_bytes = tx_bytes; in hns_ae_update_stats()
685 net_stats->tx_packets = tx_packets; in hns_ae_update_stats()
686 net_stats->rx_bytes = rx_bytes; in hns_ae_update_stats()
687 net_stats->rx_dropped = 0; in hns_ae_update_stats()
688 net_stats->rx_packets = rx_packets; in hns_ae_update_stats()
689 net_stats->rx_errors = rx_errors; in hns_ae_update_stats()
690 net_stats->tx_errors = tx_errors; in hns_ae_update_stats()
691 net_stats->tx_dropped = tx_dropped; in hns_ae_update_stats()
692 net_stats->rx_missed_errors = rx_missed_errors; in hns_ae_update_stats()
[all …]
/linux/drivers/net/fjes/
H A Dfjes_main.c586 hw->ep_shm_info[my_epid].net_stats.tx_packets += 1; in fjes_xmit_frame()
588 hw->ep_shm_info[my_epid].net_stats.tx_bytes += len; in fjes_xmit_frame()
596 hw->ep_shm_info[my_epid].net_stats.tx_packets += 1; in fjes_xmit_frame()
598 hw->ep_shm_info[my_epid].net_stats.tx_bytes += len; in fjes_xmit_frame()
615 hw->ep_shm_info[dest_epid].net_stats in fjes_xmit_frame()
625 hw->ep_shm_info[dest_epid].net_stats.tx_dropped += 1; in fjes_xmit_frame()
627 hw->ep_shm_info[dest_epid].net_stats.tx_errors += 1; in fjes_xmit_frame()
662 hw->ep_shm_info[dest_epid].net_stats in fjes_xmit_frame()
665 hw->ep_shm_info[dest_epid].net_stats in fjes_xmit_frame()
684 hw->ep_shm_info[dest_epid].net_stats in fjes_xmit_frame()
[all …]
H A Dfjes_hw.h254 struct rtnl_link_stats64 net_stats; member
/linux/drivers/net/ethernet/atheros/alx/
H A Dmain.c1651 struct rtnl_link_stats64 *net_stats) in alx_get_stats64() argument
1660 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in alx_get_stats64()
1661 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in alx_get_stats64()
1662 net_stats->multicast = hw_stats->rx_mcast; in alx_get_stats64()
1663 net_stats->collisions = hw_stats->tx_single_col + in alx_get_stats64()
1668 net_stats->rx_errors = hw_stats->rx_frag + in alx_get_stats64()
1676 net_stats->rx_fifo_errors = hw_stats->rx_ov_rxf; in alx_get_stats64()
1677 net_stats->rx_length_errors = hw_stats->rx_len_err; in alx_get_stats64()
1678 net_stats->rx_crc_errors = hw_stats->rx_fcs_err; in alx_get_stats64()
1679 net_stats->rx_frame_errors = hw_stats->rx_align_err; in alx_get_stats64()
[all …]
/linux/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_main.c1159 struct net_device_stats *net_stats = &netdev->stats; in atl1e_get_stats() local
1161 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1e_get_stats()
1162 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1e_get_stats()
1163 net_stats->multicast = hw_stats->rx_mcast; in atl1e_get_stats()
1164 net_stats->collisions = hw_stats->tx_1_col + in atl1e_get_stats()
1169 net_stats->rx_errors = hw_stats->rx_frag + in atl1e_get_stats()
1177 net_stats->rx_fifo_errors = hw_stats->rx_rxf_ov; in atl1e_get_stats()
1178 net_stats->rx_length_errors = hw_stats->rx_len_err; in atl1e_get_stats()
1179 net_stats->rx_crc_errors = hw_stats->rx_fcs_err; in atl1e_get_stats()
1180 net_stats->rx_frame_errors = hw_stats->rx_align_err; in atl1e_get_stats()
[all …]
/linux/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_main.c1539 struct net_device_stats *net_stats = &netdev->stats; in atl1c_get_stats() local
1542 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1c_get_stats()
1543 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1c_get_stats()
1544 net_stats->multicast = hw_stats->rx_mcast; in atl1c_get_stats()
1545 net_stats->collisions = hw_stats->tx_1_col + in atl1c_get_stats()
1550 net_stats->rx_errors = hw_stats->rx_frag + in atl1c_get_stats()
1558 net_stats->rx_fifo_errors = hw_stats->rx_rxf_ov; in atl1c_get_stats()
1559 net_stats->rx_length_errors = hw_stats->rx_len_err; in atl1c_get_stats()
1560 net_stats->rx_crc_errors = hw_stats->rx_fcs_err; in atl1c_get_stats()
1561 net_stats->rx_frame_errors = hw_stats->rx_align_err; in atl1c_get_stats()
[all …]
/linux/drivers/net/can/usb/
H A Ducan.c489 struct net_device_stats *net_stats = &up->netdev->stats; in ucan_handle_error_frame() local
499 net_stats->tx_errors++; in ucan_handle_error_frame()
509 net_stats->rx_over_errors++; in ucan_handle_error_frame()
527 net_stats->tx_errors++; in ucan_handle_error_frame()
529 net_stats->rx_errors++; in ucan_handle_error_frame()
/linux/drivers/net/ethernet/cisco/enic/
H A Denic_main.c939 struct rtnl_link_stats64 *net_stats) in enic_get_stats() argument
956 net_stats->tx_packets = stats->tx.tx_frames_ok; in enic_get_stats()
957 net_stats->tx_bytes = stats->tx.tx_bytes_ok; in enic_get_stats()
958 net_stats->tx_errors = stats->tx.tx_errors; in enic_get_stats()
959 net_stats->tx_dropped = stats->tx.tx_drops; in enic_get_stats()
961 net_stats->rx_packets = stats->rx.rx_frames_ok; in enic_get_stats()
962 net_stats->rx_bytes = stats->rx.rx_bytes_ok; in enic_get_stats()
963 net_stats->rx_errors = stats->rx.rx_errors; in enic_get_stats()
964 net_stats->multicast = stats->rx.rx_multicast_frames_ok; in enic_get_stats()
974 net_stats->rx_over_errors = pkt_truncated; in enic_get_stats()
[all …]
/linux/drivers/net/ethernet/intel/igc/
H A Digc_main.c5151 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igc_update_stats() local
5181 net_stats->rx_fifo_errors += rqdpc; in igc_update_stats()
5193 net_stats->rx_bytes = bytes; in igc_update_stats()
5194 net_stats->rx_packets = packets; in igc_update_stats()
5209 net_stats->tx_bytes = bytes; in igc_update_stats()
5210 net_stats->tx_packets = packets; in igc_update_stats()
5234 net_stats->rx_fifo_errors += mpc; in igc_update_stats()
5278 net_stats->multicast = adapter->stats.mprc; in igc_update_stats()
5279 net_stats->collisions = adapter->stats.colc; in igc_update_stats()
5286 net_stats->rx_errors = adapter->stats.rxerrc + in igc_update_stats()
[all …]
H A Digc_ethtool.c821 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igc_ethtool_get_stats() local
836 p = (char *)net_stats + igc_gstrings_net_stats[j].stat_offset; in igc_ethtool_get_stats()
/linux/drivers/net/ethernet/intel/igb/
H A Digb_main.c6758 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igb_update_stats() local
6787 net_stats->rx_fifo_errors += rqdpc; in igb_update_stats()
6799 net_stats->rx_bytes = bytes; in igb_update_stats()
6800 net_stats->rx_packets = packets; in igb_update_stats()
6814 net_stats->tx_bytes = bytes; in igb_update_stats()
6815 net_stats->tx_packets = packets; in igb_update_stats()
6838 net_stats->rx_fifo_errors += mpc; in igb_update_stats()
6900 net_stats->multicast = adapter->stats.mprc; in igb_update_stats()
6901 net_stats->collisions = adapter->stats.colc; in igb_update_stats()
6908 net_stats->rx_errors = adapter->stats.rxerrc + in igb_update_stats()
[all …]
H A Digb_ethtool.c2292 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igb_get_ethtool_stats() local
2307 p = (char *)net_stats + igb_gstrings_net_stats[j].stat_offset; in igb_get_ethtool_stats()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_main.c6912 struct rtnl_link_stats64 *net_stats, *stats_prev; in ice_update_vsi_ring_stats() local
6941 net_stats = &vsi->net_stats; in ice_update_vsi_ring_stats()
6950 net_stats->tx_packets += tx_stats.pkts - stats_prev->tx_packets; in ice_update_vsi_ring_stats()
6951 net_stats->tx_bytes += tx_stats.bytes - stats_prev->tx_bytes; in ice_update_vsi_ring_stats()
6952 net_stats->rx_packets += rx_stats.pkts - stats_prev->rx_packets; in ice_update_vsi_ring_stats()
6953 net_stats->rx_bytes += rx_stats.bytes - stats_prev->rx_bytes; in ice_update_vsi_ring_stats()
6968 struct rtnl_link_stats64 *cur_ns = &vsi->net_stats; in ice_update_vsi_stats()
7166 vsi_stats = &vsi->net_stats; in ice_get_stats64()
H A Dice.h384 struct rtnl_link_stats64 net_stats; member
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e.h834 struct rtnl_link_stats64 net_stats; member
H A Di40e_main.c439 return &vsi->net_stats; in i40e_get_vsi_stats_struct()