tap: add VNET_LE/VNET_BE operations
commitc80cd6bb9c20ef518c56319ce44d2971171e677d
authorGreg Kurz <gkurz@linux.vnet.ibm.com>
Wed, 17 Jun 2015 13:23:44 +0000 (17 15:23 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 17 Jun 2015 15:12:54 +0000 (17 17:12 +0200)
tree429628bacf81bc8d68d2313fd5668c8144177520
parent04b7a1523d65bb5c78832098cf3108a1aadcaf8a
tap: add VNET_LE/VNET_BE operations

The linux tap and macvtap backends can be told to parse vnet headers
according to little or big endian. This is done through the TUNSETVNETLE
and TUNSETVNETBE ioctls.

This patch brings all the plumbing for QEMU to use these APIs.

Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/net/net.h
net/net.c
net/tap-linux.c
net/tap-linux.h
net/tap.c
net/tap_int.h