Commit 48f26d51 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

xen: netfront: fix xennet_get_ethtool_stats()

commit e9a799ea (xen: netfront: ethtool stats fields should be
unsigned long) made rx_gso_checksum_fixup an unsigned long.
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 12a2856b
...@@ -1692,7 +1692,7 @@ static void xennet_get_ethtool_stats(struct net_device *dev, ...@@ -1692,7 +1692,7 @@ static void xennet_get_ethtool_stats(struct net_device *dev,
int i; int i;
for (i = 0; i < ARRAY_SIZE(xennet_stats); i++) for (i = 0; i < ARRAY_SIZE(xennet_stats); i++)
data[i] = *(int *)(np + xennet_stats[i].offset); data[i] = *(unsigned long *)(np + xennet_stats[i].offset);
} }
static void xennet_get_strings(struct net_device *dev, u32 stringset, u8 * data) static void xennet_get_strings(struct net_device *dev, u32 stringset, u8 * data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment