OSDN Git Service

net: ll_temac: Fix support for little-endian platforms
authorEsben Haabendal <esben@geanix.com>
Tue, 30 Apr 2019 07:17:52 +0000 (09:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 18:33:30 +0000 (14:33 -0400)
commitfdd7454ecb2972c5879a51109ba7c692e6c1c164
tree5f5c8a66fbad3bf73414567c9d35f3da5be3c28d
parenta3246dc41aa3c9d799478ccc8dac5d19c509a923
net: ll_temac: Fix support for little-endian platforms

Both TEMAC and SDMA is big-endian, so make sure that all values in SDMA
buffer descriptors (cmdac_bd) are handled as big-endian, independent of the
host endianness. With all currently supported platforms being big-endian,
this change does not make a change for any of them.

Note, when using app3 and app4 for piggybacking skb pointers there is no
need to care about endianness, as neither TEMAC nor SDMA access app3 and
app4 in TX buffer descriptors.

Signed-off-by: Esben Haabendal <esben@geanix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac_main.c