]> 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)
commitc9148c902951739ff8c1f5f91307704e2671650c
tree5f5c8a66fbad3bf73414567c9d35f3da5be3c28d
parentf87324607952e07aec3f8d5a5986f8eaab8d421e
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