]> 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)
commit954a222a745ef863be984315b4b71172c7cf0818
tree6559990f0366e38ca4355a05190e8ba9b1a39847
parent8df8097a7ef95bec53e86b102c3cc4285893baea
Fix AF_PACKET ABI breakage in 4.2

Commit 7cda1c3eecbc ("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