diff options
author | Cristian Sovaiala <cristian.sovaiala@freescale.com> | 2015-04-27 12:53:04 (GMT) |
---|---|---|
committer | Madalin-Cristian Bucur <madalin.bucur@freescale.com> | 2015-04-27 13:10:08 (GMT) |
commit | ea0f80c1398c91a6ca549edf2b826a40eed1f893 (patch) | |
tree | b3caccbb3b84c6ea298de64dc3abcd2db81bf132 /drivers | |
parent | 83000f03073890325b1ccc2f73c1b573030e0699 (diff) | |
download | linux-fsl-qoriq-ea0f80c1398c91a6ca549edf2b826a40eed1f893.tar.xz |
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 <cristian.sovaiala@freescale.com>
Change-Id: Ifa58d7f54d64e8b437d9268cb725f3528bf0d4c1
Reviewed-on: http://git.am.freescale.net:8181/35598
Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
Tested-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
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), |