Fix AF_PACKET ABI breakage in 4.2
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 23 Sep 2015 18:45:08 +0000 (19:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Sep 2015 21:33:55 +0000 (14:33 -0700)
commitd3869efe7a8a2298516d9af4f91487cf486ca945
tree6559990f0366e38ca4355a05190e8ba9b1a39847
parent2d8bff12699abc3a9bf886bb0b79f44d94d81496
Fix AF_PACKET ABI breakage in 4.2

Commit 7d82410950aa ("virtio: add explicit big-endian support to memory
accessors") accidentally changed the virtio_net header used by
AF_PACKET with PACKET_VNET_HDR from host-endian to big-endian.

Since virtio_legacy_is_little_endian() is a very long identifier,
define a vio_le macro and use that throughout the code instead of the
hard-coded 'false' for little-endian.

This restores the ABI to match 4.1 and earlier kernels, and makes my
test program work again.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c