]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf6bb1d538c98e034aeb554d424859e2013fa3ccd
tree6559990f0366e38ca4355a05190e8ba9b1a39847
parent77ed43b6019be0cd121dad77ce67ffb602b8e696
Fix AF_PACKET ABI breakage in 4.2

Commit 0716fcf14277 ("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