uapi/linux/if_tun.h: Added new offload types for USO4/6.
authorAndrew Melnychenko <andrew@daynix.com>
Wed, 7 Dec 2022 11:35:54 +0000 (13:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Dec 2022 09:29:56 +0000 (09:29 +0000)
Added 2 additional offlloads for USO(IPv4 & IPv6).
Separate offloads are required for Windows VM guests,
g.e. Windows may set USO rx only for IPv4.

Signed-off-by: Andrew Melnychenko <andrew@daynix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_tun.h

index b6d7b868f2904d78b82259b3a971bc34a74a62f6..287cdc81c9390c289a30545aa7ed23d81c3329d3 100644 (file)
@@ -90,6 +90,8 @@
 #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 */
+#define TUN_F_USO4     0x20    /* I can handle USO for IPv4 packets */
+#define TUN_F_USO6     0x40    /* I can handle USO for IPv6 packets */
 
 /* Protocol info prepended to the packets (when IFF_NO_PI is not set) */
 #define TUN_PKT_STRIP  0x0001