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)
58 enum {VIRTIO_RXQ, VIRTIO_TXQ, VIRTIO_QNUM};
87 uint64_t rte_vhost_feature_get(
void);
89 int rte_vhost_enable_guest_notification(
int vid, uint16_t queue_id,
int enable);
98 int rte_vhost_driver_unregister(
const char *path);
103 int rte_vhost_driver_session_start(
void);
175 struct rte_mbuf **pkts, uint16_t count);