git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/cnxk: fix uninitialized variables
[dpdk.git]
/
drivers
/
net
/
ark
/
ark_udm.c
diff --git
a/drivers/net/ark/ark_udm.c
b/drivers/net/ark/ark_udm.c
index
28c4500
..
9ebed89
100644
(file)
--- a/
drivers/net/ark/ark_udm.c
+++ b/
drivers/net/ark/ark_udm.c
@@
-33,7
+33,9
@@
ark_udm_stop(struct ark_udm_t *udm, const int wait)
{
int cnt = 0;
+ udm->setup.r0 = 0;
udm->cfg.command = 2;
+ rte_wmb();
while (wait && (udm->cfg.stop_flushed & 0x01) == 0) {
if (cnt++ > 1000)
@@
-70,6
+72,7
@@
ark_udm_reset(struct ark_udm_t *udm)
void
ark_udm_start(struct ark_udm_t *udm)
{
+ udm->setup.r0 = 0x100;
udm->cfg.command = 1;
}