]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9762ef753b0ce408b9f4d204511b1514f02b919
tree5f5c8a66fbad3bf73414567c9d35f3da5be3c28d
parent3419a1f06a97441a19a461076f1eb7df045b7813
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