From: John Daley Date: Wed, 30 Mar 2016 18:07:31 +0000 (-0700) Subject: enic: expose Rx missed packets counter X-Git-Tag: spdx-start~7147 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7182d3e7d17722d088322695fc09f0d3bb7f1eab;p=dpdk.git enic: expose Rx missed packets counter Update the 'imissed' counter with the number of packets dropped by the NIC. Fixes: fefed3d1e62c ("enic: new driver") Signed-off-by: John Daley Reviewed-by: Nelson Escobar --- diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index 2f79cf0888..e3da51dbb8 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c @@ -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; }