34 #ifndef _VIRTIO_NET_H_
35 #define _VIRTIO_NET_H_
43 #include <linux/vhost.h>
44 #include <linux/virtio_ring.h>
45 #include <linux/virtio_net.h>
46 #include <sys/eventfd.h>
47 #include <sys/socket.h>
54 #define RTE_VHOST_USER_CLIENT (1ULL << 0)
55 #define RTE_VHOST_USER_NO_RECONNECT (1ULL << 1)
56 #define RTE_VHOST_USER_DEQUEUE_ZERO_COPY (1ULL << 2)
59 enum {VIRTIO_RXQ, VIRTIO_TXQ, VIRTIO_QNUM};
84 uint64_t rte_vhost_feature_get(
void);
86 int rte_vhost_enable_guest_notification(
int vid, uint16_t queue_id,
int enable);
95 int rte_vhost_driver_unregister(
const char *path);
100 int rte_vhost_driver_session_start(
void);
171 struct rte_mbuf **pkts, uint16_t count);