enic: expose Rx missed packets counter
authorJohn Daley <johndale@cisco.com>
Wed, 30 Mar 2016 18:07:31 +0000 (11:07 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 30 Mar 2016 18:17:58 +0000 (20:17 +0200)
Update the 'imissed' counter with the number of packets dropped
by the NIC.

Fixes: fefed3d1e62c ("enic: new driver")

Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Nelson Escobar <neescoba@cisco.com>
drivers/net/enic/enic_main.c

index 2f79cf0..e3da51d 100644 (file)
@@ -246,6 +246,8 @@ void enic_dev_stats_get(struct enic *enic, struct rte_eth_stats *r_stats)
        r_stats->ierrors = stats->rx.rx_errors;
        r_stats->oerrors = stats->tx.tx_errors;
 
+       r_stats->imissed = stats->rx.rx_drop;
+
        r_stats->imcasts = stats->rx.rx_multicast_frames_ok;
        r_stats->rx_nombuf = stats->rx.rx_no_bufs;
 }