Lines Matching refs:port_stats
211 struct nicvf_hw_stats port_stats; in nicvf_dev_stats_get() local
277 nicvf_hw_get_stats(nic, &port_stats); in nicvf_dev_stats_get()
278 stats->ibytes = port_stats.rx_bytes; in nicvf_dev_stats_get()
279 stats->ipackets = port_stats.rx_ucast_frames; in nicvf_dev_stats_get()
280 stats->ipackets += port_stats.rx_bcast_frames; in nicvf_dev_stats_get()
281 stats->ipackets += port_stats.rx_mcast_frames; in nicvf_dev_stats_get()
282 stats->ierrors = port_stats.rx_l2_errors; in nicvf_dev_stats_get()
283 stats->imissed = port_stats.rx_drop_red; in nicvf_dev_stats_get()
284 stats->imissed += port_stats.rx_drop_overrun; in nicvf_dev_stats_get()
285 stats->imissed += port_stats.rx_drop_bcast; in nicvf_dev_stats_get()
286 stats->imissed += port_stats.rx_drop_mcast; in nicvf_dev_stats_get()
287 stats->imissed += port_stats.rx_drop_l3_bcast; in nicvf_dev_stats_get()
288 stats->imissed += port_stats.rx_drop_l3_mcast; in nicvf_dev_stats_get()
290 stats->obytes = port_stats.tx_bytes_ok; in nicvf_dev_stats_get()
291 stats->opackets = port_stats.tx_ucast_frames_ok; in nicvf_dev_stats_get()
292 stats->opackets += port_stats.tx_bcast_frames_ok; in nicvf_dev_stats_get()
293 stats->opackets += port_stats.tx_mcast_frames_ok; in nicvf_dev_stats_get()
294 stats->oerrors = port_stats.tx_drops; in nicvf_dev_stats_get()