From ea0f80c1398c91a6ca549edf2b826a40eed1f893 Mon Sep 17 00:00:00 2001 From: Cristian Sovaiala Date: Mon, 27 Apr 2015 15:53:04 +0300 Subject: dpaa_eth: Use different names for MAC RX/TX stats Sysfs fails to create entries with the same name so use different names for MAC RX/TX stats. Signed-off-by: Cristian Sovaiala Change-Id: Ifa58d7f54d64e8b437d9268cb725f3528bf0d4c1 Reviewed-on: http://git.am.freescale.net:8181/35598 Reviewed-by: Madalin-Cristian Bucur Tested-by: Cristian-Constantin Sovaiala diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_sysfs.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_sysfs.c index 7b6cffd..95fa461 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_sysfs.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_sysfs.c @@ -244,8 +244,8 @@ static struct device_attribute dpaa_eth_attrs[] = { __ATTR(fqids, S_IRUGO, dpaa_eth_show_fqids, NULL), __ATTR(bpids, S_IRUGO, dpaa_eth_show_bpids, NULL), __ATTR(mac_regs, S_IRUGO, dpaa_eth_show_mac_regs, NULL), - __ATTR(mac_regs, S_IRUGO, dpaa_eth_show_mac_rx_stats, NULL), - __ATTR(mac_regs, S_IRUGO, dpaa_eth_show_mac_tx_stats, NULL), + __ATTR(mac_rx_stats, S_IRUGO, dpaa_eth_show_mac_rx_stats, NULL), + __ATTR(mac_tx_stats, S_IRUGO, dpaa_eth_show_mac_tx_stats, NULL), #ifdef CONFIG_FSL_DPAA_1588 __ATTR(ptp_1588, S_IRUGO | S_IWUSR, dpaa_eth_show_ptp_1588, dpaa_eth_set_ptp_1588), -- cgit v0.10.2