• D
    Fix AF_PACKET ABI breakage in 4.2 · d3869efe
    David Woodhouse 提交于
    Commit 7d824109 ("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: NDavid Woodhouse <David.Woodhouse@intel.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    d3869efe
af_packet.c 102.9 KB