diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-07-03 06:48:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-03 06:48:02 -0400 |
commit | f43798c27684ab925adde7d8acc34c78c6e50df8 (patch) | |
tree | 21e952a07534dd382835246d02245d5e776c4d8b /include/linux/if_tun.h | |
parent | 5228ddc98fa49b3cedab4024e269d62410a0d806 (diff) |
tun: Allow GSO using virtio_net_hdr
Add a IFF_VNET_HDR flag. This uses the same ABI as virtio_net
(ie. prepending struct virtio_net_hdr to packets) to indicate GSO and
checksum information.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Max Krasnyansky <maxk@qualcomm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_tun.h')
-rw-r--r-- | include/linux/if_tun.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/if_tun.h b/include/linux/if_tun.h index 3f0a0995d44..563fae542da 100644 --- a/include/linux/if_tun.h +++ b/include/linux/if_tun.h | |||
@@ -31,6 +31,7 @@ | |||
31 | #define TUN_NO_PI 0x0040 | 31 | #define TUN_NO_PI 0x0040 |
32 | #define TUN_ONE_QUEUE 0x0080 | 32 | #define TUN_ONE_QUEUE 0x0080 |
33 | #define TUN_PERSIST 0x0100 | 33 | #define TUN_PERSIST 0x0100 |
34 | #define TUN_VNET_HDR 0x0200 | ||
34 | 35 | ||
35 | /* Ioctl defines */ | 36 | /* Ioctl defines */ |
36 | #define TUNSETNOCSUM _IOW('T', 200, int) | 37 | #define TUNSETNOCSUM _IOW('T', 200, int) |
@@ -48,6 +49,7 @@ | |||
48 | #define IFF_TAP 0x0002 | 49 | #define IFF_TAP 0x0002 |
49 | #define IFF_NO_PI 0x1000 | 50 | #define IFF_NO_PI 0x1000 |
50 | #define IFF_ONE_QUEUE 0x2000 | 51 | #define IFF_ONE_QUEUE 0x2000 |
52 | #define IFF_VNET_HDR 0x4000 | ||
51 | 53 | ||
52 | /* Features for GSO (TUNSETOFFLOAD). */ | 54 | /* Features for GSO (TUNSETOFFLOAD). */ |
53 | #define TUN_F_CSUM 0x01 /* You can hand me unchecksummed packets. */ | 55 | #define TUN_F_CSUM 0x01 /* You can hand me unchecksummed packets. */ |