]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/virtio/virtio_user/vhost_kernel_tap.h
net/virtio: revert not claiming LRO support
[dpdk.git] / drivers / net / virtio / virtio_user / vhost_kernel_tap.h
index 1fc58ff1fa6da403287ea9c0a6d190670e8e2c86..eae340ccbf807e663d7029c767d06815a7f626ad 100644 (file)
 #define IFF_ATTACH_QUEUE 0x0200
 #define IFF_DETACH_QUEUE 0x0400
 
+/* Features for GSO (TUNSETOFFLOAD). */
+#define TUN_F_CSUM     0x01    /* You can hand me unchecksummed packets. */
+#define TUN_F_TSO4     0x02    /* I can handle TSO for IPv4 packets */
+#define TUN_F_TSO6     0x04    /* I can handle TSO for IPv6 packets */
+#define TUN_F_TSO_ECN  0x08    /* I can handle TSO with ECN bits. */
+#define TUN_F_UFO      0x10    /* I can handle UFO packets */
+
 /* Constants */
 #define PATH_NET_TUN   "/dev/net/tun"
 
-int vhost_kernel_open_tap(char **p_ifname, int hdr_size);
+int vhost_kernel_open_tap(char **p_ifname, int hdr_size, int req_mq);