git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d21e0fc
)
net/bnxt: remove unnecessary memset
author
Stephen Hemminger
<stephen@networkplumber.org>
Wed, 22 Jan 2020 17:55:14 +0000
(09:55 -0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:19 +0000
(09:51 +0100)
The rte_ethdev layer already zeros statistics before calling
the device.
Fixes:
57d5e5bc86e4
("net/bnxt: add statistics")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_stats.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnxt/bnxt_stats.c
b/drivers/net/bnxt/bnxt_stats.c
index
65f90e0
..
32f112b
100644
(file)
--- a/
drivers/net/bnxt/bnxt_stats.c
+++ b/
drivers/net/bnxt/bnxt_stats.c
@@
-389,7
+389,6
@@
int bnxt_stats_get_op(struct rte_eth_dev *eth_dev,
if (rc)
return rc;
- memset(bnxt_stats, 0, sizeof(*bnxt_stats));
if (!(bp->flags & BNXT_FLAG_INIT_DONE))
return -EIO;