linux_dsm_epyc7002/drivers/net/ethernet/renesas
Sergei Shtylyov 5cbf20c747 sh_eth: fix 16-bit descriptor field access endianness too
Commit 1299653aff ("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>
2015-12-22 15:23:47 -05:00
..
Kconfig drivers/net: remove all references to obsolete Ethernet-HOWTO 2015-06-23 06:50:35 -07:00
Makefile Renesas Ethernet AVB PTP clock driver 2015-06-11 00:24:12 -07:00
ravb_main.c ravb: Add disable 10base 2015-12-15 00:26:31 -05:00
ravb_ptp.c renesas: missing unlock on error path 2015-06-25 02:13:02 -07:00
ravb.h ravb: Add support for r8a7795 SoC 2015-10-03 05:05:21 -07:00
sh_eth.c sh_eth: fix 16-bit descriptor field access endianness too 2015-12-22 15:23:47 -05:00
sh_eth.h sh_eth: fix 16-bit descriptor field access endianness too 2015-12-22 15:23:47 -05:00