From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=824; q=dns/txt; s=iport; t=1459361273; x=1460570873; h=from:to:cc:subject:date:message-id; bh=xdf0Zbrd5pMEG+RuZQueCU+Vees+EonolABOFqwKw30=; b=N5BTE9wYPFpdCCpUB7UcdXqBmfs4IKRMi500TqBq+anI8mpo1D6br215 hYzlOMWHx93EQxw5YoMpuuXjWUoEP8ZMQBRGz4Ruf1Yv4tS/OFaBIfGfj TNoIVwCcZmN1MADtsDv8WGVA/3hgDqERmKLm2qwL4M4ke+oiw+q/WZuBY Q=; X-IronPort-AV: E=Sophos;i="5.24,417,1454976000"; d="scan'208";a="255515135" Received: from rcdn-core-9.cisco.com ([173.37.93.145]) by alln-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Mar 2016 18:07:52 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by rcdn-core-9.cisco.com (8.14.5/8.14.5) with ESMTP id u2UI7qGr022377; Wed, 30 Mar 2016 18:07:52 GMT Received: by cisco.com (Postfix, from userid 392789) id 802373FAADBD; Wed, 30 Mar 2016 11:07:52 -0700 (PDT) From: John Daley To: dev@dpdk.org Cc: John Daley Date: Wed, 30 Mar 2016 11:07:31 -0700 Message-Id: <1459361251-2935-1-git-send-email-johndale@cisco.com> X-Mailer: git-send-email 2.7.0 Subject: [dpdk-dev] [PATCH] enic: expose RX missed packets counter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2016 18:07:54 -0000 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