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/enic: fix Tx crash after restart
[dpdk.git]
/
drivers
/
net
/
enic
/
base
/
vnic_wq.c
diff --git
a/drivers/net/enic/base/vnic_wq.c
b/drivers/net/enic/base/vnic_wq.c
index
9b9ff4d
..
7c4119c
100644
(file)
--- a/
drivers/net/enic/base/vnic_wq.c
+++ b/
drivers/net/enic/base/vnic_wq.c
@@
-197,6
+197,8
@@
void vnic_wq_clean(struct vnic_wq *wq,
wq->head_idx = 0;
wq->tail_idx = 0;
+ wq->last_completed_index = 0;
+ *((uint32_t *)wq->cqmsg_rz->addr) = 0;
iowrite32(0, &wq->ctrl->fetch_index);
iowrite32(0, &wq->ctrl->posted_index);