enic patch
authorHanoh Haim <[email protected]>
Tue, 8 Mar 2016 09:07:20 +0000 (11:07 +0200)
committerHanoh Haim <[email protected]>
Tue, 8 Mar 2016 09:07:20 +0000 (11:07 +0200)
src/dpdk22/drivers/net/enic/base/enic_vnic_wq.h

index e3ea574..e4a71e3 100644 (file)
@@ -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_ */