]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/enic/base/vnic_wq.c
net/sfc/base: fix error code usage in common code
[dpdk.git] / drivers / net / enic / base / vnic_wq.c
index 9b9ff4d7d0c07b59b0731a68ecaad49b73d16b54..7c4119c34a26ddf09a7513503db121fd9bdf380a 100644 (file)
@@ -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);