fix vlan in 8139cp on big-endian
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 23 Aug 2007 01:18:56 +0000 (21:18 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:51:57 +0000 (16:51 -0700)
commitcf9830195a3f35b1248425b69a01ee43f5b68221
treea6ecdb00a710318c4807602141a5e55cee0a3f91
parentd3bb52b0948cf118131c951c5a34a2d4d0246171
fix vlan in 8139cp on big-endian

Layout of opts2 is
: MSB(vlan_tag) : LSB(vlan_tag) : flags : 0 :
regardless of the host endianness.  On little-endian
the current code ends up with the right values, but
on big-endian it blows.  In r8169.c the same bug
had been fixed in commit d35da12a40426184b1d0844104b1d464753eba19
(r8169: endianness fixes).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/8139cp.c