From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id AA269A00E6 for ; Thu, 13 Jun 2019 13:45:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A5A7E1D3F5; Thu, 13 Jun 2019 13:45:11 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id C67B71D3EC for ; Thu, 13 Jun 2019 13:45:07 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5DBj7Ck008520 for ; Thu, 13 Jun 2019 04:45:07 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0818; bh=0D4OTeh7VDJTAvsC6N5YihPHS4Kojf2YvaG7eNFPWoY=; b=UUzpOe7b1mszh2sCc4obib0g6U+DDsBG/tuQ9bL9HvnZWYMGRGTWREDwXSzM4S96hbdn 8GdwTEZrES1YfqHqWwy3JHoGEkdi/7mIJsY41SLLJYS2yw84yumkVjWlqHEfjLbvivq4 ACH9HNxbxRESVLTEU4CsUfDfBF/oNVRfMtw0dtTe5/iz0vDt2cT5ijEYTftE/YhyYG6x VD54pct6dHPIIpleF3RyS9Sgo9q26iC7u0bHMthgG1IEQ7O6C7VliXaelcgS295CuwvQ g9FsEeM0ow3TwZfKXBGtdhimw/STHfO6LhfXTXhkWVZmVXFQrOC/3XtOJBKNOdiu3ZQ7 zA== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2t3j820t3n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 13 Jun 2019 04:45:06 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 13 Jun 2019 04:45:06 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Thu, 13 Jun 2019 04:45:06 -0700 Received: from pt-lxl0023.marvell.com (pt-lxl0023.marvell.com [10.5.213.12]) by maili.marvell.com (Postfix) with ESMTP id 6EFF13F7041; Thu, 13 Jun 2019 04:45:05 -0700 (PDT) From: To: CC: Yuri Chipchev Date: Thu, 13 Jun 2019 16:58:24 +0300 Message-ID: <1560434305-9359-3-git-send-email-lironh@marvell.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1560434305-9359-1-git-send-email-lironh@marvell.com> References: <1560258407-26378-1-git-send-email-lironh@marvell.com> <1560434305-9359-1-git-send-email-lironh@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-13_07:, , signatures=0 Subject: [dpdk-dev] [PATCH v2 2/3] net/mvneta: reset stats during device start 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Yuri Chipchev Signed-off-by: Yuri Chipchev Reviewed-by: Liron Himi Tested-by: Yuri Chipchev --- drivers/net/mvneta/mvneta_ethdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/mvneta/mvneta_ethdev.c b/drivers/net/mvneta/mvneta_ethdev.c index d6e64a8..f324d93 100644 --- a/drivers/net/mvneta/mvneta_ethdev.c +++ b/drivers/net/mvneta/mvneta_ethdev.c @@ -57,6 +57,8 @@ struct mvneta_ifnames { static int mvneta_dev_num; +static void mvneta_stats_reset(struct rte_eth_dev *dev); + /** * Deinitialize packet processor. */ @@ -359,6 +361,8 @@ mvneta_dev_start(struct rte_eth_dev *dev) } priv->ppio_id = priv->ppio->port_id; + mvneta_stats_reset(dev); + /* * In case there are some some stale uc/mc mac addresses flush them * here. It cannot be done during mvneta_dev_close() as port information -- 2.7.4