]> 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)
commitc69616c8f653cc2c158b3fddcdb65780d07c85ee
tree42d13de3d9ef83343114d415088c1b3ebaa938c8
parent6255a52a21fb372fe07fe1e20f2f13a9ebfff365
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