git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ionic: use socket id passed in for Rx and Tx queues
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_rxtx_simple_neon.c
diff --git
a/drivers/net/virtio/virtio_rxtx_simple_neon.c
b/drivers/net/virtio/virtio_rxtx_simple_neon.c
index
363e2b3
..
2cba800
100644
(file)
--- a/
drivers/net/virtio/virtio_rxtx_simple_neon.c
+++ b/
drivers/net/virtio/virtio_rxtx_simple_neon.c
@@
-12,7
+12,7
@@
#include <rte_branch_prediction.h>
#include <rte_cycles.h>
#include <rte_ether.h>
#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>
#include <rte_errno.h>
#include <rte_memory.h>
#include <rte_mempool.h>
@@
-36,8
+36,9
@@
* - nb_pkts < RTE_VIRTIO_DESC_PER_LOOP, just return no packet
*/
uint16_t
* - 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 virtnet_rx *rxvq = rx_queue;
struct virtqueue *vq = rxvq->vq;
@@
-71,8
+72,8
@@
virtio_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
*/
uint16x8_t len_adjust = {
0, 0,
*/
uint16x8_t len_adjust = {
0, 0,
- (uint16_t)
vq->
hw->vtnet_hdr_size, 0,
- (uint16_t)
vq->
hw->vtnet_hdr_size,
+ (uint16_t)hw->vtnet_hdr_size, 0,
+ (uint16_t)hw->vtnet_hdr_size,
0,
0, 0
};
0,
0, 0
};
@@
-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;
if (unlikely(nb_pkts < RTE_VIRTIO_DESC_PER_LOOP))
return 0;
- /* virtqueue_nused has a load-acquire or rte_
c
io_rmb inside */
+ /* virtqueue_nused has a load-acquire or rte_io_rmb inside */
nb_used = virtqueue_nused(vq);
if (unlikely(nb_used == 0))
nb_used = virtqueue_nused(vq);
if (unlikely(nb_used == 0))