提交 95e0918d 编写于 作者: A Al Viro 提交者: Jeff Garzik

r8169 endianness

missing conversions in a couple of places
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 78ce8d3d
...@@ -2211,7 +2211,7 @@ static int rtl8169_change_mtu(struct net_device *dev, int new_mtu) ...@@ -2211,7 +2211,7 @@ static int rtl8169_change_mtu(struct net_device *dev, int new_mtu)
static inline void rtl8169_make_unusable_by_asic(struct RxDesc *desc) static inline void rtl8169_make_unusable_by_asic(struct RxDesc *desc)
{ {
desc->addr = 0x0badbadbadbadbadull; desc->addr = cpu_to_le64(0x0badbadbadbadbadull);
desc->opts1 &= ~cpu_to_le32(DescOwn | RsvdMask); desc->opts1 &= ~cpu_to_le32(DescOwn | RsvdMask);
} }
...@@ -2835,7 +2835,7 @@ static int rtl8169_rx_interrupt(struct net_device *dev, ...@@ -2835,7 +2835,7 @@ static int rtl8169_rx_interrupt(struct net_device *dev,
} }
/* Work around for AMD plateform. */ /* Work around for AMD plateform. */
if ((desc->opts2 & 0xfffe000) && if ((desc->opts2 & cpu_to_le32(0xfffe000)) &&
(tp->mac_version == RTL_GIGA_MAC_VER_05)) { (tp->mac_version == RTL_GIGA_MAC_VER_05)) {
desc->opts2 = 0; desc->opts2 = 0;
cur_rx++; cur_rx++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册