diff options
Diffstat (limited to 'include/uapi/linux/if_tun.h')
| -rw-r--r-- | include/uapi/linux/if_tun.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/if_tun.h b/include/uapi/linux/if_tun.h index 25a585ce23e6..2835b85fd46d 100644 --- a/include/uapi/linux/if_tun.h +++ b/include/uapi/linux/if_tun.h | |||
| @@ -31,9 +31,11 @@ | |||
| 31 | #define TUN_FASYNC 0x0010 | 31 | #define TUN_FASYNC 0x0010 |
| 32 | #define TUN_NOCHECKSUM 0x0020 | 32 | #define TUN_NOCHECKSUM 0x0020 |
| 33 | #define TUN_NO_PI 0x0040 | 33 | #define TUN_NO_PI 0x0040 |
| 34 | /* This flag has no real effect */ | ||
| 34 | #define TUN_ONE_QUEUE 0x0080 | 35 | #define TUN_ONE_QUEUE 0x0080 |
| 35 | #define TUN_PERSIST 0x0100 | 36 | #define TUN_PERSIST 0x0100 |
| 36 | #define TUN_VNET_HDR 0x0200 | 37 | #define TUN_VNET_HDR 0x0200 |
| 38 | #define TUN_TAP_MQ 0x0400 | ||
| 37 | 39 | ||
| 38 | /* Ioctl defines */ | 40 | /* Ioctl defines */ |
| 39 | #define TUNSETNOCSUM _IOW('T', 200, int) | 41 | #define TUNSETNOCSUM _IOW('T', 200, int) |
| @@ -53,14 +55,19 @@ | |||
| 53 | #define TUNDETACHFILTER _IOW('T', 214, struct sock_fprog) | 55 | #define TUNDETACHFILTER _IOW('T', 214, struct sock_fprog) |
| 54 | #define TUNGETVNETHDRSZ _IOR('T', 215, int) | 56 | #define TUNGETVNETHDRSZ _IOR('T', 215, int) |
| 55 | #define TUNSETVNETHDRSZ _IOW('T', 216, int) | 57 | #define TUNSETVNETHDRSZ _IOW('T', 216, int) |
| 58 | #define TUNSETQUEUE _IOW('T', 217, int) | ||
| 56 | 59 | ||
| 57 | /* TUNSETIFF ifr flags */ | 60 | /* TUNSETIFF ifr flags */ |
| 58 | #define IFF_TUN 0x0001 | 61 | #define IFF_TUN 0x0001 |
| 59 | #define IFF_TAP 0x0002 | 62 | #define IFF_TAP 0x0002 |
| 60 | #define IFF_NO_PI 0x1000 | 63 | #define IFF_NO_PI 0x1000 |
| 64 | /* This flag has no real effect */ | ||
| 61 | #define IFF_ONE_QUEUE 0x2000 | 65 | #define IFF_ONE_QUEUE 0x2000 |
| 62 | #define IFF_VNET_HDR 0x4000 | 66 | #define IFF_VNET_HDR 0x4000 |
| 63 | #define IFF_TUN_EXCL 0x8000 | 67 | #define IFF_TUN_EXCL 0x8000 |
| 68 | #define IFF_MULTI_QUEUE 0x0100 | ||
| 69 | #define IFF_ATTACH_QUEUE 0x0200 | ||
| 70 | #define IFF_DETACH_QUEUE 0x0400 | ||
| 64 | 71 | ||
| 65 | /* Features for GSO (TUNSETOFFLOAD). */ | 72 | /* Features for GSO (TUNSETOFFLOAD). */ |
| 66 | #define TUN_F_CSUM 0x01 /* You can hand me unchecksummed packets. */ | 73 | #define TUN_F_CSUM 0x01 /* You can hand me unchecksummed packets. */ |
