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
cb3cf5c
..
9ebed89
100644
(file)
--- a/
drivers/net/ark/ark_udm.c
+++ b/
drivers/net/ark/ark_udm.c
@@
-33,6
+33,7
@@
ark_udm_stop(struct ark_udm_t *udm, const int wait)
{
int cnt = 0;
+ udm->setup.r0 = 0;
udm->cfg.command = 2;
rte_wmb();
@@
-71,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;
}