[ipq40xx][edma] 64 bit Statistics support
64 bit Statistics is enabled in EDMA driver
Change-Id: I3108a51e7bd0775a4c2611cd44994b97e1cb607e
Signed-off-by: Bhaskar Valaboju <bvalaboj@codeaurora.org>
diff --git a/edma.c b/edma.c
index 1245662..8d505a5 100644
--- a/edma.c
+++ b/edma.c
@@ -1410,14 +1410,17 @@
}
}
-/* edma_get_stats()
+/* edma_get_stats64()
* Statistics api used to retreive the tx/rx statistics
*/
-struct net_device_stats *edma_get_stats(struct net_device *netdev)
+struct rtnl_link_stats64 *edma_get_stats64(struct net_device *netdev,
+ struct rtnl_link_stats64 *stats)
{
struct edma_adapter *adapter = netdev_priv(netdev);
- return &adapter->stats;
+ memcpy(stats, &adapter->stats, sizeof(*stats));
+
+ return stats;
}
/* edma_xmit()