net/hns3: fix timing in mailbox
[dpdk.git] / drivers / net / virtio / virtio_rxtx_simple_neon.c
index 8e6fa1f..c8e4b13 100644 (file)
@@ -12,7 +12,7 @@
 #include <rte_branch_prediction.h>
 #include <rte_cycles.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_errno.h>
 #include <rte_memory.h>
 #include <rte_mempool.h>
  * - nb_pkts < RTE_VIRTIO_DESC_PER_LOOP, just return no packet
  */
 uint16_t
-virtio_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
-       uint16_t nb_pkts)
+virtio_recv_pkts_vec(void *rx_queue,
+               struct rte_mbuf **__rte_restrict rx_pkts,
+               uint16_t nb_pkts)
 {
        struct virtnet_rx *rxvq = rx_queue;
-       struct virtqueue *vq = rxvq->vq;
+       struct virtqueue *vq = virtnet_rxq_to_vq(rxvq);
        struct virtio_hw *hw = vq->hw;
        uint16_t nb_used, nb_total;
        uint16_t desc_idx;
@@ -83,7 +84,7 @@ virtio_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
        if (unlikely(nb_pkts < RTE_VIRTIO_DESC_PER_LOOP))
                return 0;
 
-       /* virtqueue_nused has a load-acquire or rte_cio_rmb inside */
+       /* virtqueue_nused has a load-acquire or rte_io_rmb inside */
        nb_used = virtqueue_nused(vq);
 
        if (unlikely(nb_used == 0))