diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-12-19 23:48:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-22 21:23:47 +0100 |
commit | 5cbf20c747987346f8352b156e3f05d3b84ac4ac (patch) | |
tree | 13d4e7befd43d0e77edafd24c9f7e55790e46a5b /Makefile | |
parent | veth: don’t modify ip_summed; doing so treats packets with bad checksums as... (diff) | |
download | linux-5cbf20c747987346f8352b156e3f05d3b84ac4ac.tar.xz linux-5cbf20c747987346f8352b156e3f05d3b84ac4ac.zip |
sh_eth: fix 16-bit descriptor field access endianness too
Commit 1299653affa4 ("sh_eth: fix descriptor access endianness") only
addressed the 32-bit buffer address field byte-swapping but the driver
still accesses 16-bit frame/buffer length descriptor fields without the
necessary byte-swapping -- which should affect the big-endian kernels.
In order to be able to use {cpu|edmac}_to_{edmac|cpu}(), we need to declare
the RX/TX descriptor word 1 as a 32-bit field and use shifts/masking to
access the 16-bit subfields (which gets rid of the ugly #ifdef'ery too)...
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions