Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/cadence/macb.c Overlapping changes in macb driver, mostly fixes and cleanups in 'net' overlapping with the integration of at91_ether into macb in 'net-next'. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -340,12 +340,11 @@ static void xenvif_get_ethtool_stats(struct net_device *dev,
|
||||
unsigned int num_queues = vif->num_queues;
|
||||
int i;
|
||||
unsigned int queue_index;
|
||||
struct xenvif_stats *vif_stats;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(xenvif_stats); i++) {
|
||||
unsigned long accum = 0;
|
||||
for (queue_index = 0; queue_index < num_queues; ++queue_index) {
|
||||
vif_stats = &vif->queues[queue_index].stats;
|
||||
void *vif_stats = &vif->queues[queue_index].stats;
|
||||
accum += *(unsigned long *)(vif_stats + xenvif_stats[i].offset);
|
||||
}
|
||||
data[i] = accum;
|
||||
|
Reference in New Issue
Block a user