From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.sandvine.com (Mail1.sandvine.com [64.7.137.134]) by dpdk.org (Postfix) with ESMTP id D71D6689B for ; Fri, 2 Dec 2016 14:58:00 +0100 (CET) Received: from WTL-EXCHP-1.sandvine.com ([fe80::ac6b:cc1e:f2ff:93aa]) by wtl-exchp-2.sandvine.com ([fe80::68ac:f071:19ff:3455%19]) with mapi id 14.03.0319.002; Fri, 2 Dec 2016 08:57:59 -0500 From: Tom Crugnale To: "helin.zhang@intel.com" , "jingjing.wu@intel.com" CC: "dev@dpdk.org" , Tom Crugnale Thread-Topic: [PATCH] net/i40evf: fix reporting of imissed packets Thread-Index: AQHSS/+jUZk8+T/dRE+qH0LMvN+l46DzZ22Q Date: Fri, 2 Dec 2016 13:57:58 +0000 Message-ID: <9689034CEF26614CAB4B447EEAAF98E918357448@wtl-exchp-1.sandvine.com> References: <1480616446-23644-1-git-send-email-tcrugnale@sandvine.com> In-Reply-To: <1480616446-23644-1-git-send-email-tcrugnale@sandvine.com> Accept-Language: en-CA, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.200.32] x-c2processedorg: b2f06e69-072f-40ee-90c5-80a34e700794 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] net/i40evf: fix reporting of imissed packets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2016 13:58:01 -0000 Missed packets on RX were erroneously being assigned to the ierrors struct = member. Change it to be assigned to imissed. Fixes: 4861cde4 ("i40e: new poll mode driver") Signed-off-by: Tom Crugnale --- drivers/net/i40e/i40e_ethdev_vf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethd= ev_vf.c index aa306d6..90876c8 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -952,7 +952,7 @@ struct rte_i40evf_xstats_name_off { } =20 static int -i40evf_get_statics(struct rte_eth_dev *dev, struct rte_eth_stats *stats) +i40evf_get_stats(struct rte_eth_dev *dev, struct rte_eth_stats *stats) { int ret; struct i40e_eth_stats *pstats =3D NULL; @@ -965,7 +965,7 @@ struct rte_i40evf_xstats_name_off { pstats->rx_broadcast; stats->opackets =3D pstats->tx_broadcast + pstats->tx_multicast + pstats->tx_unicast; - stats->ierrors =3D pstats->rx_discards; + stats->imissed =3D pstats->rx_discards; stats->oerrors =3D pstats->tx_errors + pstats->tx_discards; stats->ibytes =3D pstats->rx_bytes; stats->obytes =3D pstats->tx_bytes; @@ -2277,8 +2277,8 @@ static int i40evf_dev_xstats_get(struct rte_eth_dev *= dev, static void i40evf_dev_stats_get(struct rte_eth_dev *dev, struct rte= _eth_stats *stats) { - if (i40evf_get_statics(dev, stats)) - PMD_DRV_LOG(ERR, "Get statics failed"); + if (i40evf_get_stats(dev, stats)) + PMD_DRV_LOG(ERR, "Get stats failed"); } =20 static void -- 1.8.3.1