]> git.baikalelectronics.ru Git - kernel.git/commit
sky2: copy received packets on inefficient unaligned architecture
authorstephen hemminger <shemminger@vyatta.com>
Wed, 4 Apr 2012 12:10:27 +0000 (12:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Apr 2012 22:14:04 +0000 (18:14 -0400)
commit6ab0be1fd9b6b427ea68b7d7e10b55f2c43b2db7
treef251c66ca24133498c3d496d78daee0f7ff54fc4
parent1b6fa7c64fbe84269f7b700c537a225020ac1c2f
sky2: copy received packets on inefficient unaligned architecture

Modified from original patch from Chris.

The sky2 driver has to have 8 byte alignment of receive buffer
on some chip versions. On architectures which don't support efficient
unaligned access this doesn't work very well. The solution is to
just copy all received packets which is what the driver already
does for small packets.

This allows the driver to be used on the Tilera TILEmpower-Gx, since
the tile architecture doesn't currently handle kernel unaligned accesses,
just userspace.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/sky2.c