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>
Showing
- include/net/net.h 6 additions, 0 deletionsinclude/net/net.h
- net/net.c 18 additions, 0 deletionsnet/net.c
- net/tap-linux.c 34 additions, 0 deletionsnet/tap-linux.c
- net/tap-linux.h 2 additions, 0 deletionsnet/tap-linux.h
- net/tap.c 16 additions, 0 deletionsnet/tap.c
- net/tap_int.h 2 additions, 0 deletionsnet/tap_int.h
Loading
Please register or sign in to comment