git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ice: enable flow redirect on switch
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_user
/
vhost_kernel_tap.h
diff --git
a/drivers/net/virtio/virtio_user/vhost_kernel_tap.h
b/drivers/net/virtio/virtio_user/vhost_kernel_tap.h
index
7d52e6b
..
5c4447b
100644
(file)
--- a/
drivers/net/virtio/virtio_user/vhost_kernel_tap.h
+++ b/
drivers/net/virtio/virtio_user/vhost_kernel_tap.h
@@
-2,6
+2,10
@@
* Copyright(c) 2016 Intel Corporation
*/
* Copyright(c) 2016 Intel Corporation
*/
+#ifndef _VHOST_KERNEL_TAP_H
+#define _VHOST_KERNEL_TAP_H
+
+#include <stdbool.h>
#include <sys/ioctl.h>
/* TUN ioctls */
#include <sys/ioctl.h>
/* TUN ioctls */
@@
-35,4
+39,9
@@
/* Constants */
#define PATH_NET_TUN "/dev/net/tun"
/* Constants */
#define PATH_NET_TUN "/dev/net/tun"
-int vhost_kernel_open_tap(char **p_ifname, int hdr_size, int req_mq);
+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