tun: Allow GSO using virtio_net_hdr
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 3 Jul 2008 10:48:02 +0000 (03:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jul 2008 10:48:02 +0000 (03:48 -0700)
commitf43798c27684ab925adde7d8acc34c78c6e50df8
tree21e952a07534dd382835246d02245d5e776c4d8b
parent5228ddc98fa49b3cedab4024e269d62410a0d806
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>
drivers/net/tun.c
include/linux/if_tun.h