summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dpdk22/drivers/net/enic/base/enic_vnic_wq.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dpdk22/drivers/net/enic/base/enic_vnic_wq.h b/src/dpdk22/drivers/net/enic/base/enic_vnic_wq.h
index e3ea5742..e4a71e39 100644
--- a/src/dpdk22/drivers/net/enic/base/enic_vnic_wq.h
+++ b/src/dpdk22/drivers/net/enic/base/enic_vnic_wq.h
@@ -69,11 +69,12 @@ static inline void enic_vnic_post_wq(struct vnic_wq *wq,
buf->wr_id = wrid;
buf = buf->next;
- if (cq_entry)
- enic_vnic_post_wq_index(wq);
+ wq->ring.desc_avail -= desc_skip_cnt;
wq->to_use = buf;
- wq->ring.desc_avail -= desc_skip_cnt;
+ if (cq_entry)
+ enic_vnic_post_wq_index(wq);
+
}
#endif /* _ENIC_VNIC_WQ_H_ */