Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

uapi/linux/if_tun.h: Added new offload types for USO4/6.

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>

authored by

Andrew Melnychenko and committed by
David S. Miller
b22bbdd1 1fd54773

+2
+2
include/uapi/linux/if_tun.h
··· 90 90 #define TUN_F_TSO6 0x04 /* I can handle TSO for IPv6 packets */ 91 91 #define TUN_F_TSO_ECN 0x08 /* I can handle TSO with ECN bits. */ 92 92 #define TUN_F_UFO 0x10 /* I can handle UFO packets */ 93 + #define TUN_F_USO4 0x20 /* I can handle USO for IPv4 packets */ 94 + #define TUN_F_USO6 0x40 /* I can handle USO for IPv6 packets */ 93 95 94 96 /* Protocol info prepended to the packets (when IFF_NO_PI is not set) */ 95 97 #define TUN_PKT_STRIP 0x0001