]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/virtio/virtio_user/vhost_kernel_tap.h
net/virtio: remove duplicated port ID from virtio-user
[dpdk.git] / drivers / net / virtio / virtio_user / vhost_kernel_tap.h
index 01a026f5093c33a624c21418bbf6f7f11c272c56..ed03fce21e3d2a1b5258a8daec1d3acee6cb4c6e 100644 (file)
@@ -2,6 +2,10 @@
  * Copyright(c) 2016 Intel Corporation
  */
 
+#ifndef _VHOST_KERNEL_TAP_H
+#define _VHOST_KERNEL_TAP_H
+
+#include <stdbool.h>
 #include <sys/ioctl.h>
 
 /* TUN ioctls */
@@ -36,4 +40,9 @@
 #define PATH_NET_TUN   "/dev/net/tun"
 
 int vhost_kernel_open_tap(char **p_ifname, int hdr_size, int req_mq,
-                        const char *mac);
+                        const char *mac, uint64_t features);
+int vhost_kernel_tap_set_offload(int fd, uint64_t features);
+int vhost_kernel_tap_set_queue(int fd, bool attach);
+int tap_support_features(unsigned int *tap_features);
+
+#endif