]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvneta: support big endian
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 29 Jul 2013 13:21:28 +0000 (15:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jul 2013 23:51:08 +0000 (16:51 -0700)
commit5e40ebb173fb06254386eca3ff1f487e3877afbe
tree42d13de3d9ef83343114d415088c1b3ebaa938c8
parenta287b35fc0436eab0fa9c80afffed6c5416ef10b
net: mvneta: support big endian

Use the "swap descriptor" feature of the hardware to properly swap the
descriptors when running in big endian mode. Since the swapping occurs
on 64 bits words, we also need to provide a separate structure layout
for the DMA descriptors between little endian and big endian mode,
like is done in the mv643xx_eth driver.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c