From: "Wei Hu (Xavier)" <huwei013@chinasoftinc.com>
To: <dev@dpdk.org>
Subject: [dpdk-dev] [PATCH v2 6/9] net/hns3: remove the redundant function call
Date: Sat, 14 Dec 2019 18:29:31 +0800 [thread overview]
Message-ID: <20191214102934.50491-7-huwei013@chinasoftinc.com> (raw)
In-Reply-To: <20191214102934.50491-1-huwei013@chinasoftinc.com>
From: Hao Chen <chenhao164@huawei.com>
This patch removes the redundant statement calling hns3_stats_reset()
to clear statistical information explicitly in the initialization of
VF device, because hardware has been reseted by FLR in the initialization
and the initial hardware and software statistics values are 0.
Signed-off-by: Hao Chen <chenhao164@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
---
drivers/net/hns3/hns3_ethdev_vf.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c
index 781374c82..46d3efad0 100644
--- a/drivers/net/hns3/hns3_ethdev_vf.c
+++ b/drivers/net/hns3/hns3_ethdev_vf.c
@@ -1167,7 +1167,6 @@ hns3vf_init_vf(struct rte_eth_dev *eth_dev)
hns3_set_default_rss_args(hw);
- (void)hns3_stats_reset(eth_dev);
return 0;
err_get_config:
--
2.23.0
next prev parent reply other threads:[~2019-12-14 10:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-14 10:29 [dpdk-dev] [PATCH v2 0/9] updates for hns3 PMD driver Wei Hu (Xavier)
2019-12-14 10:29 ` [dpdk-dev] [PATCH v2 1/9] net/hns3: support Rx interrupt Wei Hu (Xavier)
2019-12-14 10:29 ` [dpdk-dev] [PATCH v2 2/9] net/hns3: get link state change through mailbox Wei Hu (Xavier)
2019-12-14 10:29 ` [dpdk-dev] [PATCH v2 3/9] net/hns3: modify the return value of enable msix Wei Hu (Xavier)
2019-12-14 10:29 ` [dpdk-dev] [PATCH v2 4/9] net/hns3: modify custom macro Wei Hu (Xavier)
2019-12-14 10:29 ` [dpdk-dev] [PATCH v2 5/9] net/hns3: optimize RSS's default algorithm Wei Hu (Xavier)
2019-12-14 10:29 ` Wei Hu (Xavier) [this message]
2019-12-14 10:29 ` [dpdk-dev] [PATCH v2 7/9] net/hns3: remove the redundant variable initialization Wei Hu (Xavier)
2019-12-14 10:29 ` [dpdk-dev] [PATCH v2 8/9] net/hns3: remove the unnecessary assignment Wei Hu (Xavier)
2019-12-14 10:29 ` [dpdk-dev] [PATCH v2 9/9] net/hns3: remove the unused macros Wei Hu (Xavier)
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=20191214102934.50491-7-huwei013@chinasoftinc.com \
--to=huwei013@chinasoftinc.com \
--cc=dev@dpdk.org \
/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).