New upstream version 18.11-rc1
[deb_dpdk.git] / drivers / event / octeontx / ssovf_worker.h
index d55018a..d1d3a52 100644 (file)
@@ -28,11 +28,11 @@ ssovf_octeontx_wqe_to_pkt(uint64_t work, uint16_t port_info)
 {
        struct rte_mbuf *mbuf;
        octtx_wqe_t *wqe = (octtx_wqe_t *)(uintptr_t)work;
-       rte_prefetch_non_temporal(wqe);
 
        /* Get mbuf from wqe */
        mbuf = (struct rte_mbuf *)((uintptr_t)wqe -
                        OCTTX_PACKET_WQE_SKIP);
+       rte_prefetch_non_temporal(mbuf);
        mbuf->packet_type =
                ptype_table[wqe->s.w2.lcty][wqe->s.w2.lety][wqe->s.w2.lfty];
        mbuf->data_off = RTE_PTR_DIFF(wqe->s.w3.addr, mbuf->buf_addr);
@@ -42,6 +42,7 @@ ssovf_octeontx_wqe_to_pkt(uint64_t work, uint16_t port_info)
        mbuf->ol_flags = 0;
        mbuf->port = rte_octeontx_pchan_map[port_info >> 4][port_info & 0xF];
        rte_mbuf_refcnt_set(mbuf, 1);
+
        return mbuf;
 }