[PATCH 3/4] tun: define feature bit for USO support
From: Yuri Benditovich
Date: Tue May 11 2021 - 00:43:39 EST
User mode software can probe this bit to check whether the
USO feature is supported by TUN/TAP device.
Signed-off-by: Yuri Benditovich <yuri.benditovich@xxxxxxxxxx>
---
include/uapi/linux/if_tun.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/linux/if_tun.h b/include/uapi/linux/if_tun.h
index 454ae31b93c7..24f246920dd5 100644
--- a/include/uapi/linux/if_tun.h
+++ b/include/uapi/linux/if_tun.h
@@ -88,6 +88,7 @@
#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_USO 0x20 /* I can handle USO packets */
/* Protocol info prepended to the packets (when IFF_NO_PI is not set) */
#define TUN_PKT_STRIP 0x0001
--
2.26.3