From: <lironh@marvell.com>
To: <jerinj@marvell.com>
Cc: <dev@dpdk.org>, Yuri Chipchev <yuric@marvell.com>
Subject: [dpdk-dev] [PATCH v3 2/3] net/mvneta: reset stats during device initialization
Date: Mon, 1 Jul 2019 11:00:23 +0300 [thread overview]
Message-ID: <1561968024-16133-3-git-send-email-lironh@marvell.com> (raw)
In-Reply-To: <1561968024-16133-1-git-send-email-lironh@marvell.com>
From: Yuri Chipchev <yuric@marvell.com>
reset device statistics on device initialization
Signed-off-by: Yuri Chipchev <yuric@marvell.com>
Reviewed-by: Liron Himi <lironh@marvell.com>
Tested-by: Yuri Chipchev <yuric@marvell.com>
---
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
next prev parent reply other threads:[~2019-07-01 5:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-11 13:06 [dpdk-dev] [PATCH 0/3] net/mvneta: minor updates lironh
2019-06-11 13:06 ` [dpdk-dev] [PATCH 1/3] net/mvneta: fix: ierror counted twice lironh
2019-06-11 13:06 ` [dpdk-dev] [PATCH 2/3] net/mvneta: reset stats during device start lironh
2019-06-11 13:06 ` [dpdk-dev] [PATCH 3/3] net/mvneta: only use ol_flags for checksum generation offload lironh
2019-06-13 13:58 ` [dpdk-dev] [PATCH v2 0/3] net/mvneta: minor updates lironh
2019-06-13 13:58 ` [dpdk-dev] [PATCH v2 1/3] net/mvneta: fix: ierror counted twice lironh
2019-06-13 13:58 ` [dpdk-dev] [PATCH v2 2/3] net/mvneta: reset stats during device start lironh
2019-06-13 13:58 ` [dpdk-dev] [PATCH v2 3/3] net/mvneta: only use ol_flags for checksum generation offload lironh
2019-06-25 8:22 ` [dpdk-dev] [PATCH v2 0/3] net/mvneta: minor updates Jerin Jacob Kollanukkaran
2019-07-01 8:00 ` [dpdk-dev] [PATCH v3 " lironh
2019-07-01 8:00 ` [dpdk-dev] [PATCH v3 1/3] net/mvneta: fix: ierror counted twice lironh
2019-07-01 17:45 ` Jerin Jacob Kollanukkaran
2019-07-01 8:00 ` lironh [this message]
2019-07-01 8:00 ` [dpdk-dev] [PATCH v3 3/3] net/mvneta: only use ol_flags for checksum generation offload lironh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1561968024-16133-3-git-send-email-lironh@marvell.com \
--to=lironh@marvell.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=yuric@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).