]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/virtio/virtio_user/vhost_kernel_tap.h
net/virtio-user: do not close tap when disabling queue pairs
[dpdk.git] / drivers / net / virtio / virtio_user / vhost_kernel_tap.h
index e0e95b4f590c0d2c6c3879969fadbea6d8e5cfd3..5c4447b296d243bac5aeed1cabf5015c212e4993 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 */
@@ -37,3 +41,7 @@
 
 int vhost_kernel_open_tap(char **p_ifname, int hdr_size, int req_mq,
                         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);
+
+#endif