summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-03-08 11:07:20 +0200
committerHanoh Haim <hhaim@cisco.com>2016-03-08 11:07:20 +0200
commit205e581ed5a176f24347d46cd2cff3f45b8ff564 (patch)
tree06362c289d38df055679da4b453d88a858cd9744 /src
parentf7dfa93296f137d846ac8cb59e0eee13d47317ab (diff)
enic patch
Diffstat (limited to 'src')
-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_ */