From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Daley Subject: [PATCH] enic: expose RX missed packets counter Date: Wed, 30 Mar 2016 11:07:31 -0700 Message-ID: <1459361251-2935-1-git-send-email-johndale@cisco.com> Cc: John Daley To: dev@dpdk.org Return-path: Received: from alln-iport-1.cisco.com (alln-iport-1.cisco.com [173.37.142.88]) by dpdk.org (Postfix) with ESMTP id C27512946 for ; Wed, 30 Mar 2016 20:07:53 +0200 (CEST) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- drivers/net/enic/enic_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index 2f79cf0..e3da51d 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; } -- 2.7.0