Lines Matching refs:stats

173 		nic->bgx_stats.rx_stats[bgx->idx] = bgx->stats;  in nicvf_read_bgx_stats()
175 nic->bgx_stats.tx_stats[bgx->idx] = bgx->stats; in nicvf_read_bgx_stats()
1316 struct nicvf_hw_stats *stats = &nic->hw_stats; in nicvf_update_stats() local
1325 stats->rx_bytes = GET_RX_STATS(RX_OCTS); in nicvf_update_stats()
1326 stats->rx_ucast_frames = GET_RX_STATS(RX_UCAST); in nicvf_update_stats()
1327 stats->rx_bcast_frames = GET_RX_STATS(RX_BCAST); in nicvf_update_stats()
1328 stats->rx_mcast_frames = GET_RX_STATS(RX_MCAST); in nicvf_update_stats()
1329 stats->rx_fcs_errors = GET_RX_STATS(RX_FCS); in nicvf_update_stats()
1330 stats->rx_l2_errors = GET_RX_STATS(RX_L2ERR); in nicvf_update_stats()
1331 stats->rx_drop_red = GET_RX_STATS(RX_RED); in nicvf_update_stats()
1332 stats->rx_drop_red_bytes = GET_RX_STATS(RX_RED_OCTS); in nicvf_update_stats()
1333 stats->rx_drop_overrun = GET_RX_STATS(RX_ORUN); in nicvf_update_stats()
1334 stats->rx_drop_overrun_bytes = GET_RX_STATS(RX_ORUN_OCTS); in nicvf_update_stats()
1335 stats->rx_drop_bcast = GET_RX_STATS(RX_DRP_BCAST); in nicvf_update_stats()
1336 stats->rx_drop_mcast = GET_RX_STATS(RX_DRP_MCAST); in nicvf_update_stats()
1337 stats->rx_drop_l3_bcast = GET_RX_STATS(RX_DRP_L3BCAST); in nicvf_update_stats()
1338 stats->rx_drop_l3_mcast = GET_RX_STATS(RX_DRP_L3MCAST); in nicvf_update_stats()
1340 stats->tx_bytes_ok = GET_TX_STATS(TX_OCTS); in nicvf_update_stats()
1341 stats->tx_ucast_frames_ok = GET_TX_STATS(TX_UCAST); in nicvf_update_stats()
1342 stats->tx_bcast_frames_ok = GET_TX_STATS(TX_BCAST); in nicvf_update_stats()
1343 stats->tx_mcast_frames_ok = GET_TX_STATS(TX_MCAST); in nicvf_update_stats()
1344 stats->tx_drops = GET_TX_STATS(TX_DROP); in nicvf_update_stats()
1346 drv_stats->tx_frames_ok = stats->tx_ucast_frames_ok + in nicvf_update_stats()
1347 stats->tx_bcast_frames_ok + in nicvf_update_stats()
1348 stats->tx_mcast_frames_ok; in nicvf_update_stats()
1349 drv_stats->rx_drops = stats->rx_drop_red + in nicvf_update_stats()
1350 stats->rx_drop_overrun; in nicvf_update_stats()
1351 drv_stats->tx_drops = stats->tx_drops; in nicvf_update_stats()
1361 struct rtnl_link_stats64 *stats) in nicvf_get_stats64() argument
1369 stats->rx_bytes = hw_stats->rx_bytes; in nicvf_get_stats64()
1370 stats->rx_packets = drv_stats->rx_frames_ok; in nicvf_get_stats64()
1371 stats->rx_dropped = drv_stats->rx_drops; in nicvf_get_stats64()
1372 stats->multicast = hw_stats->rx_mcast_frames; in nicvf_get_stats64()
1374 stats->tx_bytes = hw_stats->tx_bytes_ok; in nicvf_get_stats64()
1375 stats->tx_packets = drv_stats->tx_frames_ok; in nicvf_get_stats64()
1376 stats->tx_dropped = drv_stats->tx_drops; in nicvf_get_stats64()
1378 return stats; in nicvf_get_stats64()