]> git.droids-corp.org - dpdk.git/blobdiff - drivers/raw/ioat/rte_idxd_rawdev_fns.h
net/mlx5: fix meter policy flow match item
[dpdk.git] / drivers / raw / ioat / rte_idxd_rawdev_fns.h
index 0eea5368de5c1f63bc1df34ef76d8110990688a6..57548609e3448466f845d4755ae4d5c23fcb61c3 100644 (file)
@@ -343,14 +343,6 @@ __idxd_completed_ops(int dev_id, uint8_t max_ops, uint32_t *status, uint8_t *num
                        idxd->batch_idx_read = 0;
        }
 
-       if (idxd->cfg.hdls_disable && status == NULL) {
-               n = (idxd->hdls_avail < idxd->hdls_read) ?
-                               (idxd->hdls_avail + idxd->desc_ring_mask + 1 - idxd->hdls_read) :
-                               (idxd->hdls_avail - idxd->hdls_read);
-               idxd->hdls_read = idxd->hdls_avail;
-               goto out;
-       }
-
        n = 0;
        h_idx = idxd->hdls_read;
        while (h_idx != idxd->hdls_avail) {
@@ -386,7 +378,6 @@ __idxd_completed_ops(int dev_id, uint8_t max_ops, uint32_t *status, uint8_t *num
        }
        idxd->hdls_read = h_idx;
 
-out:
        idxd->xstats.completed += n;
        return n;
 }