net/virtio: remove duplicated port ID from virtio-user
[dpdk.git] / drivers / net / virtio / virtio_user / vhost_kernel_tap.h
index 01a026f..ed03fce 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