Skip to content

Commit b22bbdd

Browse files
AndrewAtDaynixdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1fd5477 commit b22bbdd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/uapi/linux/if_tun.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
#define TUN_F_TSO6 0x04 /* I can handle TSO for IPv6 packets */
9191
#define TUN_F_TSO_ECN 0x08 /* I can handle TSO with ECN bits. */
9292
#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 */
9395

9496
/* Protocol info prepended to the packets (when IFF_NO_PI is not set) */
9597
#define TUN_PKT_STRIP 0x0001

0 commit comments

Comments
 (0)